mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 03:47:27 +00:00
Max Profile
This commit is contained in:
1 parent
900a8889aa
commit
b45d06458f
1 file changed
+2
-3
@@ -26,8 +26,7 @@ import java.net.URL;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.*;
|
||||
|
||||
import static noppes.npcs.CustomNpcsPermissions.PROFILE_REGION_BYPASS;
|
||||
import static noppes.npcs.CustomNpcsPermissions.hasPermission;
|
||||
import static noppes.npcs.CustomNpcsPermissions.*;
|
||||
|
||||
public class ProfileController implements IProfileHandler {
|
||||
|
||||
@@ -631,7 +630,7 @@ public class ProfileController implements IProfileHandler {
|
||||
public boolean allowSlotPermission(EntityPlayer player) {
|
||||
Profile profile = getProfile(player);
|
||||
int currentSlots = profile.getSlots().size();
|
||||
if (CustomNpcsPermissions.hasCustomPermission(player, "customnpcs.profile.max.*")) {
|
||||
if (CustomNpcsPermissions.hasCustomPermission(player, PROFILE_MAX.name)) {
|
||||
return true;
|
||||
}
|
||||
int highestAllowed = 0;
|
||||
|
||||
Reference in new issue
Block a user