From 378815c162e007b349507c026ecac809be63ece7 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot 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. By: EvilSeph --- paper-api/src/main/java/org/bukkit/Server.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/paper-api/src/main/java/org/bukkit/Server.java b/paper-api/src/main/java/org/bukkit/Server.java index c10dba949..87f4420bb 100644 --- a/paper-api/src/main/java/org/bukkit/Server.java +++ b/paper-api/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. */