Fix Menuoverload (#270)

* To be fixed later.

* To be fixed later.

* Update PlayerIndicatorsPlugin.java
This commit is contained in:
Ganom
2019-05-16 17:51:26 -04:00
committed by Jonathan
parent fe3128cc0f
commit ac616215c2
2 changed files with 6 additions and 7 deletions

View File

@@ -296,7 +296,7 @@ public interface PlayerIndicatorsConfig extends Config
return false;
}
@ConfigItem(
/* @ConfigItem(
position = 23,
keyName = "rightClickOverhead",
name = "Add Overheads to Right Click Menu",
@@ -305,7 +305,7 @@ public interface PlayerIndicatorsConfig extends Config
default boolean rightClickOverhead()
{
return false;
}
}*/
@ConfigItem(
keyName = "useClanchatRanks",

View File

@@ -287,7 +287,7 @@ public class PlayerIndicatorsPlugin extends Plugin
{
color = config.getTargetColor();
}
if (config.rightClickOverhead() && !player.isClanMember() && player.getOverheadIcon() != null)
/* if (config.rightClickOverhead() && !player.isClanMember() && player.getOverheadIcon() != null)
{
if (player.getOverheadIcon().equals(HeadIcon.MAGIC))
{
@@ -313,8 +313,7 @@ public class PlayerIndicatorsPlugin extends Plugin
{
image = 34;
}
}
}*/
if (config.playerSkull() && !player.isClanMember() && player.getSkullIcon() != null)
{
image2 = 35;
@@ -346,10 +345,10 @@ public class PlayerIndicatorsPlugin extends Plugin
lastEntry.setTarget(ColorUtil.prependColorTag(target, color));
}
if (image != -1 && config.showClanRanks() || image != -1 && config.rightClickOverhead())
/* if (image != -1 && config.showClanRanks() || image != -1 && config.rightClickOverhead())
{
lastEntry.setTarget(lastEntry.getTarget() + "<img=" + image + ">");
}
}*/
if (image2 != -1 && config.playerSkull())
{
lastEntry.setTarget("<img=" + image2 + ">" + lastEntry.getTarget());