mirror of
https://github.com/songoda/EpicEnchants.git
synced 2024-09-27 15:22:45 +02:00
16 lines
450 B
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;
|
|
}
|
|
}
|