v0.91.1 Fixed a spawn override issue

This commit is contained in:
Garbage Mule 2011-06-15 05:09:25 +02:00
parent de4a335d6d
commit 1e4933d1ae
4 changed files with 6 additions and 9 deletions

Binary file not shown.

View File

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

View File

@ -245,11 +245,14 @@ public class MAUtils
if (ArenaManager.isRunning)
{
nmsWorld.allowMonsters = true;
nmsWorld.spawnMonsters = 1;
if (ArenaManager.spawnMonstersInt == 0)
nmsWorld.spawnMonsters = 1;
}
else
{
nmsWorld.allowMonsters = false;
// If the server wasn't allowing monsters, set it back to false.
if (!ArenaManager.spawnMonsters)
nmsWorld.allowMonsters = false;
nmsWorld.spawnMonsters = ArenaManager.spawnMonstersInt;
}

View File

@ -2,7 +2,6 @@ package com.garbagemule.MobArena;
import java.util.List;
import org.bukkit.entity.Player;
import org.bukkit.event.Event;
import org.bukkit.event.Event.Priority;
import org.bukkit.event.block.BlockListener;
@ -83,9 +82,4 @@ public class MobArena extends JavaPlugin
ArenaManager.forceEnd(null);
}
public boolean isPlaying(Player p)
{
return ArenaManager.playerSet.contains(p);
}
}