0
Error (Hit multiple times) JAva, Minecraft!
Hi, at the moment I don't know if this is possible but I couldn't find any other options. I'm currently stuck with a code for a Minecraft plugin. Can anyone help me why this isn't working? Thanks in advance! It does not take the "setTag", also I always get an error with the setTag. Code: @EventHandler public void onNameTag(PlayerNameTagReceiveEvent e) { Player named = e.getPlayer(); if (this.plugin.list.contains(named)) { e.setTag(ChatColor.RED + named.getName()); //error1 } else if (!this.plugin.list.contains(named)) { e.setTag(ChatColor.WHITE + named.getName()); //error2 }
1 Antwort
0
it is
// PlayerNameTagReceiveEvent
PlayerReceiveNameTagEvent