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
master
commandconsole
85eacf9
f8ed690
b369671
38037c6
48d5023
30afe3e
addb333
break;
continue;
1c79801
5 files changed (+145 additions, -0 deletions)
📝 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)
2006Redone Server/src/main/java/com/rebotted/GameEngine.java
2006Redone Server/src/main/java/com/rebotted/console/CommandConsole.java
2006Redone Server/src/main/java/com/rebotted/console/CommandProcessor.java
2006Redone Server/src/main/java/com/rebotted/console/commands/ListPlayers.java
2006Redone Server/src/main/java/com/rebotted/console/commands/Stop.java
Added a command processor!
It runs in another thread and reads/writes to stdin stdout.
Create a class that implements CommandProcessor, add it to the ArrayList<CommandProcessor> cmds in the CommandConsole() constructor.
CommandProcessor
ArrayList<CommandProcessor> cmds
CommandConsole()
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
No dependencies set.
The note is not visible to the blocked user.
📋 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.