v0.91.2 - Added Tombstone compatibility and inRegion() for API
This commit is contained in:
Binary file not shown.
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
name: MobArena
|
name: MobArena
|
||||||
main: com.garbagemule.MobArena.MobArena
|
main: com.garbagemule.MobArena.MobArena
|
||||||
version: 0.91.1
|
version: 0.91.2
|
||||||
softdepend: [MultiVerse]
|
softdepend: [MultiVerse]
|
||||||
commands:
|
commands:
|
||||||
ma:
|
ma:
|
||||||
|
|||||||
@@ -172,8 +172,8 @@ public class MACommands implements CommandExecutor
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Write the coordinate data to the config-file.
|
// 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.");
|
ArenaManager.tellPlayer(p, "Warp point \"" + arg + "\" set.");
|
||||||
MAUtils.notifyIfSetup(p);
|
MAUtils.notifyIfSetup(p);
|
||||||
return true;
|
return true;
|
||||||
@@ -190,7 +190,7 @@ public class MACommands implements CommandExecutor
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Write the coordinate data to the config-file.
|
// 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.");
|
ArenaManager.tellPlayer(p, "Spawn point with name \"" + arg + "\" added.");
|
||||||
MAUtils.notifyIfSetup(p);
|
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.PLAYER_JOIN, discListener, Priority.Normal, this);
|
||||||
pm.registerEvent(Event.Type.BLOCK_BREAK, blockListener, 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.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_EXPLODE, monsterListener, Priority.Normal, this);
|
||||||
pm.registerEvent(Event.Type.ENTITY_COMBUST, monsterListener, Priority.Normal, this);
|
pm.registerEvent(Event.Type.ENTITY_COMBUST, monsterListener, Priority.Normal, this);
|
||||||
pm.registerEvent(Event.Type.ENTITY_TARGET, 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.
|
// Get the current wave number.
|
||||||
public int getWave() { return ArenaManager.wave; }
|
public int getWave() { return ArenaManager.wave; }
|
||||||
|
|
||||||
|
// Check if a location is in the arena region
|
||||||
|
public boolean inRegion(Location l) { return MAUtils.inRegion(l); }
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user