Change the int to a integer
This commit is contained in:
parent
2ccac87531
commit
19ab6ec9b6
@ -147,7 +147,7 @@ public abstract class BaseDisguiseCommand implements CommandExecutor {
|
||||
Class<?>[] types = method.getParameterTypes();
|
||||
if (types.length == 1) {
|
||||
Class param = types[0];
|
||||
if ((param.isAssignableFrom(Float.class) || param.isAssignableFrom(int.class) || param
|
||||
if ((param.isAssignableFrom(Float.class) || param.isAssignableFrom(Integer.class) || param
|
||||
.isAssignableFrom(Double.class))) {
|
||||
if (isDouble(valueString)) {
|
||||
value = param.cast(Float.parseFloat(valueString));
|
||||
|
Loading…
Reference in New Issue
Block a user