File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/main/java/me/rothes/protocolstringreplacer/api/user Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -154,7 +154,7 @@ public boolean isOnline() {
154154 }
155155
156156 public boolean hasPermissionOrOp (String permission ) {
157- return sender .isOp () || hasPermission ( permission );
157+ return hasPermission ( permission ) || ( sender .isOp () && ! getSender (). isPermissionSet ( permission ) );
158158 }
159159
160160 public boolean hasPermission (String permission ) {
@@ -342,7 +342,7 @@ public void clearUserMetaCache() {
342342 }
343343
344344 public void saveUserMetaCache (ItemStack originalItem , ItemStack replacedItem ) {
345- if (this .hasPermissionOrOp ("protocolstringreplacer.feature.usermetacache" ) && originalItem .hasItemMeta ()) {
345+ if (this .hasPermission ("protocolstringreplacer.feature.usermetacache" ) && originalItem .hasItemMeta ()) {
346346 if (ProtocolStringReplacer .getInstance ().getConfigManager ().removeCacheWhenMerchantTrade && isInMerchant ()) {
347347 return ;
348348 }
You can’t perform that action at this time.
0 commit comments