config: add support for doubles

This commit is contained in:
Hydrox6
2021-02-24 12:04:20 +00:00
committed by Adam
parent 5fb97e2b6d
commit 02025f9d8f

View File

@@ -754,6 +754,10 @@ public class ConfigManager
{
return Integer.parseInt(str);
}
if (type == double.class || type == Double.class)
{
return Double.parseDouble(str);
}
if (type == Color.class)
{
return ColorUtil.fromString(str);