Don't register permissions once again on /dxl reload

This commit is contained in:
Daniel Saukel 2016-07-28 17:27:52 +02:00
parent 514a3f1af6
commit f1de40ef2f

View File

@ -131,6 +131,7 @@ public class DungeonsXL extends BRPlugin {
super.onEnable(); super.onEnable();
instance = this; instance = this;
DPermissions.register();
initFolders(); initFolders();
loadCore(); loadCore();
@ -257,7 +258,6 @@ public class DungeonsXL extends BRPlugin {
loadMainConfig(new File(getDataFolder(), "config.yml")); loadMainConfig(new File(getDataFolder(), "config.yml"));
// Load Language 2 // Load Language 2
loadMessageConfig(new File(LANGUAGES, mainConfig.getLanguage() + ".yml")); loadMessageConfig(new File(LANGUAGES, mainConfig.getLanguage() + ".yml"));
DPermissions.register();
loadGameTypes(); loadGameTypes();
loadRequirementTypes(); loadRequirementTypes();
loadRewardTypes(); loadRewardTypes();