{"action":"created","issue":{"url":"https://api.github.com/repos/Zrips/Jobs/issues/314","repository_url":"https://api.github.com/repos/Zrips/Jobs","labels_url":"https://api.github.com/repos/Zrips/Jobs/issues/314/labels{/name}","comments_url":"https://api.github.com/repos/Zrips/Jobs/issues/314/comments","events_url":"https://api.github.com/repos/Zrips/Jobs/issues/314/events","html_url":"https://github.com/Zrips/Jobs/issues/314","id":390544453,"node_id":"MDU6SXNzdWUzOTA1NDQ0NTM=","number":314,"title":"Job Points Modifications Reset at Server Restart","user":{"login":"LCookman","id":17609860,"node_id":"MDQ6VXNlcjE3NjA5ODYw","avatar_url":"https://avatars2.githubusercontent.com/u/17609860?v=4","gravatar_id":"","url":"https://api.github.com/users/LCookman","html_url":"https://github.com/LCookman","followers_url":"https://api.github.com/users/LCookman/followers","following_url":"https://api.github.com/users/LCookman/following{/other_user}","gists_url":"https://api.github.com/users/LCookman/gists{/gist_id}","starred_url":"https://api.github.com/users/LCookman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LCookman/subscriptions","organizations_url":"https://api.github.com/users/LCookman/orgs","repos_url":"https://api.github.com/users/LCookman/repos","events_url":"https://api.github.com/users/LCookman/events{/privacy}","received_events_url":"https://api.github.com/users/LCookman/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-12-13T07:03:44Z","updated_at":"2018-12-14T01:45:57Z","closed_at":"2018-12-14T01:45:57Z","author_association":"NONE","body":"So as the title states there is an issue with jobs points that when you add or subtract them they don't  persist after a restart. Specifically speaking about `/jobs points add` and the use of the Job Shop, which is how I first learned of this issue. \r\n\r\n**Steps to Recreate and Testing:**\r\nSo first I gave myself 10,000 jobs points with the command `/jobs points add creedthefreak 10000`. Whose effect can be seen from this image here. \r\n\r\n![beforerestart](https://user-images.githubusercontent.com/17609860/49917583-a2647280-fe54-11e8-9424-cf60af679c3c.png)\r\n\r\nAfter I ran the command I disconnected and reconnected and yet the job points that were given were persisting after the disconnect. After the disconnect I restarted the server after running `save-all`. Once I logged back in after the server restarted the points had reset to what they were before I ran the `/jobs points add` command. Which can be seen below.\r\n\r\n![afterrestart](https://user-images.githubusercontent.com/17609860/49920832-7bac3900-fe60-11e8-9de9-67f8125578a6.png)\r\n\r\nThis same type of issue occurred when using the Job Shop. Here is an image before a restart to the server when the user buys an item from the shop for 5000 points.\r\n\r\n![shopafterpurchasenoreset](https://user-images.githubusercontent.com/17609860/49920897-b44c1280-fe60-11e8-8ca6-1b07e755f4c3.png)\r\n\r\nSo the points were taken from his player, and this change persisted still after a disconnect. When I restarted the server the points taken from the player were returned giving them the item and the job shop item they bought. This is the main issue which the player essentially gets a free item.\r\n\r\n![shopafterpurchaseafterreset](https://user-images.githubusercontent.com/17609860/49920972-dcd40c80-fe60-11e8-80e3-4fdc66d83ba0.png)\r\n\r\nWe have also tried to update to the latest paper spigot version, which didn't fix the issue. We then tried to go back to vanilla spigot yet this bug still persisted. We believe the issue lies here in Jobs itself, if you would like more information on our setup or have more questions as to what is happening let me know, I am more than willing to help out and get this issue fixed.\r\n\r\nSo I didn't really notice any exceptions being thrown by Jobs at least not in the regular log files. Here they are just in case they are needed. One is before a restart and one is after a restart to the server.\r\n"},"comment":{"url":"https://api.github.com/repos/Zrips/Jobs/issues/comments/447184534","html_url":"https://github.com/Zrips/Jobs/issues/314#issuecomment-447184534","issue_url":"https://api.github.com/repos/Zrips/Jobs/issues/314","id":447184534,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NzE4NDUzNA==","user":{"login":"LCookman","id":17609860,"node_id":"MDQ6VXNlcjE3NjA5ODYw","avatar_url":"https://avatars2.githubusercontent.com/u/17609860?v=4","gravatar_id":"","url":"https://api.github.com/users/LCookman","html_url":"https://github.com/LCookman","followers_url":"https://api.github.com/users/LCookman/followers","following_url":"https://api.github.com/users/LCookman/following{/other_user}","gists_url":"https://api.github.com/users/LCookman/gists{/gist_id}","starred_url":"https://api.github.com/users/LCookman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LCookman/subscriptions","organizations_url":"https://api.github.com/users/LCookman/orgs","repos_url":"https://api.github.com/users/LCookman/repos","events_url":"https://api.github.com/users/LCookman/events{/privacy}","received_events_url":"https://api.github.com/users/LCookman/received_events","type":"User","site_admin":false},"created_at":"2018-12-14T01:45:57Z","updated_at":"2018-12-14T01:45:57Z","author_association":"NONE","body":"Thanks again for the help it looks like an update was needed, I tested with the Dev version and the issue was no longer there."}}
{"actor":{"display_login":"LCookman"}}