Code:
player.getPackets().sendRunScript(108, new Object[] { "TEXT" });
How can I make it so the user can only type an integer? Also, how can I store whatever the user has typed as an integer into the variable, is it possible?
Basically, what I want to do is do everything this command does but using RunScript 108
Code:
case "r":
cmd = cmd[1].split(",");
int red = Integer.valueOf(cmd[0]);
player.getAppearence().cr = red;
player.getAppearence().ce = true;
player.getAppearence().generateAppearenceData();
return true;