mirror of
https://github.com/garbagemule/MobArena.git
synced 2024-11-22 18:46:45 +01:00
v0.91.2 - Added Tombstone compatibility and inRegion() for API
This commit is contained in:
parent
70766da9b6
commit
b6194f1c64
BIN
MobArena.jar
BIN
MobArena.jar
Binary file not shown.
@ -1,6 +1,6 @@
|
||||
name: MobArena
|
||||
main: com.garbagemule.MobArena.MobArena
|
||||
version: 0.91.1
|
||||
version: 0.91.2
|
||||
softdepend: [MultiVerse]
|
||||
commands:
|
||||
ma:
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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); }
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user