mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-08 19:34:09 +01:00
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 <evilseph@gmail.com>
This commit is contained in:
parent
5695803314
commit
841a60ca59
2 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
|
|
|
@ -20,6 +20,7 @@ settings:
|
|||
permissions-file: permissions.yml
|
||||
update-folder: update
|
||||
ping-packet-limit: 100
|
||||
use-exact-login-location: false
|
||||
aliases:
|
||||
icanhasbukkit:
|
||||
- version
|
||||
|
|
Loading…
Reference in a new issue