From 341cff0507921933dc5b614f569b2884e7d123de Mon Sep 17 00:00:00 2001 From: yoyosource Date: Mon, 13 Mar 2023 16:31:11 +0100 Subject: [PATCH] Fix NoFight punishment for EventCommand --- .../steamwar/bungeecore/commands/EventCommand.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/de/steamwar/bungeecore/commands/EventCommand.java b/src/de/steamwar/bungeecore/commands/EventCommand.java index 9ea7c9b..fe197e7 100644 --- a/src/de/steamwar/bungeecore/commands/EventCommand.java +++ b/src/de/steamwar/bungeecore/commands/EventCommand.java @@ -20,11 +20,8 @@ package de.steamwar.bungeecore.commands; import de.steamwar.bungeecore.*; -import de.steamwar.sql.EventFight; -import de.steamwar.sql.SchematicType; -import de.steamwar.sql.Team; -import de.steamwar.sql.TeamTeilnahme; -import de.steamwar.sql.Event; +import de.steamwar.messages.ChatSender; +import de.steamwar.sql.*; import de.steamwar.command.SWCommand; import de.steamwar.command.SWCommandUtils; import de.steamwar.command.TypeMapper; @@ -121,7 +118,10 @@ public class EventCommand extends SWCommand { Message.send("EVENT_NO_FIGHT_TEAM", player); return; } - SubserverSystem.sendPlayer(eventArena, player); + ChatSender sender = ChatSender.of(player); + if (!PunishmentCommand.isPunishedWithMessage(sender, Punishment.PunishmentType.NoFightServer)) { + SubserverSystem.sendPlayer(eventArena, player); + } } @ClassMapper(Team.class)