mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 05:06:44 +01:00
This commit is contained in:
parent
b02177e1d0
commit
dd9edb68b2
@ -286,6 +286,8 @@ permissions:
|
||||
default: false
|
||||
plots.admin.command.clear:
|
||||
default: false
|
||||
plots.admin.flight:
|
||||
default: false
|
||||
|
||||
plots.teleport.delay.bypass:
|
||||
default: false
|
||||
|
@ -186,6 +186,7 @@ public class PlotListener {
|
||||
}
|
||||
|
||||
final FlyFlag.FlyStatus flyStatus = plot.getFlag(FlyFlag.class);
|
||||
if (!Permissions.hasPermission(player, Permission.PERMISSION_ADMIN_FLIGHT)) {
|
||||
if (flyStatus != FlyFlag.FlyStatus.DEFAULT) {
|
||||
boolean flight = player.getFlight();
|
||||
GameMode gamemode = player.getGameMode();
|
||||
@ -196,6 +197,7 @@ public class PlotListener {
|
||||
}
|
||||
player.setFlight(flyStatus == FlyFlag.FlyStatus.ENABLED);
|
||||
}
|
||||
}
|
||||
|
||||
final GameMode gameMode = plot.getFlag(GamemodeFlag.class);
|
||||
if (!gameMode.equals(GamemodeFlag.DEFAULT)) {
|
||||
|
@ -201,7 +201,8 @@ public enum Permission {
|
||||
PERMISSION_ADMIN_BACKUP_OTHER("plots.admin.backup.other"),
|
||||
PERMISSION_ADMIN_ALLOW_UNSAFE("plots.admin.unsafe"),
|
||||
PERMISSION_ADMIN_DEBUG_OTHER("plots.admin.debug.other"),
|
||||
PERMISSION_RATE("plots.rate");
|
||||
PERMISSION_RATE("plots.rate"),
|
||||
PERMISSION_ADMIN_FLIGHT("plots.admin.flight");
|
||||
//</editor-fold>
|
||||
|
||||
private final String text;
|
||||
|
Loading…
Reference in New Issue
Block a user