mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2025-02-11 19:50:38 +00:00
Make sure DENY_EXIT checks for the admin override permission. Fixes #2411.
This commit is contained in:
parent
2e15934666
commit
3be0be1b60
1 changed files with 3 additions and 1 deletions
|
@ -200,7 +200,9 @@ public class PlotListener {
|
||||||
if (pw == null) {
|
if (pw == null) {
|
||||||
return true;
|
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) {
|
if (previous != null) {
|
||||||
player.setMeta(PlotPlayer.META_LAST_PLOT, previous);
|
player.setMeta(PlotPlayer.META_LAST_PLOT, previous);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue