Don't spawn purple chests when there are less than 10 players

This commit is contained in:
Sam 2017-02-24 23:05:07 +00:00
parent 7be7b47395
commit 9219e50a1c

View File

@ -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);