{"action":"created","issue":{"url":"https://api.github.com/repos/alvyxaz/barebones-masterserver/issues/39","repository_url":"https://api.github.com/repos/alvyxaz/barebones-masterserver","labels_url":"https://api.github.com/repos/alvyxaz/barebones-masterserver/issues/39/labels{/name}","comments_url":"https://api.github.com/repos/alvyxaz/barebones-masterserver/issues/39/comments","events_url":"https://api.github.com/repos/alvyxaz/barebones-masterserver/issues/39/events","html_url":"https://github.com/alvyxaz/barebones-masterserver/issues/39","id":204809483,"number":39,"title":"non player specific data and DB","user":{"login":"delmarle","id":1897801,"avatar_url":"https://avatars.githubusercontent.com/u/1897801?v=3","gravatar_id":"","url":"https://api.github.com/users/delmarle","html_url":"https://github.com/delmarle","followers_url":"https://api.github.com/users/delmarle/followers","following_url":"https://api.github.com/users/delmarle/following{/other_user}","gists_url":"https://api.github.com/users/delmarle/gists{/gist_id}","starred_url":"https://api.github.com/users/delmarle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/delmarle/subscriptions","organizations_url":"https://api.github.com/users/delmarle/orgs","repos_url":"https://api.github.com/users/delmarle/repos","events_url":"https://api.github.com/users/delmarle/events{/privacy}","received_events_url":"https://api.github.com/users/delmarle/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-02-02T08:25:42Z","updated_at":"2017-02-02T14:13:06Z","closed_at":null,"body":"How are we supposed to save and load some global data that should no being attached to the player like Guilds for example?"},"comment":{"url":"https://api.github.com/repos/alvyxaz/barebones-masterserver/issues/comments/276967977","html_url":"https://github.com/alvyxaz/barebones-masterserver/issues/39#issuecomment-276967977","issue_url":"https://api.github.com/repos/alvyxaz/barebones-masterserver/issues/39","id":276967977,"user":{"login":"alvyxaz","id":3227731,"avatar_url":"https://avatars.githubusercontent.com/u/3227731?v=3","gravatar_id":"","url":"https://api.github.com/users/alvyxaz","html_url":"https://github.com/alvyxaz","followers_url":"https://api.github.com/users/alvyxaz/followers","following_url":"https://api.github.com/users/alvyxaz/following{/other_user}","gists_url":"https://api.github.com/users/alvyxaz/gists{/gist_id}","starred_url":"https://api.github.com/users/alvyxaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alvyxaz/subscriptions","organizations_url":"https://api.github.com/users/alvyxaz/orgs","repos_url":"https://api.github.com/users/alvyxaz/repos","events_url":"https://api.github.com/users/alvyxaz/events{/privacy}","received_events_url":"https://api.github.com/users/alvyxaz/received_events","type":"User","site_admin":false},"created_at":"2017-02-02T14:13:06Z","updated_at":"2017-02-02T14:13:06Z","body":"You'll probably need to save it into the database that you're using.\r\n\r\nThe way I'd do it, would be to create a new module for master server, then listen to an event for when user logs in (AuthModule.OnLogin), and load the data from database.\r\n\r\nIf the data is missing, create the default data and write it to the database.\r\n\r\nAfter loading the data, I'd save it to the connection (IPeer.SetProperty), and this way, every logged in user would have their data attached to their connection.\r\n\r\nThen I'd add some custom message handlers to the newly created module to retrieve guild info on clients request :)"}}
{"actor":{"display_login":"alvyxaz"}}