mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-12-24 10:09:50 +01:00
update kit sign permission check
This commit is contained in:
parent
cd7be1bb86
commit
21cb8efb90
@ -51,7 +51,7 @@ public class SignKit extends EssentialsSign
|
||||
final String kitName = sign.getLine(1).toLowerCase(Locale.ENGLISH).trim();
|
||||
final String group = sign.getLine(2);
|
||||
if ((!group.isEmpty() && ("§2Everyone".equals(group) || player.inGroup(group)))
|
||||
|| (group.isEmpty() && (player.isAuthorized("essentials.kit." + kitName))))
|
||||
|| (group.isEmpty() && (player.isAuthorized("essentials.kits." + kitName))))
|
||||
{
|
||||
final Trade charge = getTrade(sign, 3, ess);
|
||||
charge.isAffordableFor(player);
|
||||
|
Loading…
Reference in New Issue
Block a user