Tweaked some more exceptions, get messages passed

By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
Bukkit/Spigot
2011-01-05 22:56:12 +00:00
parent 14cfdcc567
commit 88c998f4a2
4 changed files with 8 additions and 8 deletions

View File

@@ -81,10 +81,6 @@ public final class PluginDescriptionFile {
}
private void loadMap(Map<String, Object> map) throws InvalidDescriptionException {
if (name == null) {
throw new InvalidDescriptionException("Name is not defined");
}
try {
name = map.get("name").toString();
} catch (NullPointerException ex) {