From b4713855e208e20f1ea2eebaaa1d14b7b06cc77b Mon Sep 17 00:00:00 2001 From: EvilSeph Date: Sun, 29 Jan 2012 06:33:50 -0500 Subject: [PATCH] Added useExactLoginLocation(). Closes BUKKIT-145 useExactLoginLocation() looks for settings.use-exact-login-location within bukkit.yml. If true, we will bypass Vanilla's behaviour of checking for collisions and moving the player if needed when they login. If false, we will continue to follow Vanilla's behaviour and move players that 'collide' with objects when they login. --- src/main/java/org/bukkit/Server.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/main/java/org/bukkit/Server.java b/src/main/java/org/bukkit/Server.java index c10dba94..87f4420b 100644 --- a/src/main/java/org/bukkit/Server.java +++ b/src/main/java/org/bukkit/Server.java @@ -441,6 +441,16 @@ public interface Server extends PluginMessageRecipient { */ public boolean getAllowFlight(); + /** + * Gets whether to use vanilla (false) or exact behaviour (false). + * + * Vanilla behaviour: check for collisions and move the player if needed. + * Exact behaviour: spawn players exactly where they should be. + * + * @return Whether to use vanilla (false) or exact behaviour (true). + */ + public boolean useExactLoginLocation(); + /** * Shutdowns the server, stopping everything. */