aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md26
-rw-r--r--src/main/java/net/elytrium/limboauth/LimboAuth.java6
-rw-r--r--src/main/java/net/elytrium/limboauth/command/LimboAuthCommand.java6
3 files changed, 16 insertions, 22 deletions
diff --git a/README.md b/README.md
index 6f07926..e96a6bf 100644
--- a/README.md
+++ b/README.md
@@ -3,8 +3,8 @@
# LimboAuth
[![Join our Discord](https://img.shields.io/discord/775778822334709780.svg?logo=discord&label=Discord)](https://ely.su/discord)
-[![Proxy Stats](https://img.shields.io/bstats/servers/12530?logo=minecraft&label=Servers)](https://bstats.org/plugin/velocity/LimboAPI/12530)
-[![Proxy Stats](https://img.shields.io/bstats/players/12530?logo=minecraft&label=Players)](https://bstats.org/plugin/velocity/LimboAPI/12530)
+[![Proxy Stats](https://img.shields.io/bstats/servers/13700?logo=minecraft&label=Servers)](https://bstats.org/plugin/velocity/LimboAuth/13700)
+[![Proxy Stats](https://img.shields.io/bstats/players/13700?logo=minecraft&label=Players)](https://bstats.org/plugin/velocity/LimboAuth/13700)
Auth System built in virtual server (Limbo). \
[MC-Market](https://www.mc-market.org/resources/21097/) \
@@ -21,17 +21,17 @@ Test server: [``ely.su``](https://hotmc.ru/minecraft-server-203216)
## Features of LimboAuth
-- Supports H2, MySQL, PostgreSQL databases
-- Geyser Floodgate support
-- Hybrid (Floodgate/Online/Offline) mode support
-- Uses BCrypt - the best hashing algorithm for password
-- Ability to migrate from AuthMe-alike plugins
-- Ability to block weak passwords
-- TOTP 2FA support
-- Ability to set UUID from database
-- Highly customisable config - you can change all the messages the plugin sends, or just disable them
-- MCEdit schematic world loading
-- And more..
+- Supports H2, MySQL, PostgreSQL databases;
+- Geyser Floodgate support;
+- Hybrid (Floodgate/Online/Offline) mode support;
+- Uses BCrypt - the best hashing algorithm for password;
+- Ability to migrate from AuthMe-alike plugins;
+- Ability to block weak passwords;
+- TOTP 2FA support;
+- Ability to set UUID from database;
+- Highly customisable config - you can change all the messages the plugin sends, or just disable them;
+- MCEdit schematic world loading;
+- And more...
## Donation
diff --git a/src/main/java/net/elytrium/limboauth/LimboAuth.java b/src/main/java/net/elytrium/limboauth/LimboAuth.java
index 6ba887d..ad54496 100644
--- a/src/main/java/net/elytrium/limboauth/LimboAuth.java
+++ b/src/main/java/net/elytrium/limboauth/LimboAuth.java
@@ -77,7 +77,6 @@ import net.elytrium.limboauth.handler.AuthSessionHandler;
import net.elytrium.limboauth.listener.AuthListener;
import net.elytrium.limboauth.model.RegisteredPlayer;
import net.elytrium.limboauth.utils.UpdatesChecker;
-import net.kyori.adventure.text.Component;
import net.kyori.adventure.text.serializer.legacy.LegacyComponentSerializer;
import net.kyori.adventure.title.Title;
import org.bstats.velocity.Metrics;
@@ -114,7 +113,6 @@ public class LimboAuth {
private Dao<RegisteredPlayer, String> playerDao;
private Pattern nicknameValidationPattern;
private Limbo authServer;
- private Component nicknameInvalid;
@Inject
public LimboAuth(ProxyServer server, Logger logger, Metrics.Factory metricsFactory, @DataDirectory Path dataDirectory) {
@@ -253,8 +251,6 @@ public class LimboAuth {
this.authServer = this.factory.createLimbo(authWorld);
- this.nicknameInvalid = LegacyComponentSerializer.legacyAmpersand().deserialize(Settings.IMP.MAIN.STRINGS.NICKNAME_INVALID_KICK);
-
this.server.getEventManager().unregisterListeners(this);
this.server.getEventManager().register(this, new AuthListener(this, this.playerDao));
@@ -337,7 +333,7 @@ public class LimboAuth {
public void authPlayer(Player player) {
String nickname = player.getUsername();
if (!this.nicknameValidationPattern.matcher(nickname).matches()) {
- player.disconnect(this.nicknameInvalid);
+ player.disconnect(LegacyComponentSerializer.legacyAmpersand().deserialize(Settings.IMP.MAIN.STRINGS.NICKNAME_INVALID_KICK));
return;
}
diff --git a/src/main/java/net/elytrium/limboauth/command/LimboAuthCommand.java b/src/main/java/net/elytrium/limboauth/command/LimboAuthCommand.java
index 1465023..73c6faf 100644
--- a/src/main/java/net/elytrium/limboauth/command/LimboAuthCommand.java
+++ b/src/main/java/net/elytrium/limboauth/command/LimboAuthCommand.java
@@ -69,11 +69,9 @@ public class LimboAuthCommand implements SimpleCommand {
source.sendMessage(LegacyComponentSerializer.legacyAmpersand().deserialize(Settings.IMP.MAIN.STRINGS.RELOAD_FAILED));
e.printStackTrace();
}
- } else {
- this.showHelp(source);
- }
- return;
+ return;
+ }
}
this.showHelp(source);