mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-02-25 16:51:54 +01:00
Set a default mirror map if none is found in the config.
This commit is contained in:
parent
aae586f79a
commit
211dc220d8
@ -227,4 +227,5 @@ v 2.0:
|
||||
v2.1:
|
||||
- Update for CraftBukkit 1.7.8-R0.1(3050).
|
||||
- Add UUID support.
|
||||
Plugins can still query by player name but a UUID is faster and preferable.
|
||||
Plugins can still query by player name but a UUID is faster and preferable.
|
||||
- Set a default mirror map if none is found in the config.
|
@ -80,7 +80,7 @@ public class GMConfiguration {
|
||||
}
|
||||
|
||||
/*
|
||||
* Read our config settings ands store them for reading later.
|
||||
* Read our config settings and store them for reading later.
|
||||
*/
|
||||
try {
|
||||
Map<String, Object> config = getElement("config", getElement("settings", GMconfig));
|
||||
@ -135,6 +135,9 @@ public class GMConfiguration {
|
||||
* Store our mirrors map for parsing later.
|
||||
*/
|
||||
mirrorsMap = (Map<String, Object>) ((Map<String, Object>) GMconfig.get("settings")).get("mirrors");
|
||||
|
||||
if (mirrorsMap == null)
|
||||
throw new Exception();
|
||||
|
||||
} catch (Exception ex) {
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user