mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-11-05 02:19:30 +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);
|
||||
|
||||
if (args.argsLength() == 1) {
|
||||
region.setParent(null);
|
||||
try {
|
||||
region.setParent(null);
|
||||
} catch (CircularInheritanceException e) {
|
||||
}
|
||||
|
||||
sender.sendMessage(ChatColor.YELLOW
|
||||
+ "Parent of '" + region.getId() + "' cleared.");
|
||||
|
Loading…
Reference in New Issue
Block a user