Fix external plugin color

This commit is contained in:
zeruth
2019-04-22 04:54:50 -04:00
parent 3a01eb67dc
commit e74a4af7c0
2 changed files with 4 additions and 4 deletions

View File

@@ -36,7 +36,7 @@ public interface PluginSorterConfig extends Config {
} }
@ConfigItem( @ConfigItem(
position = 1, position = 2,
keyName = "pvmColor", keyName = "pvmColor",
name = "PVM color", name = "PVM color",
description = "Configure the color of PVM related plugins" description = "Configure the color of PVM related plugins"
@@ -47,7 +47,7 @@ public interface PluginSorterConfig extends Config {
} }
@ConfigItem( @ConfigItem(
position = 2, position = 3,
keyName = "pvpColor", keyName = "pvpColor",
name = "PVP color", name = "PVP color",
description = "Configure the color of PVP related plugins" description = "Configure the color of PVP related plugins"
@@ -58,7 +58,7 @@ public interface PluginSorterConfig extends Config {
} }
@ConfigItem( @ConfigItem(
position = 3, position = 4,
keyName = "utilityColor", keyName = "utilityColor",
name = "Utility color", name = "Utility color",
description = "Configure the color of utility related plugins" description = "Configure the color of utility related plugins"

View File

@@ -77,7 +77,7 @@ public class PluginSorterPlugin extends Plugin {
if (pli.getPlugin()!=null) { if (pli.getPlugin()!=null) {
if (pli.getPlugin().getClass().getAnnotation(PluginDescriptor.class).type()!=null) if (pli.getPlugin().getClass().getAnnotation(PluginDescriptor.class).type()!=null)
if (pli.getPlugin().getClass().getAnnotation(PluginDescriptor.class).type().equals("external")) if (pli.getPlugin().getClass().getAnnotation(PluginDescriptor.class).type().equals("external"))
pli.nameLabel.setForeground(config.pvmColor()); pli.nameLabel.setForeground(config.externalColor());
else if (pli.getPlugin().getClass().getAnnotation(PluginDescriptor.class).type().equals("PVM")) else if (pli.getPlugin().getClass().getAnnotation(PluginDescriptor.class).type().equals("PVM"))
pli.nameLabel.setForeground(config.pvmColor()); pli.nameLabel.setForeground(config.pvmColor());
else if (pli.getPlugin().getClass().getAnnotation(PluginDescriptor.class).type().equals("PVP")) else if (pli.getPlugin().getClass().getAnnotation(PluginDescriptor.class).type().equals("PVP"))