Makes the delay to prevent client errors configurable
This commit is contained in:
@@ -112,6 +112,13 @@ public enum ConfigOption {
|
||||
"Whether to enable a fix that causes loss of NBT data, but allows vehicle teleportation to work " +
|
||||
"when CraftBook's remove minecart/boat on eject setting is enabled", false),
|
||||
|
||||
/**
|
||||
* The delay between teleporting a vehicle and adding the player as passenger
|
||||
*/
|
||||
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),
|
||||
|
||||
/**
|
||||
* Whether to enable economy support for taking payment from players creating/destroying/using stargates
|
||||
*/
|
||||
|
@@ -136,6 +136,15 @@ public final class StargateGateConfig {
|
||||
return (boolean) configOptions.get(ConfigOption.ENABLE_CRAFT_BOOK_REMOVE_ON_EJECT_FIX);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the delay to use before adding a player as passenger of a teleported vehicle
|
||||
*
|
||||
* @return <p>The delay to use before adding a player as passenger of a teleported vehicle</p>
|
||||
*/
|
||||
public int waitForPlayerAfterTeleportDelay() {
|
||||
return (int) configOptions.get(ConfigOption.WAIT_FOR_PLAYER_AFTER_TELEPORT_DELAY);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets whether the list of destinations within a network should be sorted
|
||||
*
|
||||
|
Reference in New Issue
Block a user