summaryrefslogtreecommitdiffstats
path: root/src/main/java/org
diff options
context:
space:
mode:
authorEvilSeph <evilseph@gmail.com>2012-01-29 06:36:43 -0500
committerEvilSeph <evilseph@gmail.com>2012-01-29 12:33:05 -0500
commitf1a35effb05e06c0ae5556f76234a41e3ae3704e (patch)
tree25065c39fcbd42e3c036062db674d2e4df091273 /src/main/java/org
parentc5a4bfd291af3a381a8c3f2a4a81766522039236 (diff)
downloadcraftbukkit-f1a35effb05e06c0ae5556f76234a41e3ae3704e.tar
craftbukkit-f1a35effb05e06c0ae5556f76234a41e3ae3704e.tar.gz
craftbukkit-f1a35effb05e06c0ae5556f76234a41e3ae3704e.tar.lz
craftbukkit-f1a35effb05e06c0ae5556f76234a41e3ae3704e.tar.xz
craftbukkit-f1a35effb05e06c0ae5556f76234a41e3ae3704e.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/java/org')
-rw-r--r--src/main/java/org/bukkit/craftbukkit/CraftServer.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/CraftServer.java b/src/main/java/org/bukkit/craftbukkit/CraftServer.java
index 5f8216f5..a7e98d74 100644
--- a/src/main/java/org/bukkit/craftbukkit/CraftServer.java
+++ b/src/main/java/org/bukkit/craftbukkit/CraftServer.java
@@ -771,6 +771,10 @@ public final class CraftServer implements Server {
return this.console.allowFlight;
}
+ public boolean useExactLoginLocation() {
+ return configuration.getBoolean("settings.use-exact-login-location");
+ }
+
public ChunkGenerator getGenerator(String world) {
ConfigurationSection section = configuration.getConfigurationSection("worlds");
ChunkGenerator result = null;