mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2024-12-23 00:15:05 +00:00
Fixed IndexOutOfBoundsException
This commit is contained in:
parent
15440a84e4
commit
e1f03e1c3f
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ public class TagAPIListener implements Listener {
|
|||
public void onNameTag(AsyncPlayerReceiveNameTagEvent e) {
|
||||
List<Element> elements = Methods.getBendingPlayer(e.getNamedPlayer().getName()).getElements();
|
||||
if (elements!=null && plugin.getConfig().getBoolean("Properties.TagAPI.Enabled")) {
|
||||
if (elements.size() > 1)
|
||||
if (elements.size() < 1)
|
||||
e.setTag(ChatColor.LIGHT_PURPLE + e.getNamedPlayer().getName());
|
||||
else if (elements.get(0).equals(Element.Earth))
|
||||
e.setTag(ChatColor.GREEN + e.getNamedPlayer().getName());
|
||||
|
|
Loading…
Reference in a new issue