From 2893325be342e87cd93c9a5e1f20174800fcfca6 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Tue, 15 Mar 2022 16:18:56 +0100 Subject: [PATCH] More options Signed-off-by: Lixfel --- .../schematicsystem/commands/SchematicCommand.java | 7 +++++++ .../schematicsystem/commands/SchematicCommandHelp.java | 2 ++ .../schematicsystem/commands/SchematicCommandUtils.java | 6 ++++++ 3 files changed, 15 insertions(+) diff --git a/SchematicSystem_Core/src/de/steamwar/schematicsystem/commands/SchematicCommand.java b/SchematicSystem_Core/src/de/steamwar/schematicsystem/commands/SchematicCommand.java index 50df954..77c02bc 100644 --- a/SchematicSystem_Core/src/de/steamwar/schematicsystem/commands/SchematicCommand.java +++ b/SchematicSystem_Core/src/de/steamwar/schematicsystem/commands/SchematicCommand.java @@ -367,6 +367,13 @@ public class SchematicCommand extends SWCommand { player.sendMessage(SchematicSystem.PREFIX + "Replays von Kämpfen mit " + node.getName() + " können ab sofort nicht mehr betrachtet werden"); } + @Register("replacecolor") + public void replacecolor(Player player, SchematicNode node) { + boolean state = !node.replaceColor(); + node.setReplaceColor(state); + player.sendMessage(SchematicSystem.PREFIX + "In Kämpfen " + node.getName() + " werden pinke Blöcke " + (state ? "" : "nicht ") + "ersetzt"); + } + @Register("dir") @Register("ordner") @Register("mkdir") diff --git a/SchematicSystem_Core/src/de/steamwar/schematicsystem/commands/SchematicCommandHelp.java b/SchematicSystem_Core/src/de/steamwar/schematicsystem/commands/SchematicCommandHelp.java index 78dab28..b5d00da 100644 --- a/SchematicSystem_Core/src/de/steamwar/schematicsystem/commands/SchematicCommandHelp.java +++ b/SchematicSystem_Core/src/de/steamwar/schematicsystem/commands/SchematicCommandHelp.java @@ -62,6 +62,8 @@ public class SchematicCommandHelp { "§8/§7schem §emove §8[§7Schematic§8] [§7Neuer Pfad§8] - §7Verschiebe eine Schematic", "§8/§7schem §erename §8[§7Schematic§8] [§7Neuer Name§8] - §7Gib der Schematic einen neuen Namen", "§8/§7schem §echangetype §8[§7Schematic§8] - §7Ändert die Art deiner Schematic", + "§8/§7schem §elockreplay §8[§7Schematic§8] - §7Sperrt Replays mit der Schematic", + "§8/§7schem §ereplacecolor §8[§7Schematic§8] - §7Ändert Farbersetzung in der Arena", "§8/§7schem §edelete §8[§7Schematic§8] - §7Löscht eine Schematic" }), MEMBER("Besitzrechte", "Schematics mit anderen teilen", new String[]{ diff --git a/SchematicSystem_Core/src/de/steamwar/schematicsystem/commands/SchematicCommandUtils.java b/SchematicSystem_Core/src/de/steamwar/schematicsystem/commands/SchematicCommandUtils.java index cb1064e..50ec7b6 100644 --- a/SchematicSystem_Core/src/de/steamwar/schematicsystem/commands/SchematicCommandUtils.java +++ b/SchematicSystem_Core/src/de/steamwar/schematicsystem/commands/SchematicCommandUtils.java @@ -195,6 +195,12 @@ public class SchematicCommandUtils { if (node.getRank() > 0) { player.sendMessage("§7Rang: §e" + node.getRank()); } + + if (node.getSchemtype().fightType()) { + player.sendMessage("§7Farbersetzung: §e" + (node.replaceColor() ? "ja" : "nein")); + player.sendMessage("§7Replaywiedergabe: §e" + (node.allowReplay() ? "gestattet" : "untersagt")); + } + player.sendMessage("§7Format: §e" + (node.getSchemFormat() ? ".schem" : ".schematic")); List checkedSchematics = CheckedSchematic.getLastDeclined(player.getUniqueId()); for (CheckedSchematic checkedSchematic : checkedSchematics) {