diff options
author | EvilSeph <evilseph@gmail.com> | 2012-01-29 06:33:50 -0500 |
---|---|---|
committer | EvilSeph <evilseph@gmail.com> | 2012-01-29 12:31:59 -0500 |
commit | b4713855e208e20f1ea2eebaaa1d14b7b06cc77b (patch) | |
tree | 467baf8558bc6ca7d0f5cec3b5bcac1cffa179d5 /src/main | |
parent | 839d00f9d6ca09fc7b2b4fe86b7778e91ee40040 (diff) | |
download | bukkit-b4713855e208e20f1ea2eebaaa1d14b7b06cc77b.tar bukkit-b4713855e208e20f1ea2eebaaa1d14b7b06cc77b.tar.gz bukkit-b4713855e208e20f1ea2eebaaa1d14b7b06cc77b.tar.lz bukkit-b4713855e208e20f1ea2eebaaa1d14b7b06cc77b.tar.xz bukkit-b4713855e208e20f1ea2eebaaa1d14b7b06cc77b.zip |
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.
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/org/bukkit/Server.java | 10 |
1 files changed, 10 insertions, 0 deletions
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 @@ -442,6 +442,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. */ public void shutdown(); |