use of com.sk89q.worldedit.event.platform.ConfigurationLoadEvent in project FastAsyncWorldEdit by IntellectualSites.
the class WorldEditCommands method reload.
@Command(name = "reload", desc = "Reload configuration and translations")
@CommandPermissions("worldedit.reload")
public void reload(Actor actor) {
we.getPlatformManager().queryCapability(Capability.CONFIGURATION).reload();
we.getEventBus().post(new ConfigurationLoadEvent(we.getPlatformManager().queryCapability(Capability.CONFIGURATION).getConfiguration()));
// FAWE start
Fawe.instance().setupConfigs();
// FAWE end
actor.print(Caption.of("worldedit.reload.config"));
}
Aggregations