Fix pluginmanagertest for async subbing (and some enhancements which don't really belong in this pr but shhh about that)
This commit is contained in:
@@ -449,6 +449,10 @@ public class ConfigManager
|
||||
{
|
||||
return Integer.parseInt(str);
|
||||
}
|
||||
if (type == long.class)
|
||||
{
|
||||
return Long.parseLong(str);
|
||||
}
|
||||
if (type == Color.class)
|
||||
{
|
||||
return ColorUtil.fromString(str);
|
||||
@@ -615,6 +619,10 @@ public class ConfigManager
|
||||
{
|
||||
return ((EnumSet) object).toArray()[0].getClass().getCanonicalName() + "{" + object.toString() + "}";
|
||||
}
|
||||
if (object instanceof Number)
|
||||
{
|
||||
return String.valueOf(object);
|
||||
}
|
||||
return object.toString();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user