Fix external plugin color
This commit is contained in:
@@ -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"
|
||||||
|
|||||||
@@ -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"))
|
||||||
|
|||||||
Reference in New Issue
Block a user