Hotfix
Dieser Commit ist enthalten in:
Ursprung
6dee5df474
Commit
6cd9ae6234
@ -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;
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren