fix
Dieser Commit ist enthalten in:
Ursprung
5f93b3f023
Commit
227646226b
@ -3,7 +3,6 @@ package de.steamwar.bausystem.commands;
|
|||||||
import de.steamwar.bausystem.BauSystem;
|
import de.steamwar.bausystem.BauSystem;
|
||||||
import de.steamwar.bausystem.Permission;
|
import de.steamwar.bausystem.Permission;
|
||||||
import de.steamwar.bausystem.world.Welt;
|
import de.steamwar.bausystem.world.Welt;
|
||||||
import org.apache.commons.lang.Validate;
|
|
||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
import org.bukkit.Material;
|
import org.bukkit.Material;
|
||||||
import org.bukkit.command.CommandSender;
|
import org.bukkit.command.CommandSender;
|
||||||
@ -11,13 +10,11 @@ import org.bukkit.command.defaults.BukkitCommand;
|
|||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
import org.bukkit.inventory.ItemStack;
|
import org.bukkit.inventory.ItemStack;
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
public class CommandClear extends BukkitCommand {
|
public class CommandClear extends BukkitCommand {
|
||||||
|
|
||||||
public CommandClear() {
|
public CommandClear() {
|
||||||
super("clear");
|
super("clear");
|
||||||
description = "Leere dein Inventar oder das eines anderem Spielers.";
|
description = "Leere dein Inventar oder das eines anderen Spielers.";
|
||||||
usageMessage = "/clear [Spieler]";
|
usageMessage = "/clear [Spieler]";
|
||||||
}
|
}
|
||||||
public boolean execute(CommandSender sender, String currentAlias, String[] args) {
|
public boolean execute(CommandSender sender, String currentAlias, String[] args) {
|
||||||
@ -31,7 +28,7 @@ public class CommandClear extends BukkitCommand {
|
|||||||
}
|
}
|
||||||
// check if admin
|
// check if admin
|
||||||
if(Welt.noPermission(player, Permission.world)){
|
if(Welt.noPermission(player, Permission.world)){
|
||||||
player.sendMessage(BauSystem.PREFIX + "§cDu darfst hier keine fremden Invenatre leeren.");
|
player.sendMessage(BauSystem.PREFIX + "Du darfst hier keine fremden Invenatre leeren.");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
Player target = Bukkit.getPlayerExact(args[1]);
|
Player target = Bukkit.getPlayerExact(args[1]);
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren