EpicEnchants/src/main/java/com/craftaro/epicenchants/CommandCommons.java

16 lines
450 B
Java

package com.craftaro.epicenchants;
import com.craftaro.core.utils.NumberUtils;
import org.bukkit.command.CommandSender;
public class CommandCommons {
public static boolean isInt(String number, CommandSender sender) {
if (NumberUtils.isInt(number)) {
return true;
}
EpicEnchants.getPlugin(EpicEnchants.class).getLocale().newMessage("Not a number.").sendPrefixedMessage(sender);
return false;
}
}