ensure buildlimit permission is really set for this shop plugin
This commit is contained in:
parent
c0bb58fe5c
commit
d4c4163bc4
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user