v0.91.1 Fixed a spawn override issue
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user