diff --git a/README.md b/README.md index e374c1a..5882525 100644 --- a/README.md +++ b/README.md @@ -6,8 +6,8 @@ This plugin adds the support for [Velocity](https://velocitypowered.com/) to [AuthMeReloaded](https://github.com/AuthMe/AuthMeReloaded) ## Requirements -- Paper, Pufferfish or Purpur 1.8-1.19.2 && 1.19.4+ -- Velocity 3.2.0+ +- Paper, Folia or Purpur 1.19.4+ +- Velocity 3.3.0+ - Java 17+ ## Features diff --git a/common/src/main/java/io/github/_4drian3d/authmevelocity/common/configuration/ConfigurationContainer.java b/common/src/main/java/io/github/_4drian3d/authmevelocity/common/configuration/ConfigurationContainer.java index e8ccf23..603031d 100644 --- a/common/src/main/java/io/github/_4drian3d/authmevelocity/common/configuration/ConfigurationContainer.java +++ b/common/src/main/java/io/github/_4drian3d/authmevelocity/common/configuration/ConfigurationContainer.java @@ -65,8 +65,8 @@ public final class ConfigurationContainer { .defaultOptions(opts -> opts .shouldCopyDefaults(true) .header(""" - AuthMeVelocity | by Glyart & 4drian3d - """) + AuthMeVelocity | by Glyart & 4drian3d + """) ) .path(path) .build(); diff --git a/velocity/src/main/java/io/github/_4drian3d/authmevelocity/velocity/hooks/AuthMePlaceholders.java b/velocity/src/main/java/io/github/_4drian3d/authmevelocity/velocity/hooks/AuthMePlaceholders.java index 707ddbb..177cd37 100644 --- a/velocity/src/main/java/io/github/_4drian3d/authmevelocity/velocity/hooks/AuthMePlaceholders.java +++ b/velocity/src/main/java/io/github/_4drian3d/authmevelocity/velocity/hooks/AuthMePlaceholders.java @@ -40,7 +40,7 @@ public final class AuthMePlaceholders { .audiencePlaceholder("is_logged", (aud, queue, ctx) -> Tag.selfClosingInserting(plugin.isLogged((Player) aud) ? TRUE_COMPONENT : FALSE_COMPONENT)) .globalPlaceholder("is_player_logged", (queue, ctx) -> { - String playerName = queue.popOr(() -> "you need to provide a player").value(); + final String playerName = queue.popOr(() -> "you need to provide a player").value(); return Tag.selfClosingInserting( proxyServer.getPlayer(playerName) .map(plugin::isLogged) diff --git a/velocity/src/main/java/io/github/_4drian3d/authmevelocity/velocity/listener/input/CommandListener.java b/velocity/src/main/java/io/github/_4drian3d/authmevelocity/velocity/listener/input/CommandListener.java index 0e6dd50..dc779a2 100644 --- a/velocity/src/main/java/io/github/_4drian3d/authmevelocity/velocity/listener/input/CommandListener.java +++ b/velocity/src/main/java/io/github/_4drian3d/authmevelocity/velocity/listener/input/CommandListener.java @@ -71,8 +71,8 @@ public final class CommandListener implements Listener { }); } - private void sendBlockedMessage(Player player){ - String blockedMessage = plugin.config().get().commands().blockedCommandMessage(); + private void sendBlockedMessage(final Player player){ + final String blockedMessage = plugin.config().get().commands().blockedCommandMessage(); if (!blockedMessage.isBlank()){ player.sendMessage(MiniMessage.miniMessage().deserialize(blockedMessage)); }