mirror of
https://github.com/garbagemule/MobArena.git
synced 2025-01-27 10:41:19 +01:00
v0.91.1 Fixed a spawn override issue
This commit is contained in:
parent
de4a335d6d
commit
1e4933d1ae
BIN
MobArena.jar
BIN
MobArena.jar
Binary file not shown.
@ -1,6 +1,6 @@
|
|||||||
name: MobArena
|
name: MobArena
|
||||||
main: com.garbagemule.MobArena.MobArena
|
main: com.garbagemule.MobArena.MobArena
|
||||||
version: 0.91
|
version: 0.91.1
|
||||||
softdepend: [MultiVerse]
|
softdepend: [MultiVerse]
|
||||||
commands:
|
commands:
|
||||||
ma:
|
ma:
|
||||||
|
@ -245,11 +245,14 @@ public class MAUtils
|
|||||||
if (ArenaManager.isRunning)
|
if (ArenaManager.isRunning)
|
||||||
{
|
{
|
||||||
nmsWorld.allowMonsters = true;
|
nmsWorld.allowMonsters = true;
|
||||||
nmsWorld.spawnMonsters = 1;
|
if (ArenaManager.spawnMonstersInt == 0)
|
||||||
|
nmsWorld.spawnMonsters = 1;
|
||||||
}
|
}
|
||||||
else
|
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;
|
nmsWorld.spawnMonsters = ArenaManager.spawnMonstersInt;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2,7 +2,6 @@ package com.garbagemule.MobArena;
|
|||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import org.bukkit.entity.Player;
|
|
||||||
import org.bukkit.event.Event;
|
import org.bukkit.event.Event;
|
||||||
import org.bukkit.event.Event.Priority;
|
import org.bukkit.event.Event.Priority;
|
||||||
import org.bukkit.event.block.BlockListener;
|
import org.bukkit.event.block.BlockListener;
|
||||||
@ -83,9 +82,4 @@ public class MobArena extends JavaPlugin
|
|||||||
|
|
||||||
ArenaManager.forceEnd(null);
|
ArenaManager.forceEnd(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isPlaying(Player p)
|
|
||||||
{
|
|
||||||
return ArenaManager.playerSet.contains(p);
|
|
||||||
}
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user