From 8af19bd88fc9b0fb416276f0deffc471567e2b4d Mon Sep 17 00:00:00 2001 From: Yaruma3341 Date: Sun, 14 Apr 2019 00:04:15 +0200 Subject: [PATCH] closed security leak (removed permission for gm3 teleport) Signed-off-by: Yaruma3341 --- src/me/yaruma/fightsystem/listener/PlayerTeleportListener.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/me/yaruma/fightsystem/listener/PlayerTeleportListener.java b/src/me/yaruma/fightsystem/listener/PlayerTeleportListener.java index 344ffc7..73872e7 100644 --- a/src/me/yaruma/fightsystem/listener/PlayerTeleportListener.java +++ b/src/me/yaruma/fightsystem/listener/PlayerTeleportListener.java @@ -9,9 +9,6 @@ public class PlayerTeleportListener implements Listener { @EventHandler public void onTpGM3(PlayerTeleportEvent e) { - if (e.getPlayer().hasPermission("bukkit.command.teleport")) { - return; - } if (e.getCause() == PlayerTeleportEvent.TeleportCause.SPECTATE) { e.setCancelled(true); e.getPlayer().sendMessage(FightSystem.PREFIX + "§cDu darfst die GM3 Teleportfunktion nicht benutzen!");