Commands #427
@ -38,13 +38,13 @@ import java.util.List;
|
||||
public class TypeMappers {
|
||||
|
||||
public static void init() {
|
||||
SWCommandUtils.addValidator("arenaPlayer", fabricChecker());
|
||||
SWCommandUtils.addValidator("arenaPlayer", arenaPlayer());
|
||||
SWCommandUtils.addMapper("nonHistoricArenaMode", arenaModeTypeMapper(false));
|
||||
SWCommandUtils.addMapper("historicArenaMode", arenaModeTypeMapper(true));
|
||||
SWCommandUtils.addMapper("arenaMap", arenaMapTypeMapper());
|
||||
}
|
||||
YoyoNow markierte diese Unterhaltung als gelöst
|
||||
|
||||
private static TypeValidator<ProxiedPlayer> fabricChecker() {
|
||||
private static TypeValidator<ProxiedPlayer> arenaPlayer() {
|
||||
return (sender, value, messageSender) -> {
|
||||
ChatSender player = ChatSender.of(value);
|
||||
if (player.user().isPunishedWithMessage(player, Punishment.PunishmentType.NoFightServer)) {
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren
Könnte man diese Konstruktoren nicht private machen?