ensure buildlimit permission is really set for this shop plugin
This commit is contained in:
@@ -50,7 +50,7 @@ public class PlayerListener extends EventListener {
|
||||
int buildPermissionNumber = -1;
|
||||
|
||||
for (PermissionAttachmentInfo permInfo : player.getEffectivePermissions()) {
|
||||
if (permInfo.getPermission().contains("shop.buildlimit.")) {
|
||||
if (permInfo.getPermission().startsWith("shop.buildlimit.")) {
|
||||
try {
|
||||
int tempNum = Integer.parseInt(permInfo.getPermission().substring(permInfo.getPermission().lastIndexOf(".") + 1));
|
||||
if (tempNum > buildPermissionNumber) {
|
||||
|
||||
Reference in New Issue
Block a user