This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Change creature spawning.

  • Loading branch information...
mkalus committed Mar 20, 2012
1 parent 966452e commit c58fb5983fc5329c6103c91758e44506c29e7c09
@@ -680,7 +680,7 @@ public void onPlayerGameModeChange(PlayerGameModeChangeEvent event) {
/**
* @param event
*/
- @EventHandler(priority = EventPriority.LOWEST)
+ @EventHandler(priority = EventPriority.HIGHEST)
public void onCreatureSpawn(CreatureSpawnEvent event) {
if (event.isCancelled()) return;
@@ -1287,7 +1287,7 @@ public boolean onPlayerGameModeChange(PlayerGameModeChangeEvent event) {
@Override
public boolean onCreatureSpawn(CreatureSpawnEvent event) {
- if (!isEnabled() || arena == null || !configuration.getBoolean("disallowCreatureSpawns", true)) return false; // ignore disabled and undifined arenas, as well as those that allow spawning
+ if (!isEnabled() || arena == null || !configuration.getBoolean("disallowCreatureSpawns", true)) return false; // ignore disabled and undefined arenas, as well as those that allow spawning
// check location of spawn event
Location loc = event.getLocation();

0 comments on commit c58fb59

Please sign in to comment.