You need the plugin ProtocolLib on your server and you need the same version of it on your server AND your build path.
if(player.getItemInHand().getTypeId() == 383) { //do stuff }
@Burn38 I'm just guessing that your spaces are messed up (in config)
Do you both have the same version of Java?
Please mark as solved.
@7804364 Change Material[] meleeList = {Material.WOOD_AXE, Material.WOOD_SWORD, Material.WOOD_PICKAXE, Material.STONE_AXE, Material.STONE_SWORD,...
Check before casting to a player and post your plugin.yml.
Separate names with a comma.