frontend update
Dieser Commit ist enthalten in:
Ursprung
1abea30cbc
Commit
21865b874a
@ -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);
|
||||
|
@ -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;
|
||||
|
@ -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();
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren