From 16c3f9374155e4389f141086012f37da8dc2c154 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Tue, 6 Sep 2022 15:36:27 +0200 Subject: [PATCH] Fix stuff --- src/de/steamwar/bungeecore/commands/TypeMappers.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/de/steamwar/bungeecore/commands/TypeMappers.java b/src/de/steamwar/bungeecore/commands/TypeMappers.java index b503748..6310171 100644 --- a/src/de/steamwar/bungeecore/commands/TypeMappers.java +++ b/src/de/steamwar/bungeecore/commands/TypeMappers.java @@ -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()); } - private static TypeValidator fabricChecker() { + private static TypeValidator arenaPlayer() { return (sender, value, messageSender) -> { ChatSender player = ChatSender.of(value); if (player.user().isPunishedWithMessage(player, Punishment.PunishmentType.NoFightServer)) {