Improved error messages for group and state flags.

This commit is contained in:
TomyLobo 2011-10-30 04:07:37 +01:00
parent 35e6ef5cd8
commit de6e20d60a
2 changed files with 2 additions and 2 deletions

View File

@ -70,7 +70,7 @@ public RegionGroup parseInput(WorldGuardPlugin plugin, CommandSender sender,
} else if (input.equalsIgnoreCase("everyone") || input.equalsIgnoreCase("anyone")) {
return null;
} else {
throw new InvalidFlagFormat("Not none/allow/deny: " + input);
throw new InvalidFlagFormat("Expected [non]member/[non]owner/anyone but got '" + input + "'");
}
}

View File

@ -70,7 +70,7 @@ public State parseInput(WorldGuardPlugin plugin, CommandSender sender,
} else if (input.equalsIgnoreCase("none")) {
return null;
} else {
throw new InvalidFlagFormat("Not none/allow/deny: " + input);
throw new InvalidFlagFormat("Expected none/allow/deny but got '" + input + "'");
}
}