From 1367305e261de88de51fbc8969a8f849a06cb5a1 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Tue, 28 Apr 2020 09:54:10 +0200 Subject: [PATCH] Force backport Signed-off-by: Lixfel --- .../de/steamwar/fightsystem/listener/PlayerStateListener.java | 1 + 1 file changed, 1 insertion(+) diff --git a/FightSystem_Main/src/de/steamwar/fightsystem/listener/PlayerStateListener.java b/FightSystem_Main/src/de/steamwar/fightsystem/listener/PlayerStateListener.java index 2e68345..d38e928 100644 --- a/FightSystem_Main/src/de/steamwar/fightsystem/listener/PlayerStateListener.java +++ b/FightSystem_Main/src/de/steamwar/fightsystem/listener/PlayerStateListener.java @@ -108,6 +108,7 @@ public class PlayerStateListener extends BasicListener{ if (e.getCause() == PlayerTeleportEvent.TeleportCause.SPECTATE) { e.setCancelled(true); toActionbar(e.getPlayer(), TextComponent.fromLegacyText("§cDu darfst diese Teleportfunktion nicht benutzen!")); + e.getPlayer().teleport(e.getFrom()); } } }