Really remove deprecated flags.

This commit is contained in:
wizjany 2019-03-14 18:10:56 -04:00
parent 10100bd194
commit ea47e93323

View File

@ -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);