Fix Menuoverload (#270)
* To be fixed later. * To be fixed later. * Update PlayerIndicatorsPlugin.java
This commit is contained in:
@@ -296,7 +296,7 @@ public interface PlayerIndicatorsConfig extends Config
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ConfigItem(
|
/* @ConfigItem(
|
||||||
position = 23,
|
position = 23,
|
||||||
keyName = "rightClickOverhead",
|
keyName = "rightClickOverhead",
|
||||||
name = "Add Overheads to Right Click Menu",
|
name = "Add Overheads to Right Click Menu",
|
||||||
@@ -305,7 +305,7 @@ public interface PlayerIndicatorsConfig extends Config
|
|||||||
default boolean rightClickOverhead()
|
default boolean rightClickOverhead()
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}*/
|
||||||
|
|
||||||
@ConfigItem(
|
@ConfigItem(
|
||||||
keyName = "useClanchatRanks",
|
keyName = "useClanchatRanks",
|
||||||
|
|||||||
@@ -287,7 +287,7 @@ public class PlayerIndicatorsPlugin extends Plugin
|
|||||||
{
|
{
|
||||||
color = config.getTargetColor();
|
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))
|
if (player.getOverheadIcon().equals(HeadIcon.MAGIC))
|
||||||
{
|
{
|
||||||
@@ -313,8 +313,7 @@ public class PlayerIndicatorsPlugin extends Plugin
|
|||||||
{
|
{
|
||||||
image = 34;
|
image = 34;
|
||||||
}
|
}
|
||||||
|
}*/
|
||||||
}
|
|
||||||
if (config.playerSkull() && !player.isClanMember() && player.getSkullIcon() != null)
|
if (config.playerSkull() && !player.isClanMember() && player.getSkullIcon() != null)
|
||||||
{
|
{
|
||||||
image2 = 35;
|
image2 = 35;
|
||||||
@@ -346,10 +345,10 @@ public class PlayerIndicatorsPlugin extends Plugin
|
|||||||
lastEntry.setTarget(ColorUtil.prependColorTag(target, color));
|
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 + ">");
|
lastEntry.setTarget(lastEntry.getTarget() + "<img=" + image + ">");
|
||||||
}
|
}*/
|
||||||
if (image2 != -1 && config.playerSkull())
|
if (image2 != -1 && config.playerSkull())
|
||||||
{
|
{
|
||||||
lastEntry.setTarget("<img=" + image2 + ">" + lastEntry.getTarget());
|
lastEntry.setTarget("<img=" + image2 + ">" + lastEntry.getTarget());
|
||||||
|
|||||||
Reference in New Issue
Block a user