コード例 #1
0
 @Override
 public void execute(Player player, CommandParameters params) {
   player.getActionSender().sendLoginFailure("You ragequit from the server.");
   player.getSession().close();
   World.getWorld().broadcast("- &7" + player.getName() + " &cragequit &efrom the server");
   player.setAttribute("ragequits", (Integer) player.getAttribute("ragequits") + 1);
 }
コード例 #2
0
 @Override
 public void execute(Player player, CommandParameters params) {
   player.wrapText("Press &8[TAB]&e For Player List!");
 }