Search in sources :

Example 1 with ConfigurationLoadEvent

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"));
}
Also used : ConfigurationLoadEvent(com.sk89q.worldedit.event.platform.ConfigurationLoadEvent) Command(org.enginehub.piston.annotation.Command) CommandPermissions(com.sk89q.worldedit.command.util.CommandPermissions)

Aggregations

CommandPermissions (com.sk89q.worldedit.command.util.CommandPermissions)1 ConfigurationLoadEvent (com.sk89q.worldedit.event.platform.ConfigurationLoadEvent)1 Command (org.enginehub.piston.annotation.Command)1