Skip to content

Commit

Permalink
chore: Updated README compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
4drian3d committed Dec 19, 2023
1 parent 0a385ef commit 0f07c13
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ public static <C> ConfigurationContainer<C> load(Path path, Class<C> clazz) thro
.defaultOptions(opts -> opts
.shouldCopyDefaults(true)
.header("""
AuthMeVelocity | by Glyart & 4drian3d
""")
AuthMeVelocity | by Glyart & 4drian3d
""")
)
.path(path)
.build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public Expansion getExpansion() {
.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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ public EventTask executeAsync(final CommandExecuteEvent event) {
});
}

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));
}
Expand Down

0 comments on commit 0f07c13

Please sign in to comment.