delete pls

Discussion in 'Spigot Plugin Help' started by QuentinMn, Feb 4, 2020.

Thread Status:
Not open for further replies.
  1. Hello, i'm trying to get the player when he falls below 80 y

    with this code:

    Code (Java):
     ItemStack sword = new ItemBuilder(Material.IRON_SWORD).displayname("§eEpée").build();

        public void onFall(PlayerMoveEvent event){
            Player p = event.getPlayer();

            if(event.getFrom().getY() < 80){
                p.sendMessage("test");
                if(PJoin.pvp.contains(p)){
                    p.setItemInHand(sword);
                }
            }
        }
    But it doesn't work
     
Thread Status:
Not open for further replies.