mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-11-24 19:25:15 +01:00
Fix Residence region output in JSON mode
This commit is contained in:
parent
fd2085b511
commit
e2616c9159
@ -38,10 +38,11 @@ public class RegionsComponent extends ClientComponent {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
plugin.events.addListener("clientupdateswritten", new Event.Listener<Object>() {
|
plugin.events.addListener("clientupdatewritten", new Event.Listener<ClientUpdateEvent>() {
|
||||||
@Override
|
@Override
|
||||||
public void triggered(Object t) {
|
public void triggered(ClientUpdateEvent t) {
|
||||||
parseRegionFile(configuration.getString("filename", "regions.yml"), configuration.getString("filename", "regions.yml"));
|
World world = t.world.world;
|
||||||
|
parseRegionFile(configuration.getString("filename", "regions.yml"), configuration.getString("filename", "regions.yml").replace(".", "_" + world.getName() + ".yml"));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user