Makes the delay to prevent client errors configurable

This commit is contained in:
2022-02-08 18:31:26 +01:00
parent 497551d889
commit 6c32de59a8
4 changed files with 23 additions and 3 deletions

View File

@@ -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
*