mirror of
https://github.com/NLthijs48/AreaShop.git
synced 2024-11-05 18:31:40 +01:00
Fixes a bug with setting the owner flag
Now correctly splits the content of the owner flag at ', ' instead of just a space (members flag already does this).
This commit is contained in:
parent
e23ad74744
commit
c12314fa98
@ -45,7 +45,8 @@ rent:
|
||||
## Maximum number of extends a player can do (-1 for infinite, 0 for no extending)
|
||||
maxExtends: -1
|
||||
## The Maximum time they can have the region rented in advance (minutes, -1 for infinite)
|
||||
## If you set this higher then the duration players will not be able to rent the region
|
||||
## If you set this lower then the rent duration then players will not be able to rent the region
|
||||
## (because it always exceeds the maxRentTime in that case)
|
||||
maxRentTime: -1
|
||||
## Automatically unrent the region after the specified number of minutes between the last login time of the renter and the current time
|
||||
## -1 means never, 1440 is one day, 43200 is one month, 525600 is one year
|
||||
|
@ -1038,7 +1038,7 @@ public abstract class GeneralRegion {
|
||||
AreaShop.debug(" Flag " + flagName + " set: " + members.toUserFriendlyString());
|
||||
} else if(flagName.equalsIgnoreCase("owners")) {
|
||||
// Split the string and parse all values
|
||||
String[] names = value.split(" ");
|
||||
String[] names = value.split(", ");
|
||||
DefaultDomain owners = region.getOwners();
|
||||
owners.clear();
|
||||
for(String owner : names) {
|
||||
|
Loading…
Reference in New Issue
Block a user