Advertisement
zyrtix

online command

Feb 25th, 2017
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.60 KB | None | 0 0
  1. CommandHandler.addCommand(new Command("onlinecommand", new String[]{"online"})
  2.             {
  3.                  
  4.                  @override
  5.                  public boolean handle(GameClient gameClient, String[] strings) throws Exception
  6.                  {
  7.                        gameClient.sendResponse(new GenericAlertComposer(
  8.                 "<b>" + Emulator.version+"</b>\r\n" +
  9.                 "<b>Hotel Statistik</b>\r" +
  10.                 "- Users: " + Emulator.getGameEnvironment().getHabboManager().getOnlineCount() + "\r" +
  11.                 "- Rooms: " + Emulator.getGameEnvironment().getRoomManager().getActiveRooms().size() + "\r" +
  12.                  }
  13.                  
  14.                  return true;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement