2023-07-25 11:39:40 +02:00
|
|
|
package com.craftaro.epicenchants;
|
2019-08-05 04:24:48 +02:00
|
|
|
|
2023-06-25 13:50:27 +02:00
|
|
|
import com.craftaro.core.utils.NumberUtils;
|
2019-08-05 04:24:48 +02:00
|
|
|
import org.bukkit.command.CommandSender;
|
|
|
|
|
|
|
|
public class CommandCommons {
|
|
|
|
public static boolean isInt(String number, CommandSender sender) {
|
2023-06-25 13:50:27 +02:00
|
|
|
if (NumberUtils.isInt(number)) {
|
|
|
|
return true;
|
2019-08-05 04:24:48 +02:00
|
|
|
}
|
2023-06-25 13:50:27 +02:00
|
|
|
|
|
|
|
EpicEnchants.getPlugin(EpicEnchants.class).getLocale().newMessage("Not a number.").sendPrefixedMessage(sender);
|
|
|
|
return false;
|
2019-08-05 04:24:48 +02:00
|
|
|
}
|
|
|
|
}
|