diff --git a/src/de/steamwar/lobby/commands/ShieldCommand.java b/src/de/steamwar/lobby/commands/ShieldCommand.java index 7d1ee7a..6452559 100644 --- a/src/de/steamwar/lobby/commands/ShieldCommand.java +++ b/src/de/steamwar/lobby/commands/ShieldCommand.java @@ -22,7 +22,7 @@ public class ShieldCommand implements CommandExecutor { if(userGroup != UserGroup.Developer && userGroup != UserGroup.Moderator && userGroup != UserGroup.Admin && - userGroup != UserGroup.Supporter) { + userGroup != UserGroup.Youtuber) { player.sendMessage("§cDu verfügst nicht über die benötigten Rechte!"); return false; } diff --git a/src/de/steamwar/lobby/listener/EnderPearlListener.java b/src/de/steamwar/lobby/listener/EnderPearlListener.java index 35745d9..dab2164 100644 --- a/src/de/steamwar/lobby/listener/EnderPearlListener.java +++ b/src/de/steamwar/lobby/listener/EnderPearlListener.java @@ -59,7 +59,7 @@ public class EnderPearlListener implements Listener { @EventHandler(priority = EventPriority.NORMAL) public void handlePlayerTeleport(PlayerTeleportEvent event) { if(event.getCause() != PlayerTeleportEvent.TeleportCause.ENDER_PEARL) return; - if(event.getPlayer().isInsideVehicle()/*event.getTo().distance(event.getPlayer().getLocation()) > 0*/) return; + if(event.getPlayer().isInsideVehicle()) return; event.setCancelled(true); }