diff --git a/src/de/steamwar/lobby/commands/FlyCommand.java b/src/de/steamwar/lobby/commands/FlyCommand.java index a7701e5..c9931c1 100644 --- a/src/de/steamwar/lobby/commands/FlyCommand.java +++ b/src/de/steamwar/lobby/commands/FlyCommand.java @@ -23,8 +23,10 @@ public class FlyCommand implements CommandExecutor { if(userGroup != UserGroup.Developer && userGroup != UserGroup.Moderator && userGroup != UserGroup.Admin && - userGroup != UserGroup.Youtuber) + userGroup != UserGroup.Youtuber) { + player.sendMessage("§cDu verfügst nicht über die benötigten Rechte!"); return false; + } boolean newFlightState = player.isFlying() ? false : true; LobbyPlayer.getLobbyPlayer(player.getUniqueId()).setFly(newFlightState); diff --git a/src/de/steamwar/lobby/commands/ShieldCommand.java b/src/de/steamwar/lobby/commands/ShieldCommand.java index a525a2d..6452559 100644 --- a/src/de/steamwar/lobby/commands/ShieldCommand.java +++ b/src/de/steamwar/lobby/commands/ShieldCommand.java @@ -22,8 +22,10 @@ public class ShieldCommand implements CommandExecutor { if(userGroup != UserGroup.Developer && userGroup != UserGroup.Moderator && userGroup != UserGroup.Admin && - userGroup != UserGroup.Youtuber) + userGroup != UserGroup.Youtuber) { + player.sendMessage("§cDu verfügst nicht über die benötigten Rechte!"); return false; + } LobbyPlayer lobbyPlayer = LobbyPlayer.getLobbyPlayer(player.getUniqueId()); boolean newShieldState = lobbyPlayer.isShield() ? false : true; diff --git a/src/de/steamwar/lobby/listener/ShieldListener.java b/src/de/steamwar/lobby/listener/ShieldListener.java index 7720d91..58e3824 100644 --- a/src/de/steamwar/lobby/listener/ShieldListener.java +++ b/src/de/steamwar/lobby/listener/ShieldListener.java @@ -40,6 +40,8 @@ public class ShieldListener implements Listener { continue; } world.playEffect(playerLocation, Effect.ENDER_SIGNAL, 1); + world.playEffect(playerLocation.add(0.0D, 0.3D, 0.0D), Effect.ENDER_SIGNAL, 1); + world.playEffect(playerLocation.add(0.0D, 0.6D, 0.0D), Effect.ENDER_SIGNAL, 1); Location location = entityPlayer.getLocation(); double x = location.getX() - playerLocation.getX();