Dieser Commit ist enthalten in:
Ursprung
832484c2a2
Commit
bcb8b31ba9
@ -40,6 +40,9 @@ public enum Permission {
|
||||
}),
|
||||
SPECTATOR(bauweltMember -> {
|
||||
return !BUILD.permissionPredicate.test(bauweltMember);
|
||||
}),
|
||||
MEMBER(bauweltMember -> {
|
||||
return true;
|
||||
});
|
||||
|
||||
private final Predicate<BauweltMember> permissionPredicate;
|
||||
|
@ -48,13 +48,6 @@ public class ClearCommand extends SWCommand {
|
||||
BauSystem.MESSAGE.send("OTHER_CLEAR_TO", p, target.getName());
|
||||
}
|
||||
|
||||
@ClassValidator(value = Player.class, local = true)
|
||||
public TypeValidator<Player> validator() {
|
||||
return (commandSender, player, messageSender) -> {
|
||||
return !messageSender.send(!Permission.hasPermission(player, Permission.WORLD), "OTHER_CLEAR_NO_PERMS");
|
||||
};
|
||||
}
|
||||
|
||||
private void clear(Player player) {
|
||||
player.getInventory().clear();
|
||||
player.getInventory().setHelmet(new ItemStack(Material.AIR));
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren