mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2025-06-29 11:46:40 +00:00
Removed Hostname and Port from the config - Now using the server address.
This commit is contained in:
@ -34,8 +34,6 @@ public enum TFM_ConfigEntry
|
||||
SERVER_OWNERS(List.class, "server.owners"),
|
||||
SERVER_BAN_URL(String.class, "server.ban_url"),
|
||||
SERVER_PERMBAN_URL(String.class, "server.permban_url"),
|
||||
SERVER_HOSTNAME(String.class, "server.hostname"),
|
||||
SERVER_PORT(Integer.class, "server.port"),
|
||||
//
|
||||
TWITTERBOT_ENABLED(Boolean.class, "twitterbot.enabled"),
|
||||
TWITTERBOT_SECRET(String.class, "twitterbot.secret"),
|
||||
|
@ -858,7 +858,7 @@ public class TFM_PlayerListener implements Listener
|
||||
// Force IP Setup
|
||||
if(TFM_ConfigEntry.FORCE_IP_ENABLED.getBoolean())
|
||||
{
|
||||
if(!event.getHostname().equalsIgnoreCase(TFM_ConfigEntry.SERVER_HOSTNAME.getString() + ":" + TFM_ConfigEntry.SERVER_PORT.getInteger()))
|
||||
if(!event.getHostname().equalsIgnoreCase(TFM_ConfigEntry.SERVER_ADDRESS.getString()))
|
||||
{
|
||||
event.disallow(PlayerLoginEvent.Result.KICK_OTHER, TFM_ConfigEntry.FORCE_IP_KICKMSG.getString());
|
||||
}
|
||||
|
Reference in New Issue
Block a user