From 7fc22db45ac35fc7fbee1094df7b06608e99eede Mon Sep 17 00:00:00 2001 From: Olof Larsson Date: Tue, 19 Apr 2016 12:00:01 +0200 Subject: [PATCH] MassiveCore - Lazy Active by Reflection. Solves unwanted early instance creation. --- src/com/massivecraft/factions/Factions.java | 28 ++++++++++----------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/src/com/massivecraft/factions/Factions.java b/src/com/massivecraft/factions/Factions.java index 58195e47..cc402b5f 100644 --- a/src/com/massivecraft/factions/Factions.java +++ b/src/com/massivecraft/factions/Factions.java @@ -144,28 +144,28 @@ public class Factions extends MassivePlugin // Activate this.activate( // Command - CmdFactions.get(), + CmdFactions.class, // Engines - EngineMain.get(), - EngineChat.get(), - EngineExploit.get(), - EngineSeeChunk.get(), - EngineEcon.get(), // TODO: Take an extra look and make sure all economy stuff is handled using events. + EngineMain.class, + EngineChat.class, + EngineExploit.class, + EngineSeeChunk.class, + EngineEcon.class, // TODO: Take an extra look and make sure all economy stuff is handled using events. // Integrate - IntegrationHerochat.get(), - IntegrationLwc.get(), - IntegrationWorldGuard.get(), + IntegrationHerochat.class, + IntegrationLwc.class, + IntegrationWorldGuard.class, // Spigot - IntegrationSpigot.get(), + IntegrationSpigot.class, // Modulo Repeat Tasks - TaskPlayerPowerUpdate.get(), - TaskPlayerDataRemove.get(), - TaskEconLandReward.get(), - TaskFlagPermCreate.get() + TaskPlayerPowerUpdate.class, + TaskPlayerDataRemove.class, + TaskEconLandReward.class, + TaskFlagPermCreate.class ); // Register built in chat modifiers