mirror of
https://github.com/2006-Scape/2006Scape.git
synced 2026-07-02 16:49:03 +00:00
[PR #375] [MERGED] Implemented Command Processor #11248
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/2006-Scape/2006Scape/pull/375
Author: @DamionDamion
Created: 2/11/2020
Status: ✅ Merged
Merged: 2/15/2020
Merged by: @dginovker
Base:
master← Head:commandconsole📝 Commits (8)
85eacf9Added CommandConsole and CommandProcessor Interfacef8ed690Added two commands, ListPlayers and Stopb369671Registered commands with CommandConsole38037c6Added request for console from main.48d5023Moved some files around30afe3eBug fixaddb333swapbreak;forcontinue;1c79801cough bug fix📊 Changes
5 files changed (+145 additions, -0 deletions)
View changed files
📝
2006Redone Server/src/main/java/com/rebotted/GameEngine.java(+3 -0)➕
2006Redone Server/src/main/java/com/rebotted/console/CommandConsole.java(+70 -0)➕
2006Redone Server/src/main/java/com/rebotted/console/CommandProcessor.java(+13 -0)➕
2006Redone Server/src/main/java/com/rebotted/console/commands/ListPlayers.java(+31 -0)➕
2006Redone Server/src/main/java/com/rebotted/console/commands/Stop.java(+28 -0)📄 Description
Added a command processor!
It runs in another thread and reads/writes to stdin stdout.
Create a class that implements
CommandProcessor, add it to theArrayList<CommandProcessor> cmdsin theCommandConsole()constructor.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.