diff --git a/.vscode/settings.json b/.vscode/settings.json index 33dc01b..1d13fa7 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -7,6 +7,7 @@ "Gamerules", "Mojang", "cliffbreak", + "teamcolors", "unban", "varo" ], diff --git a/varo/src/main/java/de/cliffbreak/varo/Varo.java b/varo/src/main/java/de/cliffbreak/varo/Varo.java index f9032b9..4093388 100644 --- a/varo/src/main/java/de/cliffbreak/varo/Varo.java +++ b/varo/src/main/java/de/cliffbreak/varo/Varo.java @@ -12,7 +12,6 @@ import org.bukkit.configuration.file.FileConfiguration; import org.bukkit.plugin.java.JavaPlugin; import org.bukkit.configuration.file.YamlConfiguration; -import de.cliffbreak.varo.commands.TestCommand; import de.cliffbreak.varo.commands.VaroCommand; import de.cliffbreak.varo.listeners.BannedItemListener; import de.cliffbreak.varo.listeners.ChatListener; @@ -46,7 +45,6 @@ public class Varo extends JavaPlugin { getServer().getPluginManager().registerEvents(new BannedItemListener(), this); getCommand("varo").setExecutor(new VaroCommand(this)); - getCommand("test").setExecutor(new TestCommand()); for (World world : getServer().getWorlds()) { if (world.getEnvironment() == Environment.NORMAL) { diff --git a/varo/src/main/java/de/cliffbreak/varo/commands/TestCommand.java b/varo/src/main/java/de/cliffbreak/varo/commands/TestCommand.java deleted file mode 100644 index 878f29b..0000000 --- a/varo/src/main/java/de/cliffbreak/varo/commands/TestCommand.java +++ /dev/null @@ -1,30 +0,0 @@ -package de.cliffbreak.varo.commands; - -import org.bukkit.command.Command; -import org.bukkit.command.CommandExecutor; -import org.bukkit.command.CommandSender; -import org.bukkit.entity.Player; - -import de.cliffbreak.varo.uitls.MessageUtils; - -public class TestCommand implements CommandExecutor { - - @Override - public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { - if (!(sender instanceof Player)) - return false; - Player p = (Player) sender; - p.sendMessage(MessageUtils.getRichTextComponent("§c" + "Team 01", "")); - p.sendMessage(MessageUtils.getRichTextComponent("§6" + "Team 02", "")); - p.sendMessage(MessageUtils.getRichTextComponent("§e" + "Team 03", "")); - p.sendMessage(MessageUtils.getRichTextComponent("§2" + "Team 04", "")); - p.sendMessage(MessageUtils.getRichTextComponent("§a" + "Team 05", "")); - p.sendMessage(MessageUtils.getRichTextComponent("§b" + "Team 06", "")); - p.sendMessage(MessageUtils.getRichTextComponent("§3" + "Team 07", "")); - p.sendMessage(MessageUtils.getRichTextComponent("§9" + "Team 08", "")); - p.sendMessage(MessageUtils.getRichTextComponent("§d" + "Team 09", "")); - p.sendMessage(MessageUtils.getRichTextComponent("§5" + "Team 10", "")); - return true; - } - -} \ No newline at end of file diff --git a/varo/src/main/java/de/cliffbreak/varo/commands/VaroCommand.java b/varo/src/main/java/de/cliffbreak/varo/commands/VaroCommand.java index 474a9c4..30b9b0a 100644 --- a/varo/src/main/java/de/cliffbreak/varo/commands/VaroCommand.java +++ b/varo/src/main/java/de/cliffbreak/varo/commands/VaroCommand.java @@ -22,6 +22,7 @@ import org.json.simple.JSONValue; import org.json.simple.parser.ParseException; import de.cliffbreak.varo.Varo; +import de.cliffbreak.varo.uitls.MessageUtils; public class VaroCommand implements CommandExecutor { @@ -82,10 +83,22 @@ public class VaroCommand implements CommandExecutor { p.addPotionEffect(new PotionEffect(PotionEffectType.BLINDNESS, 60 * 20, 1, false, false, false)); p.sendTitle(new Title("TODO: Title, etc")); } + } else if (args.length == 1 && args[0].equals("teamcolors")) { + sender.sendMessage(MessageUtils.getRichTextComponent("§c" + "Team 01", "")); + sender.sendMessage(MessageUtils.getRichTextComponent("§6" + "Team 02", "")); + sender.sendMessage(MessageUtils.getRichTextComponent("§e" + "Team 03", "")); + sender.sendMessage(MessageUtils.getRichTextComponent("§2" + "Team 04", "")); + sender.sendMessage(MessageUtils.getRichTextComponent("§a" + "Team 05", "")); + sender.sendMessage(MessageUtils.getRichTextComponent("§b" + "Team 06", "")); + sender.sendMessage(MessageUtils.getRichTextComponent("§3" + "Team 07", "")); + sender.sendMessage(MessageUtils.getRichTextComponent("§9" + "Team 08", "")); + sender.sendMessage(MessageUtils.getRichTextComponent("§d" + "Team 09", "")); + sender.sendMessage(MessageUtils.getRichTextComponent("§5" + "Team 10", "")); } else { sender.sendMessage("\n§6========== §b§lCliffbreak.de VARO §r§6============\n "); sender.sendMessage("§a/varo start: §rStarte das Varo Projekt!"); sender.sendMessage("§a/varo unban [Spieler]: §rSpieler wieder auf den Server lassen"); + sender.sendMessage("§a/varo teamcolors: §rZeige verfügbare Team-Farben an"); sender.sendMessage("\n§6=========================================="); } return true; diff --git a/varo/src/main/resources/plugin.yml b/varo/src/main/resources/plugin.yml index b8c65f2..417f278 100644 --- a/varo/src/main/resources/plugin.yml +++ b/varo/src/main/resources/plugin.yml @@ -4,10 +4,6 @@ description: Custom Cliffbreak.de Varo version: 0.1 api-version: 1.15 commands: - test: - description: A command to test certain plugin behaviors. - aliases: [t] - usage: / varo: description: The Main Varo command. usage: / \ No newline at end of file