Removed integer input.
This commit is contained in:
@@ -18,33 +18,11 @@ public class SimulateBootyCmd extends AbstractDevCmd {
|
|||||||
protected void _doCmd(PlayerCharacter playerCharacter, String[] words,
|
protected void _doCmd(PlayerCharacter playerCharacter, String[] words,
|
||||||
AbstractGameObject target) {
|
AbstractGameObject target) {
|
||||||
|
|
||||||
// Arg Count Check
|
|
||||||
|
|
||||||
if (words.length != 1) {
|
|
||||||
this.sendUsage(playerCharacter);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (playerCharacter == null)
|
if (playerCharacter == null)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
String newline = "\r\n ";
|
String newline = "\r\n ";
|
||||||
|
|
||||||
int targetID = Integer.parseInt(words[0]);
|
|
||||||
Mob mobile = Mob.getMob(targetID);
|
|
||||||
|
|
||||||
if (mobile == null)
|
|
||||||
throwbackError(playerCharacter, "Mobile with ID " + targetID
|
|
||||||
+ " not found");
|
|
||||||
else
|
|
||||||
target = mobile;
|
|
||||||
|
|
||||||
|
|
||||||
if (target == null) {
|
|
||||||
throwbackError(playerCharacter, "Select or supply valid mobile uuid");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
String output;
|
String output;
|
||||||
|
|
||||||
output = "Booty Simulation:" + newline;
|
output = "Booty Simulation:" + newline;
|
||||||
|
|||||||
Reference in New Issue
Block a user