diff options
author | Petr Ilin <hevav@hevav.dev> | 2023-01-02 22:26:02 +0300 |
---|---|---|
committer | Petr Ilin <hevav@hevav.dev> | 2023-01-02 22:26:02 +0300 |
commit | 711a554a773184610b183405276ccc516907d872 (patch) | |
tree | 8844bf48c8b7aa9cc3150d2cc7677c6dd0f9d183 /src/main/java/net/elytrium/limboauth/handler | |
parent | 30ca033a92526e51c0763b5fe1da38a5b476c799 (diff) | |
download | LimboAuth-711a554a773184610b183405276ccc516907d872.tar.gz LimboAuth-711a554a773184610b183405276ccc516907d872.tar.bz2 LimboAuth-711a554a773184610b183405276ccc516907d872.zip |
disable-falling config option
Diffstat (limited to 'src/main/java/net/elytrium/limboauth/handler')
-rw-r--r-- | src/main/java/net/elytrium/limboauth/handler/AuthSessionHandler.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main/java/net/elytrium/limboauth/handler/AuthSessionHandler.java b/src/main/java/net/elytrium/limboauth/handler/AuthSessionHandler.java index b459008..a3c4e6f 100644 --- a/src/main/java/net/elytrium/limboauth/handler/AuthSessionHandler.java +++ b/src/main/java/net/elytrium/limboauth/handler/AuthSessionHandler.java @@ -120,7 +120,11 @@ public class AuthSessionHandler implements LimboSessionHandler { this.player = player; this.ip = this.proxyPlayer.getRemoteAddress().getAddress().getHostAddress(); - this.player.disableFalling(); + if (Settings.IMP.MAIN.DISABLE_FALLING) { + this.player.disableFalling(); + } else { + this.player.enableFalling(); + } Serializer serializer = LimboAuth.getSerializer(); |