Fixed event/mps hardcode.
This commit is contained in:
parent
58933fc855
commit
bfaa0e6849
@ -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)
|
||||
|
@ -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; }
|
||||
|
Loading…
Reference in New Issue
Block a user