Make podium generation setting based on map rather than hardcoded server group

This commit is contained in:
Alexander Meech 2017-06-02 03:33:04 -04:00 committed by cnr
parent abaaaebd43
commit 62d15eeee1

View File

@ -53,6 +53,7 @@ import org.bukkit.event.player.PlayerVelocityEvent;
import org.bukkit.event.weather.WeatherChangeEvent;
import org.bukkit.scoreboard.Team;
import java.io.File;
import java.util.Map;
/**
@ -117,7 +118,7 @@ public abstract class LobbyManager implements Listener
_serverName = _serverName.substring(0, Math.min(16, _serverName.length()));
_serverGroup = _manager.GetServerConfig().ServerGroup;
_generatePodiums = _serverGroup.equalsIgnoreCase("MiniGames") || manager.GetHost() != null;
_generatePodiums = new File("world/GENPODIUMS.dat").exists() || manager.GetHost() != null;
if (_generatePodiums)
{