mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2025-03-09 13:19:10 +01:00
Make /rg list default to own regions if the player doesn't have permission otherwise.
This commit is contained in:
parent
d47c255168
commit
f8ed1a3e3e
@ -750,7 +750,10 @@ public void list(CommandContext args, CommandSender sender) throws CommandExcept
|
||||
|
||||
// Check permissions
|
||||
if (!getPermissionModel(sender).mayList(ownedBy)) {
|
||||
throw new CommandPermissionsException();
|
||||
ownedBy = sender.getName(); // assume they only want their own
|
||||
if (!getPermissionModel(sender).mayList(ownedBy)) {
|
||||
throw new CommandPermissionsException();
|
||||
}
|
||||
}
|
||||
|
||||
RegionManager mgr = plugin.getGlobalRegionManager().get(world);
|
||||
|
Loading…
Reference in New Issue
Block a user