mirror of
https://github.com/MassiveCraft/Factions.git
synced 2024-11-24 03:05:52 +01:00
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();
|
||||
Conf.load();
|
||||
P.p.reloadConfig();
|
||||
|
||||
P.p.loadLang();
|
||||
long timeReload = (System.currentTimeMillis() - timeInitStart);
|
||||
|
||||
msg(TL.COMMAND_RELOAD_TIME, timeReload);
|
||||
|
@ -114,7 +114,7 @@ public abstract class MPlugin extends JavaPlugin {
|
||||
log("=== ENABLE DONE (Took " + (System.currentTimeMillis() - timeEnableStart) + "ms) ===");
|
||||
}
|
||||
|
||||
private void loadLang() {
|
||||
public void loadLang() {
|
||||
File lang = new File(getDataFolder(), "lang.yml");
|
||||
OutputStream out = null;
|
||||
InputStream defLangStream = this.getResource("lang.yml");
|
||||
|
Loading…
Reference in New Issue
Block a user