{"action":"created","issue":{"url":"https://api.github.com/repos/ThrivingVentures/ServerGuard/issues/196","labels_url":"https://api.github.com/repos/ThrivingVentures/ServerGuard/issues/196/labels{/name}","comments_url":"https://api.github.com/repos/ThrivingVentures/ServerGuard/issues/196/comments","events_url":"https://api.github.com/repos/ThrivingVentures/ServerGuard/issues/196/events","html_url":"https://github.com/ThrivingVentures/ServerGuard/issues/196","id":93622504,"number":196,"title":"[BUG] Sourcebans","user":{"login":"MainFighter","id":9267154,"avatar_url":"https://avatars.githubusercontent.com/u/9267154?v=3","gravatar_id":"","url":"https://api.github.com/users/MainFighter","html_url":"https://github.com/MainFighter","followers_url":"https://api.github.com/users/MainFighter/followers","following_url":"https://api.github.com/users/MainFighter/following{/other_user}","gists_url":"https://api.github.com/users/MainFighter/gists{/gist_id}","starred_url":"https://api.github.com/users/MainFighter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MainFighter/subscriptions","organizations_url":"https://api.github.com/users/MainFighter/orgs","repos_url":"https://api.github.com/users/MainFighter/repos","events_url":"https://api.github.com/users/MainFighter/events{/privacy}","received_events_url":"https://api.github.com/users/MainFighter/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-07T20:37:04Z","updated_at":"2015-07-08T10:43:45Z","closed_at":null,"body":"I can't seem to get sourcebans working, I have put the right database details in and it still is not connecting.\r\n\r\nEverytime I enable the plugin it gives me the following error:\r\n[ERROR] addons/serverguard/lua/plugins/sourcebans/init.lua:16: No Database Connection\r\n  1. error - [C]:-1\r\n   2. GetAllActiveBans - addons/serverguard/lua/plugins/sourcebans/init.lua:16\r\n    3. LOAD_ACTIVE_BANS - addons/serverguard/lua/plugins/sourcebans/init.lua:14\r\n     4. v - addons/serverguard/lua/plugins/sourcebans/init.lua:48\r\n      5. unknown - lua/includes/modules/hook.lua:84\r\n\r\nThe settings.lua in the sourcebans plugin:\r\nsourcebans.SetConfig(\"hostname\", \"XXX.XXX.XXX.XXX\");\r\nsourcebans.SetConfig(\"username\", \"elemen_gameadmin\");\r\nsourcebans.SetConfig(\"password\", \"XXX\");\r\nsourcebans.SetConfig(\"database\", \"elemen_game_sourcebans\");\r\nsourcebans.SetConfig(\"dbprefix\", \"sb\");\r\nsourcebans.SetConfig(\"portnumb\", 3306);\r\nsourcebans.SetConfig(\"serverid\", 1);\r\nsourcebans.SetConfig(\"website\", \"http://elementalnetwork.com/bans\");\r\nsourcebans.SetConfig(\"showbanreason\", true);\r\n\r\nI blanked out the IP and Password on purpose by they are correct.\r\n"},"comment":{"url":"https://api.github.com/repos/ThrivingVentures/ServerGuard/issues/comments/119538128","html_url":"https://github.com/ThrivingVentures/ServerGuard/issues/196#issuecomment-119538128","issue_url":"https://api.github.com/repos/ThrivingVentures/ServerGuard/issues/196","id":119538128,"user":{"login":"OMGLent","id":11316201,"avatar_url":"https://avatars.githubusercontent.com/u/11316201?v=3","gravatar_id":"","url":"https://api.github.com/users/OMGLent","html_url":"https://github.com/OMGLent","followers_url":"https://api.github.com/users/OMGLent/followers","following_url":"https://api.github.com/users/OMGLent/following{/other_user}","gists_url":"https://api.github.com/users/OMGLent/gists{/gist_id}","starred_url":"https://api.github.com/users/OMGLent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OMGLent/subscriptions","organizations_url":"https://api.github.com/users/OMGLent/orgs","repos_url":"https://api.github.com/users/OMGLent/repos","events_url":"https://api.github.com/users/OMGLent/events{/privacy}","received_events_url":"https://api.github.com/users/OMGLent/received_events","type":"User","site_admin":false},"created_at":"2015-07-08T10:43:45Z","updated_at":"2015-07-08T10:43:45Z","body":"Nothing to do with this issue, I get the same thing. I was wondering what type of server you use and by what provider?"}}