Dieser Commit ist enthalten in:
Ursprung
1f7c09c352
Commit
c22857457b
@ -83,19 +83,12 @@ public class InviteCommand extends SWCommand {
|
|||||||
|
|
||||||
@ClassValidator(value = Player.class, local = true)
|
@ClassValidator(value = Player.class, local = true)
|
||||||
public TypeValidator<Player> validator() {
|
public TypeValidator<Player> validator() {
|
||||||
return new TypeValidator<Player>() {
|
return (commandSender, player, messageSender) -> {
|
||||||
@Override
|
if (Config.isChallenge()) {
|
||||||
public boolean validate(CommandSender commandSender, Player player, MessageSender messageSender) {
|
player.sendMessage("§cDieser Command ist deaktiviert.");
|
||||||
if (Config.isChallenge()) {
|
return false;
|
||||||
messageSender.send("§cDieser Command ist deaktiviert.");
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
return true;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
private void message(MWTeam mwTeam, String s) {
|
|
||||||
mwTeam.getPlayers().forEach(player -> player.sendMessage(s));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren