mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-11-28 05:25:20 +01:00
region priority is now set correctly in /region claim
This commit is contained in:
parent
f338650b24
commit
c74433422a
@ -114,6 +114,7 @@ public boolean handle(CommandSender sender, String senderName, String command, S
|
|||||||
player.sendMessage(ChatColor.RED + "This region overlaps with someone else's region.");
|
player.sendMessage(ChatColor.RED + "This region overlaps with someone else's region.");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
region.setPriority(regions.getAffectedRegionPriority() + 1);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -410,6 +410,9 @@ public String getAffectedRegionId() {
|
|||||||
return affectedRegion != null ? affectedRegion.getId() : "";
|
return affectedRegion != null ? affectedRegion.getId() : "";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public int getAffectedRegionPriority() {
|
||||||
|
return affectedRegion != null ? affectedRegion.getPriority() : 0;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Clear a region's parents for isFlagAllowed().
|
* Clear a region's parents for isFlagAllowed().
|
||||||
|
Loading…
Reference in New Issue
Block a user