CitizensDev/Citizens — Issue #567: More quest.yml config dilemmas
Author: luigivampa
Created: 2012-01-01 21:05:45+00:00
State: open

Here is the reward from 'build rights' quest in my quest.yml

rewards:
'0':
type: rank
rank: 'user'

It adds the player to the user group (build: true) as it should but does not remove them from the default group (build: false).
The permissions config.yml looks like

luigi_vampa:
groups:
- default
- user

If I remove the '- default' line manually it works fine but I can't figure out how to remove it from within the quest. I've tried dropping the rank node and using the command node instead but that doesn't seem to add anything to the permissions config. Some of the lines I've tried are

type: command

command: permissions removegroup default (this was as a second reward after using rank node)
command: permissions setgroup user
command: permissions addgroup user

server: true

Has anyone any ideas?
Thanks.