Skip to content

Commit

Permalink
Properly register scriptEvents.
Browse files Browse the repository at this point in the history
  • Loading branch information
Fortifier42 committed Jan 18, 2016
1 parent 6945e6e commit a360957
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
Expand Up @@ -5,6 +5,7 @@
import net.aufdemrand.denizen.objects.dLocation;
import net.aufdemrand.denizen.objects.dPlayer;
import net.aufdemrand.denizen.objects.dWorld;
import net.aufdemrand.denizencore.events.ScriptEvent;
import net.aufdemrand.denizencore.objects.Element;
import net.aufdemrand.denizencore.tags.Attribute;
import net.gnomeffinway.depenizen.events.ASkyBlock.*;
Expand All @@ -20,11 +21,11 @@ public ASkyBlockSupport() {
registerProperty(ASkyBlockPlayerExtension.class, dPlayer.class);
registerProperty(ASkyBlockLocationExtension.class, dLocation.class);
registerProperty(ASkyBlockWorldExtension.class, dWorld.class);
registerEvents(SkyBlockCreatedScriptEvent.class);
registerEvents(SkyBlockResetScriptEvent.class);
registerEvents(PlayerEntersSkyBlockScriptEvent.class);
registerEvents(PlayerExitsSkyBlockScriptEvent.class);
registerEvents(PlayerCompletesSkyBlockChallengeScriptEvent.class);
registerScriptEvents(new SkyBlockCreatedScriptEvent());
registerScriptEvents(new SkyBlockResetScriptEvent());
registerScriptEvents(new PlayerEntersSkyBlockScriptEvent());
registerScriptEvents(new PlayerExitsSkyBlockScriptEvent());
registerScriptEvents(new PlayerCompletesSkyBlockChallengeScriptEvent());
// TODO: Skyblock Command
}

Expand Down
Expand Up @@ -3,6 +3,7 @@
import com.garbagemule.MobArena.MobArena;
import com.garbagemule.MobArena.framework.Arena;
import net.aufdemrand.denizen.objects.dPlayer;
import net.aufdemrand.denizencore.events.ScriptEvent;
import net.aufdemrand.denizencore.objects.dList;
import net.aufdemrand.denizencore.tags.Attribute;
import net.gnomeffinway.depenizen.events.MobArena.MobArenaEndsScriptEvent;
Expand All @@ -19,9 +20,9 @@ public class MobArenaSupport extends Support {
public MobArenaSupport() {
registerObjects(MobArenaArena.class);
registerAdditionalTags("mobarena");
registerEvents(MobArenaStartsScriptEvent.class);
registerEvents(MobArenaEndsScriptEvent.class);
registerEvents(MobArenaWaveChangesScriptEvent.class);
registerScriptEvents(new MobArenaStartsScriptEvent());
registerScriptEvents(new MobArenaEndsScriptEvent());
registerScriptEvents(new MobArenaWaveChangesScriptEvent());
registerProperty(MobArenaPlayerExtension.class, dPlayer.class);
plugin = Support.getPlugin(MobArenaSupport.class);
}
Expand Down

0 comments on commit a360957

Please sign in to comment.