public class QSAdminCommandPlugin implements CommandPlugin {
public boolean handleCommand(ClientHandler handler, String command) throws IOException {
Server server = (Server)handler.getServer().getStoreObjects()[0];
GameLobby lobbyServer = server.lobbyServer.lobby;
if(command.toLowerCase().startsWith("savedb")) {
lobbyServer.saveToDB();
handler.sendClientMsg("DONE");
return true;
}
if(command.toLowerCase().startsWith("asend ")) {
lobbyServer.androidSend( command.substring("asend ".length()), "test message", null);
handler.sendClientMsg("DONE");
return true;
}