From 30a0cea0f47b03d182fbb5b770f719314bb7c253 Mon Sep 17 00:00:00 2001 From: jojo Date: Sun, 27 Dec 2020 22:01:31 +0100 Subject: [PATCH] Use RecordStatus only in '/trace auto' only --- .../bausystem/commands/CommandTrace.java | 4 ++-- .../bausystem/tracer/record/RecordStatus.java | 16 +++++----------- 2 files changed, 7 insertions(+), 13 deletions(-) diff --git a/BauSystem_Main/src/de/steamwar/bausystem/commands/CommandTrace.java b/BauSystem_Main/src/de/steamwar/bausystem/commands/CommandTrace.java index f4730f8..638b76a 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/commands/CommandTrace.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/commands/CommandTrace.java @@ -70,11 +70,11 @@ public class CommandTrace implements CommandExecutor { switch (args[0].toLowerCase()) { case "start": RecordStateMachine.commandStart(); - player.sendMessage(BauSystem.PREFIX + RecordStateMachine.getRecordStatus().getMessage()); + player.sendMessage(BauSystem.PREFIX + "§aTNT-Tracer gestartet"); break; case "stop": RecordStateMachine.commandStop(); - player.sendMessage(BauSystem.PREFIX + RecordStateMachine.getRecordStatus().getMessage()); + player.sendMessage(BauSystem.PREFIX + "§cTNT-Tracer gestoppt"); break; case "toggleauto": case "auto": diff --git a/BauSystem_Main/src/de/steamwar/bausystem/tracer/record/RecordStatus.java b/BauSystem_Main/src/de/steamwar/bausystem/tracer/record/RecordStatus.java index 4e21971..49bab4d 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/tracer/record/RecordStatus.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/tracer/record/RecordStatus.java @@ -21,20 +21,18 @@ package de.steamwar.bausystem.tracer.record; public enum RecordStatus { - RECORD("§aan", true, "§aTNT-Tracer gestartet", "§cTNT-Tracer muss gestoppt werden"), - RECORD_AUTO("§aan", true, "§cAuto-Tracer muss aus sein", "§cTNT-Tracer muss aus sein"), - IDLE("§caus", false, "§cTNT-Tracer gestoppt", "§cAuto-Tracer gestoppt"), - IDLE_AUTO("§eauto", false, "§cTNT-Tracer muss gestoppt werden", "§aAuto-Tracer gestartet"); + RECORD("§aan", true,"§cTNT-Tracer muss gestoppt werden"), + RECORD_AUTO("§aan", true, "§cTNT-Tracer muss aus sein"), + IDLE("§caus", false, "§cAuto-Tracer gestoppt"), + IDLE_AUTO("§eauto", false, "§aAuto-Tracer gestartet"); String name; boolean tracing; - String message; String autoMessage; - RecordStatus(String value, boolean tracing, String message, String autoMessage) { + RecordStatus(String value, boolean tracing, String autoMessage) { this.name = value; this.tracing = tracing; - this.message = message; this.autoMessage = autoMessage; } @@ -46,10 +44,6 @@ public enum RecordStatus { return tracing; } - public String getMessage() { - return message; - } - public String getAutoMessage() { return autoMessage; }