Project cleanup pre merge.

This commit is contained in:
2023-07-15 09:23:48 -04:00
parent 134b651df8
commit 9bbdef224d
747 changed files with 99704 additions and 101200 deletions
+28 -28
View File
@@ -15,42 +15,42 @@ import engine.objects.PlayerCharacter;
public class TeleportModeCmd extends AbstractDevCmd {
public TeleportModeCmd() {
public TeleportModeCmd() {
super("teleportMode");
}
@Override
protected void _doCmd(PlayerCharacter pc, String[] words,
AbstractGameObject target) {
boolean newTeleportMode = false;
if (words.length == 0) { // toggle
newTeleportMode = !pc.isTeleportMode();
@Override
protected void _doCmd(PlayerCharacter pc, String[] words,
AbstractGameObject target) {
boolean newTeleportMode = false;
if (words.length == 0) { // toggle
newTeleportMode = !pc.isTeleportMode();
} else if (words[0].equalsIgnoreCase("on")) {
newTeleportMode = true;
} else if (words[0].equalsIgnoreCase("on")) {
newTeleportMode = true;
} else if (words[0].equalsIgnoreCase("off")) {
newTeleportMode = false;
} else if (words[0].equalsIgnoreCase("off")) {
newTeleportMode = false;
} else {
this.sendUsage(pc);
return;
}
pc.setTeleportMode(newTeleportMode);
this.setTarget(pc); //for logging
String output = (newTeleportMode ? "on" : "off");
} else {
this.sendUsage(pc);
return;
}
pc.setTeleportMode(newTeleportMode);
this.setTarget(pc); //for logging
String output = (newTeleportMode ? "on" : "off");
throwbackInfo(pc, "Teleport mode is now '" + output + "'.");
}
throwbackInfo(pc, "Teleport mode is now '" + output + "'.");
}
@Override
protected String _getHelpString() {
return "'on' enables teleport mode, 'off' disables. No arguments to the /teleportMode command will toggle the setting.";
}
@Override
protected String _getHelpString() {
return "'on' enables teleport mode, 'off' disables. No arguments to the /teleportMode command will toggle the setting.";
}
@Override
protected String _getUsageString() {
return "' /teleportMode [on | off]'";
}
@Override
protected String _getUsageString() {
return "' /teleportMode [on | off]'";
}
}