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:
Thijs Wiefferink 2014-12-08 18:07:04 +01:00
parent e23ad74744
commit c12314fa98
2 changed files with 3 additions and 2 deletions

View File

@ -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

View File

@ -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) {