mirror of
https://github.com/TheDeus-Group/TFM-4.3-Reloaded.git
synced 2024-12-23 02:04:57 +00:00
Fixed Formatting Issues - Forgot it was allman style there.
This commit is contained in:
parent
1bc22a817a
commit
7981adaf85
1 changed files with 5 additions and 3 deletions
|
@ -856,9 +856,11 @@ public class TFM_PlayerListener implements Listener
|
|||
TFM_ServerInterface.handlePlayerLogin(event);
|
||||
|
||||
// Force IP Setup
|
||||
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(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());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue