fix: Correctly filtered players in the AuthmePlaceholders expansion

This commit is contained in:
4drian3d 2022-07-12 16:09:45 +00:00
parent 818325a5f9
commit 57fe83c2e8

View File

@ -14,6 +14,7 @@ final class AuthmePlaceholders {
static Expansion getExpansion(){
return Expansion.builder("authme")
.filter(Player.class)
.audiencePlaceholder("is_logged", (aud, queue, ctx) ->
Tag.selfClosingInserting(AuthMeApi.getInstance().isAuthenticated((Player)aud)
? TRUE_COMPONENT