From d30a8ff4aac2610537e6fd1a762754986d981de4 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Sun, 7 Mar 2021 16:30:15 +0100 Subject: [PATCH] Add CommandRedstoneTester help message --- .../steamwar/bausystem/commands/CommandRedstoneTester.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/BauSystem_Main/src/de/steamwar/bausystem/commands/CommandRedstoneTester.java b/BauSystem_Main/src/de/steamwar/bausystem/commands/CommandRedstoneTester.java index 5723b53..83d8e09 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/commands/CommandRedstoneTester.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/commands/CommandRedstoneTester.java @@ -19,6 +19,7 @@ package de.steamwar.bausystem.commands; +import de.steamwar.bausystem.BauSystem; import de.steamwar.bausystem.PlayerUtils; import de.steamwar.bausystem.world.RedstoneListener; import org.bukkit.command.Command; @@ -29,10 +30,14 @@ import org.bukkit.entity.Player; public class CommandRedstoneTester implements CommandExecutor { @Override - public boolean onCommand(CommandSender commandSender, Command command, String s, String[] strings) { + public boolean onCommand(CommandSender commandSender, Command command, String s, String[] args) { if (!(commandSender instanceof Player)) return false; Player player = (Player) commandSender; + if (args.length != 0 && args[0].equalsIgnoreCase("help")) { + player.sendMessage(BauSystem.PREFIX + "Messe die Zeit zwischen der Aktivierung zweier Redstone Komponenten"); + return false; + } PlayerUtils.giveItemToPlayer(player, RedstoneListener.WAND); return false; }