mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-30 17:59:53 +02:00
update kit sign permission check
This commit is contained in:
@@ -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);
|
||||||
|
Reference in New Issue
Block a user