From 841a60ca59b395db73b9f9d1fa387db6dabea230 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Sun, 29 Jan 2012 06:36:43 -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 --- .../src/main/java/org/bukkit/craftbukkit/CraftServer.java | 4 ++++ paper-server/src/main/resources/configurations/bukkit.yml | 1 + 2 files changed, 5 insertions(+) diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/CraftServer.java b/paper-server/src/main/java/org/bukkit/craftbukkit/CraftServer.java index 5f8216f5d3..a7e98d74a5 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/CraftServer.java +++ b/paper-server/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; diff --git a/paper-server/src/main/resources/configurations/bukkit.yml b/paper-server/src/main/resources/configurations/bukkit.yml index 392ca9c0ac..cf93fab41b 100644 --- a/paper-server/src/main/resources/configurations/bukkit.yml +++ b/paper-server/src/main/resources/configurations/bukkit.yml @@ -20,6 +20,7 @@ settings: permissions-file: permissions.yml update-folder: update ping-packet-limit: 100 + use-exact-login-location: false aliases: icanhasbukkit: - version