Tracer-entity #147
@ -78,15 +78,18 @@ public class CommandTrace implements CommandExecutor {
|
||||
case "auto":
|
||||
RecordStateMachine.commandAuto();
|
||||
switch (RecordStateMachine.getRecordStatus()) {
|
||||
case RECORD_AUTO:
|
||||
player.sendMessage(BauSystem.PREFIX + "§aAuto-Tracer gestartet");
|
||||
case IDLE:
|
||||
player.sendMessage(BauSystem.PREFIX + "§cAuto-Tracer gestoppt");
|
||||
break;
|
||||
case IDLE_AUTO:
|
||||
player.sendMessage(BauSystem.PREFIX + "§cAuto-Tracer gestoppt");
|
||||
player.sendMessage(BauSystem.PREFIX + "§aAuto-Tracer gestartet");
|
||||
|
||||
break;
|
||||
case RECORD:
|
||||
player.sendMessage(BauSystem.PREFIX + "§cTNT-Tracer muss gestoppt werden");
|
||||
break;
|
||||
case RECORD_AUTO:
|
||||
player.sendMessage(BauSystem.PREFIX + "§cTNT-Tracer muss aus sein");
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case "clear":
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren
Idee: Zugehörige Message als Parameter eines RecordStatus. Dann musst du hier nicht switch-casen.