mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2024-11-27 09:15:38 +00:00
Fixed Formatting Issues - Forgot it was allman style there.
This commit is contained in:
parent
1bc22a817a
commit
7981adaf85
@ -856,9 +856,11 @@ public class TFM_PlayerListener implements Listener
|
|||||||
TFM_ServerInterface.handlePlayerLogin(event);
|
TFM_ServerInterface.handlePlayerLogin(event);
|
||||||
|
|
||||||
// Force IP Setup
|
// Force IP Setup
|
||||||
if(TFM_ConfigEntry.FORCE_IP_ENABLED.getBoolean()){
|
if(TFM_ConfigEntry.FORCE_IP_ENABLED.getBoolean())
|
||||||
if(!event.getHostname().equalsIgnoreCase(TFM_ConfigEntry.SERVER_HOSTNAME.getString() + ":" + TFM_ConfigEntry.SERVER_PORT.getInteger())){
|
{
|
||||||
event.disallow(PlayerLoginEvent.Result.KICK_OTHER, TFM_ConfigEntry.FORCE_IP_KICKMSG.getString());
|
if(!event.getHostname().equalsIgnoreCase(TFM_ConfigEntry.SERVER_HOSTNAME.getString() + ":" + TFM_ConfigEntry.SERVER_PORT.getInteger()))
|
||||||
|
{
|
||||||
|
event.disallow(PlayerLoginEvent.Result.KICK_OTHER, TFM_ConfigEntry.FORCE_IP_KICKMSG.getString());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user