Caught CircularInheritanceException exception.

This commit is contained in:
sk89q 2011-04-02 18:02:16 -07:00
parent e45ecf9c86
commit 93d084d5ba

View File

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