Package games.stendhal.server.core.engine.dbcommand

Examples of games.stendhal.server.core.engine.dbcommand.SetOnlineStatusCommand


    } else {
      activateGhostmode(player);
    }

    /* Notify database that the player is in Ghost mode */
    DBCommand command = new SetOnlineStatusCommand(player.getName(), !player.isGhost());
    DBCommandQueue.get().enqueue(command);

    /* Notify players about admin going into ghost mode. */
    StendhalRPRuleProcessor.get().notifyOnlineStatus(!player.isGhost(), player);
   
View Full Code Here


        getOnlinePlayers().add(player);

        if (!player.isGhost()) {
          notifyOnlineStatus(true, player);
          DBCommand command = new SetOnlineStatusCommand(player.getName(), true);
          DBCommandQueue.get().enqueue(command);
        }
        updatePlayerNameListForPlayersOnLogin(player);
        String[] params = {};
View Full Code Here

        updatePlayerNameListForPlayersOnLogout(player);

        Player.destroy(player);
        getOnlinePlayers().remove(player);

        DBCommand command = new SetOnlineStatusCommand(player.getName(), false);
        DBCommandQueue.get().enqueue(command);

        String[] params = {};
        new GameEvent(player.getName(), "logout", params).raise();
        logger.debug("removed player " + player);
View Full Code Here

TOP

Related Classes of games.stendhal.server.core.engine.dbcommand.SetOnlineStatusCommand

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.