mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-11-09 20:41:23 +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 kitName = sign.getLine(1).toLowerCase(Locale.ENGLISH).trim();
|
||||||
final String group = sign.getLine(2);
|
final String group = sign.getLine(2);
|
||||||
if ((!group.isEmpty() && ("§2Everyone".equals(group) || player.inGroup(group)))
|
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);
|
final Trade charge = getTrade(sign, 3, ess);
|
||||||
charge.isAffordableFor(player);
|
charge.isAffordableFor(player);
|
||||||
|
Loading…
Reference in New Issue
Block a user