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(
position = 1,
position = 2,
keyName = "pvmColor",
name = "PVM color",
description = "Configure the color of PVM related plugins"
@@ -47,7 +47,7 @@ public interface PluginSorterConfig extends Config {
}
@ConfigItem(
position = 2,
position = 3,
keyName = "pvpColor",
name = "PVP color",
description = "Configure the color of PVP related plugins"
@@ -58,7 +58,7 @@ public interface PluginSorterConfig extends Config {
}
@ConfigItem(
position = 3,
position = 4,
keyName = "utilityColor",
name = "Utility color",
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().getClass().getAnnotation(PluginDescriptor.class).type()!=null)
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"))
pli.nameLabel.setForeground(config.pvmColor());
else if (pli.getPlugin().getClass().getAnnotation(PluginDescriptor.class).type().equals("PVP"))