From 4f6bf71f82b751d30524a49ade97b87144e75072 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Fri, 8 Apr 2022 13:12:00 +0200 Subject: [PATCH] Fix tp Signed-off-by: Lixfel --- src/de/steamwar/bungeecore/commands/TpCommand.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/de/steamwar/bungeecore/commands/TpCommand.java b/src/de/steamwar/bungeecore/commands/TpCommand.java index 33bd7bb..39a46c7 100644 --- a/src/de/steamwar/bungeecore/commands/TpCommand.java +++ b/src/de/steamwar/bungeecore/commands/TpCommand.java @@ -90,7 +90,8 @@ public class TpCommand extends BasicCommand { return false; // Check if player is allowed to join fights - if (Subserver.getSubserver(server).getType() == Servertype.ARENA) { + Subserver subserver = Subserver.getSubserver(server); + if (subserver != null && subserver.getType() == Servertype.ARENA) { SteamwarUser steamwarUser = SteamwarUser.get(player); if (steamwarUser.isPunishedWithMessage(player, Punishment.PunishmentType.NoFightServer)) { return true;