v0.91.2 - Added Tombstone compatibility and inRegion() for API

This commit is contained in:
Garbage Mule 2011-06-17 01:57:05 +02:00
parent 70766da9b6
commit b6194f1c64
5 changed files with 8 additions and 5 deletions

Binary file not shown.

View File

@ -1,6 +1,6 @@
name: MobArena
main: com.garbagemule.MobArena.MobArena
version: 0.91.1
version: 0.91.2
softdepend: [MultiVerse]
commands:
ma:

View File

@ -172,8 +172,8 @@ public class MACommands implements CommandExecutor
}
// Write the coordinate data to the config-file.
MAUtils.setCoords(arg, p.getLocation());
MAUtils.setCoords(arg, p.getLocation().getBlock().getRelative(0,1,0).getLocation());
ArenaManager.tellPlayer(p, "Warp point \"" + arg + "\" set.");
MAUtils.notifyIfSetup(p);
return true;
@ -190,7 +190,7 @@ public class MACommands implements CommandExecutor
}
// Write the coordinate data to the config-file.
MAUtils.setCoords("spawnpoints." + arg, p.getLocation());
MAUtils.setCoords("spawnpoints." + arg, p.getLocation().getBlock().getRelative(0,1,0).getLocation());
ArenaManager.tellPlayer(p, "Spawn point with name \"" + arg + "\" added.");
MAUtils.notifyIfSetup(p);

View File

@ -67,7 +67,7 @@ public class MobArena extends JavaPlugin
pm.registerEvent(Event.Type.PLAYER_JOIN, discListener, Priority.Normal, this);
pm.registerEvent(Event.Type.BLOCK_BREAK, blockListener, Priority.Normal, this);
pm.registerEvent(Event.Type.BLOCK_PLACE, blockListener, Priority.Normal, this);
pm.registerEvent(Event.Type.ENTITY_DEATH, deathListener, Priority.Lowest, this);
pm.registerEvent(Event.Type.ENTITY_DEATH, deathListener, Priority.Lowest, this); // Lowest because of Tombstone
pm.registerEvent(Event.Type.ENTITY_EXPLODE, monsterListener, Priority.Normal, this);
pm.registerEvent(Event.Type.ENTITY_COMBUST, monsterListener, Priority.Normal, this);
pm.registerEvent(Event.Type.ENTITY_TARGET, monsterListener, Priority.Normal, this);

View File

@ -28,4 +28,7 @@ public class MobArenaHandler
// Get the current wave number.
public int getWave() { return ArenaManager.wave; }
// Check if a location is in the arena region
public boolean inRegion(Location l) { return MAUtils.inRegion(l); }
}