Configuration
GeoSpawn provides several configuration options to ensure desired function and compatibility with other plugins.
teleport-mode: can be "delay", "intercept", or "direct". Delay will schedule the spawn teleport for several ticks after the player joins, to prevent being preempted by bukkit's default spawning behaviour and other spawn plugins. Intercept will watch for the next teleport event for the player and redirect it to the proper spawn. Direct will teleport the player directly to their spawn point. Direct is included only for full support and compatibility, and will not work in most bukkit installs, since bukkit will immediately respawn the player away from the GeoSpawn point. Intercept will work if no other spawn plugins are attempting to respawn the player, and is the cleanest mode, as it simply redirects the native bukkit respawn. Delay is the method used by most spawn plugins, and schedules the teleport after bukkit, and other plugins, have (hopefully) finished teleporting the player.
intercept-timeout: is the number of ticks an intercept teleport will wait before deciding a spawn teleport isn't going to happen. This should in theory never be hit, but it should be set to a low value so the intercept doesn't redirect a later, desired teleport such as /home. This only has effect if teleport-type is set to intercept.
teleport-delay: is the number of ticks the delay teleport waits before teleporting the player. If you are using other spawn plugins, you may need to increase this number to ensure GeoSpawn gets in "the last word" when spawning a new player. This only has effect if teleport-type is set to delay.
default-country: is the country code of the default GeoSpawn. It is used as the GeoSpawn point for players from countries you've not set specific GeoSpawns for. Obviously, it only has effect if you set a GeoSpawn for the default country.
Comments