mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-11-28 13:15:30 +01:00
Handle Towny 0.74.0 configuration format
This commit is contained in:
parent
0e1158c77b
commit
9da3180e38
@ -32,7 +32,12 @@ public class TownyConfigHandler {
|
||||
}
|
||||
Configuration tcfg = new Configuration(cfgfile);
|
||||
tcfg.load();
|
||||
String tbsize = tcfg.getNode("town").getString("town_block_size", "16");
|
||||
org.bukkit.util.config.ConfigurationNode townnode = tcfg.getNode("town");
|
||||
String tbsize = "16";
|
||||
if(townnode != null)
|
||||
tbsize = townnode.getString("town_block_size", "16");
|
||||
else
|
||||
tbsize = tcfg.getString("town_block_size", "16");
|
||||
try {
|
||||
townblocksize = Integer.valueOf(tbsize);
|
||||
} catch (NumberFormatException nfx) {
|
||||
|
Loading…
Reference in New Issue
Block a user