From 6cd9ae6234b86dc227848de9ff6e180f4ef17861 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Fri, 10 Jan 2020 15:42:04 +0100 Subject: [PATCH] Hotfix --- .../src/de/steamwar/bausystem/commands/CommandClear.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BauSystem_Main/src/de/steamwar/bausystem/commands/CommandClear.java b/BauSystem_Main/src/de/steamwar/bausystem/commands/CommandClear.java index 14180c8..7cbdfe9 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/commands/CommandClear.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/commands/CommandClear.java @@ -21,7 +21,7 @@ public class CommandClear extends BukkitCommand { if (!(sender instanceof Player)) return false; Player player = (Player) sender; - if (args.length == 1){ + if (args.length == 0){ clear(player); player.sendMessage(BauSystem.PREFIX + "Dein Inventar wurde geleert."); return true; @@ -31,7 +31,7 @@ public class CommandClear extends BukkitCommand { player.sendMessage(BauSystem.PREFIX + "$cDu darfst hier keine fremden Inventare leeren."); return false; } - Player target = Bukkit.getPlayerExact(args[1]); + Player target = Bukkit.getPlayerExact(args[0]); if(!(target instanceof Player)){ player.sendMessage(BauSystem.PREFIX + "Das ist kein Spieler."); return false;