Skip to content
This repository has been archived by the owner on Oct 12, 2024. It is now read-only.

Commit

Permalink
fix: LuckPerms permission check error
Browse files Browse the repository at this point in the history
  • Loading branch information
WiIIiam278 committed Mar 29, 2024
1 parent 3097eb9 commit d310552
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ org.gradle.parallel=true
org.gradle.daemon=true
javaVersion=17

plugin_version=3.0
plugin_version=3.0.1
plugin_archive=huskchat
plugin_description=A simple & customizable no-frills Minecraft chat system

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ public int getPlayersOnServer() {

@Override
public boolean hasPermission(@Nullable String permission, boolean allowByDefault) {
if (!player.hasPermission(permission)) {
return allowByDefault;
}
final TriState state = player.getPermissionValue(permission).toAdventureTriState();
if (permission == null || state == TriState.NOT_SET) {
return allowByDefault;
Expand Down

0 comments on commit d310552

Please sign in to comment.