Fix longstanding forward typo

This commit is contained in:
md_5 2014-08-31 10:13:50 +10:00
parent f81b8a3550
commit 19b48672af
3 changed files with 4 additions and 4 deletions

View File

@ -60,7 +60,7 @@ public interface ProxyConfig
* Whether the proxy will parse IPs with spigot or not
*/
@Deprecated
boolean isIpFoward();
boolean isIpForward();
/**
* The encoded favicon.

View File

@ -69,7 +69,7 @@ public class ServerConnector extends PacketHandler
Handshake originalHandshake = user.getPendingConnection().getHandshake();
Handshake copiedHandshake = new Handshake( originalHandshake.getProtocolVersion(), originalHandshake.getHost(), originalHandshake.getPort(), 2 );
if ( BungeeCord.getInstance().config.isIpFoward() )
if ( BungeeCord.getInstance().config.isIpForward() )
{
String newHost = copiedHandshake.getHost() + "\00" + user.getAddress().getHostString() + "\00" + user.getUUID();

View File

@ -50,7 +50,7 @@ public class Configuration implements ProxyConfig
private int playerLimit = -1;
private Collection<String> disabledCommands;
private int throttle = 4000;
private boolean ipFoward;
private boolean ipForward;
private Favicon favicon;
public void load()
@ -76,7 +76,7 @@ public class Configuration implements ProxyConfig
onlineMode = adapter.getBoolean( "online_mode", onlineMode );
playerLimit = adapter.getInt( "player_limit", playerLimit );
throttle = adapter.getInt( "connection_throttle", throttle );
ipFoward = adapter.getBoolean( "ip_forward", ipFoward );
ipForward = adapter.getBoolean( "ip_forward", ipForward );
disabledCommands = new CaseInsensitiveSet( (Collection<String>) adapter.getList( "disabled_commands", Arrays.asList( "disabledcommandhere" ) ) );