Skip to content

Commit cbfac46

Browse files
authored
Merge pull request #18 from fixrtm/permission-log
fix: Permission missing message is shown if it has permission
2 parents d6b5a8e + ea6adab commit cbfac46

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/com/anatawa12/pluginPermsForNgt/NGTPermissionManagerBukkit.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,11 +108,11 @@ public void removePermission(ICommandSender player, String targetPlayerName, Str
108108

109109
@Vendors({Vendor.NGT1710, Vendor.NGT1122})
110110
public boolean hasPermission(ICommandSender player, String category) {
111-
if (!hasPermissionInternal(player, category)) {
112-
return false;
111+
if (hasPermissionInternal(player, category)) {
112+
return true;
113113
}
114114
NGTLog.sendChatMessage(player, "You don't have " + PERM_PREFIX + category + " permission.");
115-
return true;
115+
return false;
116116
}
117117

118118
@Vendors(Vendor.PluginPermsForNgt)

0 commit comments

Comments
 (0)