mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-12 04:20:41 +00:00
Throw a better error than 'null' when someone removes all groups from a
yml.
This commit is contained in:
parent
24ec84730e
commit
72015d42fc
2 changed files with 6 additions and 1 deletions
|
@ -186,4 +186,5 @@ v 2.0:
|
||||||
- Allow 'manucheckp' to notify when superperms reports false but it is really negated.
|
- Allow 'manucheckp' to notify when superperms reports false but it is really negated.
|
||||||
- Only output a Data update message if something has changed.
|
- Only output a Data update message if something has changed.
|
||||||
- Fix loading users with only numerals in their names to be seen as strings.
|
- Fix loading users with only numerals in their names to be seen as strings.
|
||||||
- Ignore any sub folders in the Worlds folder which start with a period (fix for storing data in svn respoitories).
|
- Ignore any sub folders in the Worlds folder which start with a period (fix for storing data in svn respoitories).
|
||||||
|
- Throw a better error than 'null' when someone removes all groups from a yml.
|
|
@ -508,6 +508,10 @@ public class WorldDataHolder {
|
||||||
} catch (Exception ex) {
|
} catch (Exception ex) {
|
||||||
throw new IllegalArgumentException("Your " + groupsFile.getPath() + " file is invalid. See console for details.", ex);
|
throw new IllegalArgumentException("Your " + groupsFile.getPath() + " file is invalid. See console for details.", ex);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (allGroupsNode == null) {
|
||||||
|
throw new IllegalArgumentException("You have no groups in " + groupsFile.getPath() + ".");
|
||||||
|
}
|
||||||
|
|
||||||
Iterator<String> groupItr = allGroupsNode.keySet().iterator();
|
Iterator<String> groupItr = allGroupsNode.keySet().iterator();
|
||||||
String groupKey;
|
String groupKey;
|
||||||
|
|
Loading…
Reference in a new issue