mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-25 22:56:45 +01:00
Make sure DENY_EXIT checks for the admin override permission. Fixes #2411.
This commit is contained in:
parent
2e15934666
commit
3be0be1b60
@ -200,7 +200,9 @@ public class PlotListener {
|
||||
if (pw == null) {
|
||||
return true;
|
||||
}
|
||||
if (Flags.DENY_EXIT.isTrue(plot) && !player.getMeta("kick", false)) {
|
||||
if (Flags.DENY_EXIT.isTrue(plot)
|
||||
&& !Permissions.hasPermission(player, Captions.PERMISSION_ADMIN_EXIT_DENIED)
|
||||
&& !player.getMeta("kick", false)) {
|
||||
if (previous != null) {
|
||||
player.setMeta(PlotPlayer.META_LAST_PLOT, previous);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user