OpenInv

4M Downloads

Allow `openinv.exempt` to work for enderchests as well

baailey opened this issue ยท 1 comments

commented

Unsure if a bug or intentional, however, I'd like the permission openinv.exempt to also apply to enderchests. Though, a separate permission for making enderchests exempt works too if you'd prefer. Thanks.

commented

It does, /openinv and /openender run slight variations of the same command code.

// Protected check
if (!Permissions.OVERRIDE.hasPermission(player)
&& Permissions.EXEMPT.hasPermission(onlineTarget)) {
plugin.sendMessage(player, "messages.error.permissionExempt",
"%target%", onlineTarget.getDisplayName());
return;
}