mirror of
https://github.com/Multiverse/Multiverse-Core.git
synced 2025-02-18 05:21:57 +01:00
Bugfix: We shouldn't check access-perms if enforceaccess is off!
This commit is contained in:
parent
871a601e37
commit
08b8f01c44
@ -135,7 +135,8 @@ public class MVPlayerListener implements Listener {
|
|||||||
return;
|
return;
|
||||||
} else {
|
} else {
|
||||||
this.plugin.log(Level.FINER, "Player joined AGAIN!");
|
this.plugin.log(Level.FINER, "Player joined AGAIN!");
|
||||||
if (!this.plugin.getMVPerms().hasPermission(p, "multiverse.access." + p.getWorld().getName(), false)) {
|
if (this.plugin.getMVConfig().getEnforceAccess() // check this only if we're enforcing access!
|
||||||
|
&& !this.plugin.getMVPerms().hasPermission(p, "multiverse.access." + p.getWorld().getName(), false)) {
|
||||||
p.sendMessage("[MV] - Sorry you can't be in this world anymore!");
|
p.sendMessage("[MV] - Sorry you can't be in this world anymore!");
|
||||||
this.sendPlayerToDefaultWorld(p);
|
this.sendPlayerToDefaultWorld(p);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user