Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @EventHandler
- public void onInvClickCompaass(InventoryClickEvent e) {
- Player p = (Player) e.getWhoClicked();
- if(e.getCurrentItem() == null) return;
- if(e.getInventory().getTitle().equals("§eNavigator")) {
- e.setCancelled(true);
- if(e.getClickedInventory().getTitle().equals("§eNavigator")) {
- if(e.getCurrentItem().getType().equals(Material.MAGMA_CREAM)) {
- p.playSound(p.getLocation(), Sound.CLICK, 1F, 1F);
- e.getView().close();
- p.teleport(Variable.getLocation("spawn"));
- p.sendMessage("§8» §3Du wurdest zum Spawn teleportiert.");
- p.playSound(p.getLocation(), Sound.ENDERMAN_TELEPORT, 1F, 1F);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement