Archiviert
13
0

frontend update

Dieser Commit ist enthalten in:
Yaruma3341 2020-01-19 17:06:49 +01:00
Ursprung 1abea30cbc
Commit 21865b874a
3 geänderte Dateien mit 8 neuen und 2 gelöschten Zeilen

Datei anzeigen

@ -23,8 +23,10 @@ public class FlyCommand implements CommandExecutor {
if(userGroup != UserGroup.Developer && if(userGroup != UserGroup.Developer &&
userGroup != UserGroup.Moderator && userGroup != UserGroup.Moderator &&
userGroup != UserGroup.Admin && userGroup != UserGroup.Admin &&
userGroup != UserGroup.Youtuber) userGroup != UserGroup.Youtuber) {
player.sendMessage("§cDu verfügst nicht über die benötigten Rechte!");
return false; return false;
}
boolean newFlightState = player.isFlying() ? false : true; boolean newFlightState = player.isFlying() ? false : true;
LobbyPlayer.getLobbyPlayer(player.getUniqueId()).setFly(newFlightState); LobbyPlayer.getLobbyPlayer(player.getUniqueId()).setFly(newFlightState);

Datei anzeigen

@ -22,8 +22,10 @@ public class ShieldCommand implements CommandExecutor {
if(userGroup != UserGroup.Developer && if(userGroup != UserGroup.Developer &&
userGroup != UserGroup.Moderator && userGroup != UserGroup.Moderator &&
userGroup != UserGroup.Admin && userGroup != UserGroup.Admin &&
userGroup != UserGroup.Youtuber) userGroup != UserGroup.Youtuber) {
player.sendMessage("§cDu verfügst nicht über die benötigten Rechte!");
return false; return false;
}
LobbyPlayer lobbyPlayer = LobbyPlayer.getLobbyPlayer(player.getUniqueId()); LobbyPlayer lobbyPlayer = LobbyPlayer.getLobbyPlayer(player.getUniqueId());
boolean newShieldState = lobbyPlayer.isShield() ? false : true; boolean newShieldState = lobbyPlayer.isShield() ? false : true;

Datei anzeigen

@ -40,6 +40,8 @@ public class ShieldListener implements Listener {
continue; continue;
} }
world.playEffect(playerLocation, Effect.ENDER_SIGNAL, 1); 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(); Location location = entityPlayer.getLocation();
double x = location.getX() - playerLocation.getX(); double x = location.getX() - playerLocation.getX();