From 21865b874a11553a56d4fb8978a35abc4d87c6c8 Mon Sep 17 00:00:00 2001 From: Yaruma3341 Date: Sun, 19 Jan 2020 17:06:49 +0100 Subject: [PATCH] frontend update --- src/de/steamwar/lobby/commands/FlyCommand.java | 4 +++- src/de/steamwar/lobby/commands/ShieldCommand.java | 4 +++- src/de/steamwar/lobby/listener/ShieldListener.java | 2 ++ 3 files changed, 8 insertions(+), 2 deletions(-) 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();