Fix exception creating lang directory before plugin folder is created

This commit is contained in:
Esophose 2018-09-27 18:03:02 -06:00
parent a433189b45
commit 8cbb588d18

View file

@ -67,9 +67,6 @@ public class PlayerParticles extends JavaPlugin {
public void onEnable() { public void onEnable() {
pluginInstance = Bukkit.getServer().getPluginManager().getPlugin("PlayerParticles"); pluginInstance = Bukkit.getServer().getPluginManager().getPlugin("PlayerParticles");
DefaultStyles.registerStyles();
LangManager.setup();
getCommand("pp").setTabCompleter(new ParticleCommandHandler()); getCommand("pp").setTabCompleter(new ParticleCommandHandler());
getCommand("pp").setExecutor(new ParticleCommandHandler()); getCommand("pp").setExecutor(new ParticleCommandHandler());
@ -89,6 +86,9 @@ public class PlayerParticles extends JavaPlugin {
getLogger().warning("The config.yml has been updated to v" + getDescription().getVersion() + "!"); getLogger().warning("The config.yml has been updated to v" + getDescription().getVersion() + "!");
} }
DefaultStyles.registerStyles();
LangManager.setup();
configureDatabase(getConfig().getBoolean("database-enable")); configureDatabase(getConfig().getBoolean("database-enable"));
startParticleTask(); startParticleTask();