mirror of
https://github.com/TotalFreedomMC/PlayerParticles.git
synced 2025-02-11 11:40:21 +00:00
Fix exception creating lang directory before plugin folder is created
This commit is contained in:
parent
a433189b45
commit
8cbb588d18
1 changed files with 3 additions and 3 deletions
|
@ -66,9 +66,6 @@ public class PlayerParticles extends JavaPlugin {
|
|||
*/
|
||||
public void onEnable() {
|
||||
pluginInstance = Bukkit.getServer().getPluginManager().getPlugin("PlayerParticles");
|
||||
|
||||
DefaultStyles.registerStyles();
|
||||
LangManager.setup();
|
||||
|
||||
getCommand("pp").setTabCompleter(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() + "!");
|
||||
}
|
||||
|
||||
DefaultStyles.registerStyles();
|
||||
LangManager.setup();
|
||||
|
||||
configureDatabase(getConfig().getBoolean("database-enable"));
|
||||
startParticleTask();
|
||||
|
||||
|
|
Loading…
Reference in a new issue