Package net.yura.lobby.server

Examples of net.yura.lobby.server.GameLobby


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;
           
        }
View Full Code Here

TOP

Related Classes of net.yura.lobby.server.GameLobby

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.