@EventHandler public void onPlayerChangedWorld(PlayerChangedWorldEvent event) { /* Extra unused Code for removing Survival Games Queue removal and removing vanish from eventworld and stuff: String world = event.getPlayer().getWorld().getName(); if (!world.equals("GameWorld") && !world.equals("Survival") && !world.equals("GriefFree") && !world.equals("End") && !world.equals("Nether")) { ArrayList<Game> games = GameManager.getInstance().getGames(); for (Game game : games) { if (game != null && game.isInQueue(event.getPlayer())) { game.removeFromQueue(event.getPlayer()); event.getPlayer().sendMessage(ChatColor.RED + "You have been removed from the Survival Games queue."); } } } if (!world.equals("GameWorld")) { if (DisguiseCraft.getAPI().isDisguised(event.getPlayer())) { Bukkit.dispatchCommand(event.getPlayer(), "ud"); } try { if (VanishNoPacket.isVanished(event.getPlayer().getName())) { Bukkit.dispatchCommand(event.getPlayer(), "v"); } } catch (VanishNotLoadedException e) {} } event.getPlayer().setFlying(false); Bukkit.dispatchCommand(Bukkit.getConsoleSender(), "sudo " + event.getPlayer().getName() + " sg leave"); */ if (directionBook != null) directionBook.onPlayerChangeWorld(event); if (endDragonRespawn != null) endDragonRespawn.onPlayerGoesToEnd(event); }
@EventHandler public void onItemDespawn(ItemDespawnEvent event) { if (directionBook != null) directionBook.onDropsDespawn(event); }
@EventHandler public void onPlayerDropItem(PlayerDropItemEvent event) { // worldBlocks.onPlayerDropItem(event); if (directionBook != null) directionBook.onPlayerDropItem(event); }
@EventHandler public void onPlayerPickupItem(PlayerPickupItemEvent event) { if (directionBook != null) directionBook.onPlayerPickupBook(event); }