{"action":"created","issue":{"url":"https://api.github.com/repos/NLthijs48/AreaShop/issues/52","labels_url":"https://api.github.com/repos/NLthijs48/AreaShop/issues/52/labels{/name}","comments_url":"https://api.github.com/repos/NLthijs48/AreaShop/issues/52/comments","events_url":"https://api.github.com/repos/NLthijs48/AreaShop/issues/52/events","html_url":"https://github.com/NLthijs48/AreaShop/issues/52","id":101649394,"number":52,"title":"Landlord passing-on","user":{"login":"M9GLiquid","id":8930315,"avatar_url":"https://avatars.githubusercontent.com/u/8930315?v=3","gravatar_id":"","url":"https://api.github.com/users/M9GLiquid","html_url":"https://github.com/M9GLiquid","followers_url":"https://api.github.com/users/M9GLiquid/followers","following_url":"https://api.github.com/users/M9GLiquid/following{/other_user}","gists_url":"https://api.github.com/users/M9GLiquid/gists{/gist_id}","starred_url":"https://api.github.com/users/M9GLiquid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/M9GLiquid/subscriptions","organizations_url":"https://api.github.com/users/M9GLiquid/orgs","repos_url":"https://api.github.com/users/M9GLiquid/repos","events_url":"https://api.github.com/users/M9GLiquid/events{/privacy}","received_events_url":"https://api.github.com/users/M9GLiquid/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/NLthijs48/AreaShop/labels/Support","name":"Support","color":"009800"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-18T12:56:31Z","updated_at":"2015-08-21T18:56:22Z","closed_at":"2015-08-21T18:56:22Z","body":"Hi there, Simple question I hope:\r\nI have figured out that as a landlord of a region you collect the cash.\r\n\r\nI want to make alot of smaller Inn's so I want to add so that when someone buys the inn they get landlords over the rented rooms inside the group/region.\r\nAs to collect from them.\r\nI understand that I can do this manually but I'm asking this to see if there is a automatic way.\r\nIf someone buys my Inn. I'd like it to add landlord over to the rent regions inside that region (I also have it set as a group).\r\nHowever I also want it so that if the player that once before bought it sells it, it would first remove him as landlord of all the regions then add the new person.\r\n\r\nI thought I could do this with the landlords and then the groups but I cannot figure it out and havn't found any information regarding it (Am I missing anything)."},"comment":{"url":"https://api.github.com/repos/NLthijs48/AreaShop/issues/comments/133530314","html_url":"https://github.com/NLthijs48/AreaShop/issues/52#issuecomment-133530314","issue_url":"https://api.github.com/repos/NLthijs48/AreaShop/issues/52","id":133530314,"user":{"login":"NLthijs48","id":6951068,"avatar_url":"https://avatars.githubusercontent.com/u/6951068?v=3","gravatar_id":"","url":"https://api.github.com/users/NLthijs48","html_url":"https://github.com/NLthijs48","followers_url":"https://api.github.com/users/NLthijs48/followers","following_url":"https://api.github.com/users/NLthijs48/following{/other_user}","gists_url":"https://api.github.com/users/NLthijs48/gists{/gist_id}","starred_url":"https://api.github.com/users/NLthijs48/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NLthijs48/subscriptions","organizations_url":"https://api.github.com/users/NLthijs48/orgs","repos_url":"https://api.github.com/users/NLthijs48/repos","events_url":"https://api.github.com/users/NLthijs48/events{/privacy}","received_events_url":"https://api.github.com/users/NLthijs48/received_events","type":"User","site_admin":false},"created_at":"2015-08-21T18:56:22Z","updated_at":"2015-08-21T18:56:22Z","body":"It is not so easy to do something like this, and sadly the group system will not be of much help to solve this. What you could do is using the `eventCommandProfiles` section in the `config.yml` file to solve this problem. For each Inn you can make a profile, and then add commands to set the landlord for the rooms inside the Inn. You need to add these commands to the `after` section of the `rented` subsection. A command would look something like this: `/areashop setlandlord %player% <regionName of room>`. You would need to add a command like that for each region (so just make a list of commands in that section). You need to create such an `eventCommandProfile` for each Inn, and assign the profile to an Inn from within the region file (<regionName>.yml for the Inn).\r\n\r\nLet me know if that solves your problem, or if you have any questions (closing the issue, you can still comment though)."}}