mirror of
https://github.com/2006-Scape/2006Scape.git
synced 2026-07-03 08:39:04 +00:00
Implemented Command Processor (#375)
* Added CommandConsole and CommandProcessor Interface * Added two commands, ListPlayers and Stop * Registered commands with CommandConsole * Added request for console from main. Made help prompt not print after requesting help... * Moved some files around You didn't see anything * Bug fix * swap `break;` for `continue;` * *cough* bug fix
This commit is contained in:
@@ -13,6 +13,7 @@ import org.apache.mina.common.IoAcceptor;
|
||||
import org.apache.mina.transport.socket.nio.SocketAcceptor;
|
||||
import org.apache.mina.transport.socket.nio.SocketAcceptorConfig;
|
||||
|
||||
import com.rebotted.console.CommandConsole;
|
||||
import com.rebotted.event.CycleEventHandler;
|
||||
import com.rebotted.game.content.minigames.FightCaves;
|
||||
import com.rebotted.game.content.minigames.FightPits;
|
||||
@@ -213,6 +214,8 @@ public class GameEngine {
|
||||
}
|
||||
}, 0, GameConstants.CYCLE_TIME, TimeUnit.MILLISECONDS);
|
||||
|
||||
CommandConsole.getInstance();
|
||||
|
||||
try {
|
||||
while (!scheduler.awaitTermination(60, TimeUnit.SECONDS)) {
|
||||
// TODO
|
||||
|
||||
Reference in New Issue
Block a user