mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-26 09:13:06 +00:00
Implement Default Profile Slots + Better Permission Handling
This commit is contained in:
1 parent
12eaadc1b6
commit
5484a382df
3 files changed
+15
-9
No files matched your search
@@ -21,7 +21,6 @@ public class ConfigMain {
|
||||
public final static String PARTY = "PARTY";
|
||||
public final static String PROFILES = "Profile";
|
||||
public final static String ATTRIBUTES = "Attributes";
|
||||
public final static String ITEM = "Item";
|
||||
|
||||
/**
|
||||
* General Main Properties
|
||||
@@ -94,6 +93,8 @@ public class ConfigMain {
|
||||
public static Property RestrictedProfileRegionsProperty;
|
||||
public static List<List<Integer>> RestrictedProfileRegions = new ArrayList<>();
|
||||
|
||||
public static int DefaultProfileSlots = 5;
|
||||
|
||||
|
||||
/**
|
||||
* General NPC Properties
|
||||
@@ -234,6 +235,8 @@ public class ConfigMain {
|
||||
"1, 50, 60, 50, 150, 75, 150"
|
||||
}, "List of restricted regions where profile switching is enabled. Format: DIM, X1, Y1, Z1, X2, Y2, Z2");
|
||||
|
||||
DefaultProfileSlots = config.get(PROFILES, "Default Profile Slots", 5, "This is the default amount without any permission handling").getInt(5);
|
||||
|
||||
RestrictedProfileRegions.clear();
|
||||
for (String region : RestrictedProfileRegionsProperty.getStringList()) {
|
||||
String[] parts = region.split(", ");
|
||||
|
||||
Reference in new issue
Block a user