Tracer-entity #147
@ -70,11 +70,11 @@ public class CommandTrace implements CommandExecutor {
|
|||||||
switch (args[0].toLowerCase()) {
|
switch (args[0].toLowerCase()) {
|
||||||
case "start":
|
case "start":
|
||||||
RecordStateMachine.commandStart();
|
RecordStateMachine.commandStart();
|
||||||
player.sendMessage(BauSystem.PREFIX + RecordStateMachine.getRecordStatus().getMessage());
|
player.sendMessage(BauSystem.PREFIX + "§aTNT-Tracer gestartet");
|
||||||
break;
|
break;
|
||||||
case "stop":
|
case "stop":
|
||||||
RecordStateMachine.commandStop();
|
RecordStateMachine.commandStop();
|
||||||
player.sendMessage(BauSystem.PREFIX + RecordStateMachine.getRecordStatus().getMessage());
|
player.sendMessage(BauSystem.PREFIX + "§cTNT-Tracer gestoppt");
|
||||||
break;
|
break;
|
||||||
case "toggleauto":
|
case "toggleauto":
|
||||||
case "auto":
|
case "auto":
|
||||||
|
@ -21,20 +21,18 @@ package de.steamwar.bausystem.tracer.record;
|
|||||||
|
|
||||||
public enum RecordStatus {
|
public enum RecordStatus {
|
||||||
|
|
||||||
RECORD("§aan", true, "§aTNT-Tracer gestartet", "§cTNT-Tracer muss gestoppt werden"),
|
RECORD("§aan", true,"§cTNT-Tracer muss gestoppt werden"),
|
||||||
RECORD_AUTO("§aan", true, "§cAuto-Tracer muss aus sein", "§cTNT-Tracer muss aus sein"),
|
RECORD_AUTO("§aan", true, "§cTNT-Tracer muss aus sein"),
|
||||||
IDLE("§caus", false, "§cTNT-Tracer gestoppt", "§cAuto-Tracer gestoppt"),
|
IDLE("§caus", false, "§cAuto-Tracer gestoppt"),
|
||||||
IDLE_AUTO("§eauto", false, "§cTNT-Tracer muss gestoppt werden", "§aAuto-Tracer gestartet");
|
IDLE_AUTO("§eauto", false, "§aAuto-Tracer gestartet");
|
||||||
|
|
||||||
String name;
|
String name;
|
||||||
boolean tracing;
|
boolean tracing;
|
||||||
String message;
|
|
||||||
String autoMessage;
|
String autoMessage;
|
||||||
|
|
||||||
RecordStatus(String value, boolean tracing, String message, String autoMessage) {
|
RecordStatus(String value, boolean tracing, String autoMessage) {
|
||||||
this.name = value;
|
this.name = value;
|
||||||
this.tracing = tracing;
|
this.tracing = tracing;
|
||||||
this.message = message;
|
|
||||||
this.autoMessage = autoMessage;
|
this.autoMessage = autoMessage;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -46,10 +44,6 @@ public enum RecordStatus {
|
|||||||
return tracing;
|
return tracing;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getMessage() {
|
|
||||||
return message;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getAutoMessage() {
|
public String getAutoMessage() {
|
||||||
return autoMessage;
|
return autoMessage;
|
||||||
}
|
}
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren