Fixed event/mps hardcode.

This commit is contained in:
Jonathan Williams 2015-08-02 23:51:43 -05:00
parent 58933fc855
commit bfaa0e6849
2 changed files with 8 additions and 2 deletions

View File

@ -721,8 +721,8 @@ public class ServerManager extends MiniPlugin
System.out.println("ServerManager - Error parsing servergroups : " + e.getMessage());
}
AddServerNpc("Event Servers", "EVENT");
AddServerNpc("Mineplex Player Servers", "MPS");
AddServerNpc(new ServerGroup("Event Servers", "EVENT"));
AddServerNpc(new ServerGroup("Mineplex Player Servers", "MPS"));
}
public int GetRequiredSlots(Player player, String serverType)

View File

@ -165,6 +165,12 @@ public class ServerGroup
_npcName = npcName;
}
public ServerGroup(String prefix, String npcName)
{
_prefix = prefix;
_npcName = npcName;
}
public String getName() { return _name; }
public String getHost() { return _host; }
public String getPrefix() { return _prefix; }