I started to change from Skript to Java to increase my server performance so i basically want to check if the player has a certain item from a list, for example if the player has a stone, a diamond block or a glass block in the hand but i don't know how to do it
Code
Code
Code:
if (player.getPlayer().getItemInHand().getType().equals(Material.WOOD)){
Actions goes here
}
Last edited:
