vlw assim foi
if (comando.getName().equalsIgnoreCase("isint"))
{
if(args.length != 1)
{
sender.sendMessage("§c/isint (Numero)");
return true;
}
if(!isInt(args[0]))
{
sender.sendMessage("§cUtilize Somente Numeros");
return true;
}
sender.sendMessage("§aAEEEE, Isto e Um Numero Negro");
return true;
}
return false;
}
public boolean isInt(String str)
{
try
{
Integer.parseInt(str);
return true;
}
catch (NumberFormatException e) {}
return false;
}