Make podium generation setting based on map rather than hardcoded server group
This commit is contained in:
parent
abaaaebd43
commit
62d15eeee1
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user