mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2025-02-17 04:41:32 +01:00
Really remove deprecated flags.
This commit is contained in:
parent
10100bd194
commit
ea47e93323
@ -105,11 +105,10 @@ public void addOwner(CommandContext args, Actor sender) throws CommandException,
|
||||
|
||||
id = region.getId();
|
||||
|
||||
Boolean flag = region.getFlag(Flags.BUYABLE);
|
||||
DefaultDomain owners = region.getOwners();
|
||||
|
||||
if (player != null) {
|
||||
if (flag != null && flag && owners != null && owners.size() == 0) {
|
||||
if (owners != null && owners.size() == 0) {
|
||||
// TODO: Move this to an event
|
||||
if (!sender.hasPermission("worldguard.region.unlimited")) {
|
||||
int maxRegionCount = WorldGuard.getInstance().getPlatform().getGlobalStateManager().get(world).getMaxRegionCount(player);
|
||||
|
Loading…
Reference in New Issue
Block a user