Change the int to a integer

This commit is contained in:
Andrew 2013-11-06 04:10:27 +13:00
parent 2ccac87531
commit 19ab6ec9b6

View File

@ -147,7 +147,7 @@ public abstract class BaseDisguiseCommand implements CommandExecutor {
Class<?>[] types = method.getParameterTypes(); Class<?>[] types = method.getParameterTypes();
if (types.length == 1) { if (types.length == 1) {
Class param = types[0]; 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))) { .isAssignableFrom(Double.class))) {
if (isDouble(valueString)) { if (isDouble(valueString)) {
value = param.cast(Float.parseFloat(valueString)); value = param.cast(Float.parseFloat(valueString));