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

Commit d310552

Browse files
committed
fix: LuckPerms permission check error
1 parent 3097eb9 commit d310552

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ org.gradle.parallel=true
44
org.gradle.daemon=true
55
javaVersion=17
66

7-
plugin_version=3.0
7+
plugin_version=3.0.1
88
plugin_archive=huskchat
99
plugin_description=A simple & customizable no-frills Minecraft chat system
1010

velocity/src/main/java/net/william278/huskchat/user/VelocityUser.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,9 @@ public int getPlayersOnServer() {
6868

6969
@Override
7070
public boolean hasPermission(@Nullable String permission, boolean allowByDefault) {
71+
if (!player.hasPermission(permission)) {
72+
return allowByDefault;
73+
}
7174
final TriState state = player.getPermissionValue(permission).toAdventureTriState();
7275
if (permission == null || state == TriState.NOT_SET) {
7376
return allowByDefault;

0 commit comments

Comments
 (0)