Don't spawn purple chests when there are less than 10 players
This commit is contained in:
parent
7be7b47395
commit
9219e50a1c
@ -241,6 +241,11 @@ public class LootModule extends MiniPlugin
|
||||
|
||||
public void addSpawnedChest(String key, boolean force)
|
||||
{
|
||||
if (key.equals("PURPLE") && Bukkit.getOnlinePlayers().size() < 10)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
List<Location> locations = _worldData.getDataLocation(key);
|
||||
ChestProperties properties = _chestProperties.get(key);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user