SteamWar/BauSystem2.0
Archiviert
12
0

Update BauSystem.properties

Dieser Commit ist enthalten in:
yoyosource 2021-05-13 16:00:55 +02:00
Ursprung 8def39574e
Commit cfd4893d14
6 geänderte Dateien mit 45 neuen und 40 gelöschten Zeilen

Datei anzeigen

@ -28,22 +28,7 @@ PERMISSION_CHANGE_YOU_ENABLE=§aDer Spieler darf nun {0}
PERMISSION_CHANGE_YOU_DISABLE=§cDer Spieler darf nun nicht mehr {0} PERMISSION_CHANGE_YOU_DISABLE=§cDer Spieler darf nun nicht mehr {0}
PERMISSION_CHANGE_OTHER_ENABLE=§aDu kannst nun auf der Welt von §6{0} §a{1} PERMISSION_CHANGE_OTHER_ENABLE=§aDu kannst nun auf der Welt von §6{0} §a{1}
PERMISSION_CHANGE_OTHER_DISABLE=§cDu kannst nun nicht mehr auf der Welt von §6{0} §c{1} PERMISSION_CHANGE_OTHER_DISABLE=§cDu kannst nun nicht mehr auf der Welt von §6{0} §c{1}
# Feature
FEATURE_OTHER_ITEMS_TELEPORT_GUI_NAME=Teleportieren
FEATURE_OTHER_ITEMS_TELEPORT_PLAYER_OFFLINE=§cDer Spieler ist Offline
FEATURE_GUI_EDITOR_ITEM_NAME=§eGui Editor
FEATURE_GUI_EXPORT_CODE=§eDein Gui-Code:
FEATURE_GUI_EXPORT_CODE_HOVER=§eKopieren
FEATURE_GUI_IMPORT_INVALID_CODE=§eInvalieder Gui-Code
FEATURE_GUI_IMPORT_CODE_SUCCESFULL=§eGui-Code eingelesen
FEATURE_TRACER_GUI_NAME=Tracer Gui
FEATURE_TRACER_GUI_TRACE_INACTIVE=§eTracer Starten
FEATURE_TRACER_GUI_TRACE_ACTIVE=§eTracer Stoppen
FEATURE_TRACER_GUI_TRACE_ACTIVE_AUTO=§eAuto-Trace ist Aktiv
FEATURE_TRACER_GUI_AUTO_TRACE_INACTIVE=§eAuto-Tracer Aktivieren
FEATURE_TRACER_GUI_AUTO_TRACE_ACTIVE=§eAuto-Tracer Deaktivieren
FEATURE_TRACER_GUI_SHOW_GUI=§eTrace Show Gui
FEATURE_TRACER_GUI_DELETE=§eTrace Löschen
# Scoreboard # Scoreboard
SCOREBOARD_TIME = Uhrzeit SCOREBOARD_TIME = Uhrzeit
SCOREBOARD_REGION = Region SCOREBOARD_REGION = Region
@ -55,11 +40,11 @@ SCOREBOARD_TRACE_TICKS = Ticks
SCOREBOARD_TRACE_TNT_COUNT = Anzahl TNT SCOREBOARD_TRACE_TNT_COUNT = Anzahl TNT
# Flags # Flags
FLAG_COLOR=Color FLAG_COLOR = Color
FLAG_TNT=TNT FLAG_TNT = TNT
FLAG_FIRE=Fire FLAG_FIRE = Fire
FLAG_FREEZE=Freeze FLAG_FREEZE = Freeze
FLAG_PROTECT=Protect FLAG_PROTECT = Protect
FLAG_DAMAGE = Damage FLAG_DAMAGE = Damage
FLAG_FIRE_ALLOW = §can FLAG_FIRE_ALLOW = §can
@ -102,15 +87,35 @@ REGION_TYPE_NORMAL = Normal
REGION_TYPE_BUILD = Baubereich REGION_TYPE_BUILD = Baubereich
REGION_TYPE_ONLY_TB = Testblock REGION_TYPE_ONLY_TB = Testblock
# GUI
GUI_EDITOR_ITEM_NAME=§eGui Editor
GUI_EXPORT_CODE=§eDein Gui-Code:
GUI_EXPORT_CODE_HOVER=§eKopieren
GUI_IMPORT_INVALID_CODE=§eInvalieder Gui-Code
GUI_IMPORT_CODE_SUCCESSFUL=§eGui-Code eingelesen
# Trace # Trace
TRACE_RECORD = §aan TRACE_RECORD = §aan
TRACE_RECORD_AUTO = §an TRACE_RECORD_AUTO = §an
TRACE_IDLE = §caus TRACE_IDLE = §caus
TRACE_IDLE_AUTO = §eauto TRACE_IDLE_AUTO = §eauto
TRACE_GUI_NAME=Tracer Gui
TRACE_GUI_TRACE_INACTIVE=§eTracer Starten
TRACE_GUI_TRACE_ACTIVE=§eTracer Stoppen
TRACE_GUI_TRACE_ACTIVE_AUTO=§eAuto-Trace ist Aktiv
TRACE_GUI_AUTO_TRACE_INACTIVE=§eAuto-Tracer Aktivieren
TRACE_GUI_AUTO_TRACE_ACTIVE=§eAuto-Tracer Deaktivieren
TRACE_GUI_SHOW_GUI=§eTrace Show Gui
TRACE_GUI_DELETE=§eTrace Löschen
# Loader # Loader
LOADER_OFF = §caus LOADER_OFF = §caus
LOADER_SETUP = §eSetup LOADER_SETUP = §eSetup
LOADER_RUNNING = §aRunning LOADER_RUNNING = §aRunning
LOADER_PAUSE = §7Pause LOADER_PAUSE = §7Pause
LOADER_END = §8Finished LOADER_END = §8Finished
# Other
OTHER_ITEMS_TELEPORT_GUI_NAME=Teleportieren
OTHER_ITEMS_TELEPORT_PLAYER_OFFLINE=§cDer Spieler ist Offline

Datei anzeigen

@ -61,17 +61,17 @@ public class BauGUICommand extends SWCommand {
TextComponent component = new TextComponent(); TextComponent component = new TextComponent();
component.setColor(ColorConfig.HIGHLIGHT); component.setColor(ColorConfig.HIGHLIGHT);
component.setBold(true); component.setBold(true);
component.setHoverEvent(new HoverEvent(HoverEvent.Action.SHOW_TEXT, TextComponent.fromLegacyText(BauSystem.MESSAGE.parse("FEATURE_GUI_EXPORT_CODE_HOVER", p)))); component.setHoverEvent(new HoverEvent(HoverEvent.Action.SHOW_TEXT, TextComponent.fromLegacyText(BauSystem.MESSAGE.parse("GUI_EXPORT_CODE_HOVER", p))));
component.setClickEvent(new ClickEvent(ClickEvent.Action.COPY_TO_CLIPBOARD, export)); component.setClickEvent(new ClickEvent(ClickEvent.Action.COPY_TO_CLIPBOARD, export));
component.setText(export); component.setText(export);
BauSystem.MESSAGE.send("FEATURE_GUI_EXPORT_CODE", p); BauSystem.MESSAGE.send("GUI_EXPORT_CODE", p);
p.spigot().sendMessage(component); p.spigot().sendMessage(component);
} }
@Register("import") @Register("import")
public void importGui(Player p, String code) { public void importGui(Player p, String code) {
if (BauGuiImportExport.importGui(code, p)) { if (BauGuiImportExport.importGui(code, p)) {
BauSystem.MESSAGE.send("FEATURE_GUI_IMPORT_CODE_SUCCESFULL", p); BauSystem.MESSAGE.send("GUI_IMPORT_CODE_SUCCESFULL", p);
} }
} }
} }

Datei anzeigen

@ -44,7 +44,7 @@ public class BauGuiEditorGuiItem extends BauGuiItem {
@Override @Override
public ItemStack getItem(Player player) { public ItemStack getItem(Player player) {
return new SWItem(Material.IRON_PICKAXE, BauSystem.MESSAGE.parse("FEATURE_GUI_EDITOR_ITEM_NAME", player)).getItemStack(); return new SWItem(Material.IRON_PICKAXE, BauSystem.MESSAGE.parse("GUI_EDITOR_ITEM_NAME", player)).getItemStack();
} }
@Override @Override

Datei anzeigen

@ -49,7 +49,7 @@ public class BauGuiImportExport {
public static boolean importGui(String str, Player p) { public static boolean importGui(String str, Player p) {
byte[] bytes = Base64.getDecoder().decode(str); byte[] bytes = Base64.getDecoder().decode(str);
if (bytes.length % 2 != 1 || bytes.length < 2) { if (bytes.length % 2 != 1 || bytes.length < 2) {
BauSystem.MESSAGE.send("FEATURE_GUI_IMPORT_INVALID_CODE", p); BauSystem.MESSAGE.send("GUI_IMPORT_INVALID_CODE", p);
System.out.println("t1"); System.out.println("t1");
return false; return false;
} }
@ -57,7 +57,7 @@ public class BauGuiImportExport {
final int size = bytes[bytes.length - 1]; final int size = bytes[bytes.length - 1];
if (size > 9 * 5) { if (size > 9 * 5) {
BauSystem.MESSAGE.send("FEATURE_GUI_IMPORT_INVALID_CODE", p); BauSystem.MESSAGE.send("GUI_IMPORT_INVALID_CODE", p);
System.out.println("t2"); System.out.println("t2");
return false; return false;
} }
@ -73,7 +73,7 @@ public class BauGuiImportExport {
if (map.containsKey((int) key) || map.containsValue((int) value) || if (map.containsKey((int) key) || map.containsValue((int) value) ||
value >= size || key > itemSize) { value >= size || key > itemSize) {
BauSystem.MESSAGE.send("FEATURE_GUI_IMPORT_INVALID_CODE", p); BauSystem.MESSAGE.send("GUI_IMPORT_INVALID_CODE", p);
System.out.println("t3"); System.out.println("t3");
return false; return false;
} }

Datei anzeigen

@ -50,10 +50,10 @@ public class TeleportBauGuiItem extends BauGuiItem {
@Override @Override
public boolean click(ClickType click, Player p) { public boolean click(ClickType click, Player p) {
p.closeInventory(); p.closeInventory();
SWListInv<UUID> inv = new SWListInv<>(p, BauSystem.MESSAGE.parse("FEATURE_OTHER_ITEMS_TELEPORT_GUI_NAME", p), SWListInv.createPlayerList(p.getUniqueId()), (clickType, o) -> { SWListInv<UUID> inv = new SWListInv<>(p, BauSystem.MESSAGE.parse("OTHER_ITEMS_TELEPORT_GUI_NAME", p), SWListInv.createPlayerList(p.getUniqueId()), (clickType, o) -> {
Player t = Bukkit.getPlayer(o); Player t = Bukkit.getPlayer(o);
if (t == null) { if (t == null) {
BauSystem.MESSAGE.send("FEATURE_OTHER_ITEMS_TELEPORT_PLAYER_OFFLINE", p); BauSystem.MESSAGE.send("OTHER_ITEMS_TELEPORT_PLAYER_OFFLINE", p);
} else { } else {
p.performCommand("tp " + t.getName()); p.performCommand("tp " + t.getName());
} }

Datei anzeigen

@ -52,43 +52,43 @@ public class TracerBauGuiItem extends BauGuiItem {
private static void open(Player p) { private static void open(Player p) {
RecordStatus status = RecordStateMachine.getRecordStatus(); RecordStatus status = RecordStateMachine.getRecordStatus();
SWInventory inv = new SWInventory(p, 9, BauSystem.MESSAGE.parse("FEATURE_TRACER_GUI_NAME", p)); SWInventory inv = new SWInventory(p, 9, BauSystem.MESSAGE.parse("TRACE_GUI_NAME", p));
if (status.isTracing()) { if (status.isTracing()) {
if (status.isAutoTrace()) { if (status.isAutoTrace()) {
inv.setItem(1, new SWItem(Material.GRAY_DYE, BauSystem.MESSAGE.parse("FEATURE_TRACER_GUI_TRACE_ACTIVE_AUTO", p))); inv.setItem(1, new SWItem(Material.GRAY_DYE, BauSystem.MESSAGE.parse("TRACE_GUI_TRACE_ACTIVE_AUTO", p)));
} else { } else {
inv.setItem(1, new SWItem(Material.GREEN_DYE, BauSystem.MESSAGE.parse("FEATURE_TRACER_GUI_TRACE_ACTIVE", p), clickType -> { inv.setItem(1, new SWItem(Material.GREEN_DYE, BauSystem.MESSAGE.parse("TRACE_GUI_TRACE_ACTIVE", p), clickType -> {
p.performCommand("trace stop"); p.performCommand("trace stop");
open(p); open(p);
})); }));
} }
} else { } else {
inv.setItem(1, new SWItem(Material.RED_DYE, BauSystem.MESSAGE.parse("FEATURE_TRACER_GUI_TRACE_INACTIVE", p), clickType -> { inv.setItem(1, new SWItem(Material.RED_DYE, BauSystem.MESSAGE.parse("TRACE_GUI_TRACE_INACTIVE", p), clickType -> {
p.performCommand("trace start"); p.performCommand("trace start");
open(p); open(p);
})); }));
} }
if (status.isAutoTrace()) { if (status.isAutoTrace()) {
inv.setItem(3, new SWItem(Material.ENDER_EYE, BauSystem.MESSAGE.parse("FEATURE_TRACER_GUI_AUTO_TRACE_ACTIVE", p), clickType -> { inv.setItem(3, new SWItem(Material.ENDER_EYE, BauSystem.MESSAGE.parse("TRACE_GUI_AUTO_TRACE_ACTIVE", p), clickType -> {
p.performCommand("trace auto"); p.performCommand("trace auto");
open(p); open(p);
})); }));
} else { } else {
inv.setItem(3, new SWItem(Material.FIREWORK_STAR, BauSystem.MESSAGE.parse("FEATURE_TRACER_GUI_AUTO_TRACE_INACTIVE", p), clickType -> { inv.setItem(3, new SWItem(Material.FIREWORK_STAR, BauSystem.MESSAGE.parse("TRACE_GUI_AUTO_TRACE_INACTIVE", p), clickType -> {
p.performCommand("trace auto"); p.performCommand("trace auto");
open(p); open(p);
})); }));
} }
if (TraceShowManager.hasActiveShow(p)) { if (TraceShowManager.hasActiveShow(p)) {
inv.setItem(5, new SWItem(Material.TNT, BauSystem.MESSAGE.parse("FEATURE_TRACER_GUI_SHOW_GUI", p), clickType -> { inv.setItem(5, new SWItem(Material.TNT, BauSystem.MESSAGE.parse("TRACE_GUI_SHOW_GUI", p), clickType -> {
p.performCommand("trace show gui"); p.performCommand("trace show gui");
})); }));
} else { } else {
inv.setItem(5, new SWItem(Material.GLASS, BauSystem.MESSAGE.parse("FEATURE_TRACER_GUI_SHOW_GUI", p), clickType -> { inv.setItem(5, new SWItem(Material.GLASS, BauSystem.MESSAGE.parse("TRACE_GUI_SHOW_GUI", p), clickType -> {
p.performCommand("trace show gui"); p.performCommand("trace show gui");
})); }));
} }
inv.setItem(7, new SWItem(Material.BARRIER, BauSystem.MESSAGE.parse("FEATURE_TRACER_GUI_DELETE", p), clickType -> { inv.setItem(7, new SWItem(Material.BARRIER, BauSystem.MESSAGE.parse("TRACE_GUI_DELETE", p), clickType -> {
p.performCommand("trace delete"); p.performCommand("trace delete");
open(p); open(p);
})); }));