Fix Residence region output in JSON mode
This commit is contained in:
parent
3d4bd679cf
commit
110e0a3b06
1 changed files with 4 additions and 3 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue