use of br.net.fabiozumbi12.UltimateChat.Bukkit.API.UChatReloadEvent in project UltimateChat by FabioZumbi12.
the class UChat method reload.
public void reload() {
this.getServer().getScheduler().cancelTasks(this);
try {
this.config = new UCConfig(this);
} catch (IOException e) {
e.printStackTrace();
}
this.lang = new UCLang();
this.registerAliases();
this.registerJDA();
this.registerJedis();
this.initAutomessage();
// ping other plugins when uchat reload
UChatReloadEvent reloadEvent = new UChatReloadEvent();
Bukkit.getPluginManager().callEvent(reloadEvent);
}
use of br.net.fabiozumbi12.UltimateChat.Bukkit.API.UChatReloadEvent in project UltimateChat by FabioZumbi12.
the class UChat method reload.
public void reload() throws IOException {
this.cmds.removeCmds();
this.channels = null;
this.config = new UCConfig(factory);
this.lang = new UCLang();
try {
setCompatperms();
} catch (Exception ex) {
ex.printStackTrace();
}
this.cmds = new UCCommands(this);
registerJedis();
registerJDA();
// fire event
UChatReloadEvent event = new UChatReloadEvent();
Sponge.getEventManager().post(event);
}
Aggregations