Expose loadLang as public and reload from disk on /f reload.
This commit is contained in:
parent
fa4154a0ce
commit
8788778d05
@ -28,7 +28,7 @@ public class CmdReload extends FCommand {
|
|||||||
long timeInitStart = System.currentTimeMillis();
|
long timeInitStart = System.currentTimeMillis();
|
||||||
Conf.load();
|
Conf.load();
|
||||||
P.p.reloadConfig();
|
P.p.reloadConfig();
|
||||||
|
P.p.loadLang();
|
||||||
long timeReload = (System.currentTimeMillis() - timeInitStart);
|
long timeReload = (System.currentTimeMillis() - timeInitStart);
|
||||||
|
|
||||||
msg(TL.COMMAND_RELOAD_TIME, timeReload);
|
msg(TL.COMMAND_RELOAD_TIME, timeReload);
|
||||||
|
@ -114,7 +114,7 @@ public abstract class MPlugin extends JavaPlugin {
|
|||||||
log("=== ENABLE DONE (Took " + (System.currentTimeMillis() - timeEnableStart) + "ms) ===");
|
log("=== ENABLE DONE (Took " + (System.currentTimeMillis() - timeEnableStart) + "ms) ===");
|
||||||
}
|
}
|
||||||
|
|
||||||
private void loadLang() {
|
public void loadLang() {
|
||||||
File lang = new File(getDataFolder(), "lang.yml");
|
File lang = new File(getDataFolder(), "lang.yml");
|
||||||
OutputStream out = null;
|
OutputStream out = null;
|
||||||
InputStream defLangStream = this.getResource("lang.yml");
|
InputStream defLangStream = this.getResource("lang.yml");
|
||||||
|
Loading…
Reference in New Issue
Block a user