HomeSpawnPlus

HomeSpawnPlus

342k Downloads

Issue with allowing multiple homes

syrmor opened this issue ยท 3 comments

commented

image
image
I want platinum to be able to set 2 homes in each allowed world but everytime a platinum rank tries to set a second home it tells them they can only set 1.

commented

I'm having similar issues, strangely in mine it reads one world group correctly, but ignores two other world groups. Configs are near identical except for the number of homes. It reads the perm nodes for one grouping, but not for the other two. (strangely it's the last grouping to parse that it takes notice of,yet it recognises the world names for other perms)

In yours I can't see the world defined, but I'm presuming it would just follow by level (ours is a bit more complex)

commented

Sorry, I've been super busy lately and haven't been keeping up with issues here. To the original requester: this is a simple YAML configuration issue. YAML does not allow two keys named the same at the same level, but unfortunately the YAML processor won't throw an error either, it will just silently drop one of them.

So instead of:

events:
  someEvent:
    permission:
      limit1:
    permission:
      limit2:

You instead need to make it look like:

events:
  someEvent:
    permission:
      limit1:
      limit2:

This should solve the problem you reported.

To @frizzbee30 ; if your YAML is similarly misconfigured, this should solve your problem too. If this doesn't fix it, please open a new ticket and attach your YAML configs with a detailed description of the problem.

commented

Hi syrmor I've attached the config that worked for me, it may or may not help you as an example to work from, or you may have already 'cracked' it :) Our allows different home limits per world by rank. The perm node is just given to the appropriate group or individual

config

http://pastebin.com/16KsTb8z