mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2025-01-12 03:13:40 +01:00
Caught CircularInheritanceException exception.
This commit is contained in:
parent
e45ecf9c86
commit
93d084d5ba
@ -628,7 +628,10 @@ public static void setParent(CommandContext args, WorldGuardPlugin plugin,
|
|||||||
ProtectedRegion region = mgr.getRegion(id);
|
ProtectedRegion region = mgr.getRegion(id);
|
||||||
|
|
||||||
if (args.argsLength() == 1) {
|
if (args.argsLength() == 1) {
|
||||||
region.setParent(null);
|
try {
|
||||||
|
region.setParent(null);
|
||||||
|
} catch (CircularInheritanceException e) {
|
||||||
|
}
|
||||||
|
|
||||||
sender.sendMessage(ChatColor.YELLOW
|
sender.sendMessage(ChatColor.YELLOW
|
||||||
+ "Parent of '" + region.getId() + "' cleared.");
|
+ "Parent of '" + region.getId() + "' cleared.");
|
||||||
|
Loading…
Reference in New Issue
Block a user