chore: Updated README compatibility
This commit is contained in:
parent
0a385ef6fb
commit
0f07c13674
@ -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
|
||||
|
@ -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)
|
||||
|
@ -71,8 +71,8 @@ public final class CommandListener implements Listener<CommandExecuteEvent> {
|
||||
});
|
||||
}
|
||||
|
||||
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));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user