Fixes the default wait for player after teleport delay
This commit is contained in:
		@@ -117,7 +117,7 @@ public enum ConfigOption {
 | 
			
		||||
     */
 | 
			
		||||
    WAIT_FOR_PLAYER_AFTER_TELEPORT_DELAY("advanced.waitForPlayerAfterTeleportDelay",
 | 
			
		||||
            "The amount of ticks to wait before adding a player as passenger of a vehicle. On slow servers, " +
 | 
			
		||||
                    "a value of 6 is required to avoid client glitches after teleporting on a vehicle.", 1),
 | 
			
		||||
                    "a value of 6 is required to avoid client glitches after teleporting on a vehicle.", 6),
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Whether to enable economy support for taking payment from players creating/destroying/using stargates
 | 
			
		||||
 
 | 
			
		||||
@@ -143,6 +143,9 @@ public final class StargateGateConfig {
 | 
			
		||||
     * @return <p>The delay to use before adding a player as passenger of a teleported vehicle</p>
 | 
			
		||||
     */
 | 
			
		||||
    public int waitForPlayerAfterTeleportDelay() {
 | 
			
		||||
        if ((int) configOptions.get(ConfigOption.WAIT_FOR_PLAYER_AFTER_TELEPORT_DELAY) < 2) {
 | 
			
		||||
            configOptions.put(ConfigOption.WAIT_FOR_PLAYER_AFTER_TELEPORT_DELAY, 6);
 | 
			
		||||
        }
 | 
			
		||||
        return (int) configOptions.get(ConfigOption.WAIT_FOR_PLAYER_AFTER_TELEPORT_DELAY);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user