This commit is contained in:
Jesse Boyd 2017-01-03 07:42:28 +11:00
parent 95715da039
commit 1c30bc6c58
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F

View File

@ -342,6 +342,7 @@ public class Fawe {
*/ */
try { try {
// Setting up commands.yml // Setting up commands.yml
Commands.load(new File(INSTANCE.IMP.getDirectory(), "commands.yml"));
Commands.inject(); // Translations Commands.inject(); // Translations
EditSession.inject(); // Custom block placer + optimizations EditSession.inject(); // Custom block placer + optimizations
EditSessionEvent.inject(); // Add EditSession to event (API) EditSessionEvent.inject(); // Add EditSession to event (API)
@ -462,7 +463,6 @@ public class Fawe {
debug(" - http://builds.enginehub.org/job/worldedit?branch=master"); debug(" - http://builds.enginehub.org/job/worldedit?branch=master");
debug("======================================="); debug("=======================================");
} }
Commands.load(new File(INSTANCE.IMP.getDirectory(), "commands.yml"));
} catch (Throwable e) { } catch (Throwable e) {
debug("====== FAWE FAILED TO INITIALIZE ======"); debug("====== FAWE FAILED TO INITIALIZE ======");
MainUtil.handleError(e, false); MainUtil.handleError(e, false);