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)
|
This plugin adds the support for [Velocity](https://velocitypowered.com/) to [AuthMeReloaded](https://github.com/AuthMe/AuthMeReloaded)
|
||||||
|
|
||||||
## Requirements
|
## Requirements
|
||||||
- Paper, Pufferfish or Purpur 1.8-1.19.2 && 1.19.4+
|
- Paper, Folia or Purpur 1.19.4+
|
||||||
- Velocity 3.2.0+
|
- Velocity 3.3.0+
|
||||||
- Java 17+
|
- Java 17+
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
@ -65,8 +65,8 @@ public final class ConfigurationContainer<C> {
|
|||||||
.defaultOptions(opts -> opts
|
.defaultOptions(opts -> opts
|
||||||
.shouldCopyDefaults(true)
|
.shouldCopyDefaults(true)
|
||||||
.header("""
|
.header("""
|
||||||
AuthMeVelocity | by Glyart & 4drian3d
|
AuthMeVelocity | by Glyart & 4drian3d
|
||||||
""")
|
""")
|
||||||
)
|
)
|
||||||
.path(path)
|
.path(path)
|
||||||
.build();
|
.build();
|
||||||
|
@ -40,7 +40,7 @@ public final class AuthMePlaceholders {
|
|||||||
.audiencePlaceholder("is_logged", (aud, queue, ctx) ->
|
.audiencePlaceholder("is_logged", (aud, queue, ctx) ->
|
||||||
Tag.selfClosingInserting(plugin.isLogged((Player) aud) ? TRUE_COMPONENT : FALSE_COMPONENT))
|
Tag.selfClosingInserting(plugin.isLogged((Player) aud) ? TRUE_COMPONENT : FALSE_COMPONENT))
|
||||||
.globalPlaceholder("is_player_logged", (queue, ctx) -> {
|
.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(
|
return Tag.selfClosingInserting(
|
||||||
proxyServer.getPlayer(playerName)
|
proxyServer.getPlayer(playerName)
|
||||||
.map(plugin::isLogged)
|
.map(plugin::isLogged)
|
||||||
|
@ -71,8 +71,8 @@ public final class CommandListener implements Listener<CommandExecuteEvent> {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
private void sendBlockedMessage(Player player){
|
private void sendBlockedMessage(final Player player){
|
||||||
String blockedMessage = plugin.config().get().commands().blockedCommandMessage();
|
final String blockedMessage = plugin.config().get().commands().blockedCommandMessage();
|
||||||
if (!blockedMessage.isBlank()){
|
if (!blockedMessage.isBlank()){
|
||||||
player.sendMessage(MiniMessage.miniMessage().deserialize(blockedMessage));
|
player.sendMessage(MiniMessage.miniMessage().deserialize(blockedMessage));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user