{"action":"created","issue":{"url":"https://api.github.com/repos/RocketFoundation/Rocket/issues/173","labels_url":"https://api.github.com/repos/RocketFoundation/Rocket/issues/173/labels{/name}","comments_url":"https://api.github.com/repos/RocketFoundation/Rocket/issues/173/comments","events_url":"https://api.github.com/repos/RocketFoundation/Rocket/issues/173/events","html_url":"https://github.com/RocketFoundation/Rocket/issues/173","id":86818106,"number":173,"title":"RocketPlayer.Ban does not work","user":{"login":"Kirollos","id":4985416,"avatar_url":"https://avatars.githubusercontent.com/u/4985416?v=3","gravatar_id":"","url":"https://api.github.com/users/Kirollos","html_url":"https://github.com/Kirollos","followers_url":"https://api.github.com/users/Kirollos/followers","following_url":"https://api.github.com/users/Kirollos/following{/other_user}","gists_url":"https://api.github.com/users/Kirollos/gists{/gist_id}","starred_url":"https://api.github.com/users/Kirollos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kirollos/subscriptions","organizations_url":"https://api.github.com/users/Kirollos/orgs","repos_url":"https://api.github.com/users/Kirollos/repos","events_url":"https://api.github.com/users/Kirollos/events{/privacy}","received_events_url":"https://api.github.com/users/Kirollos/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-06-10T03:18:21Z","updated_at":"2015-06-18T08:25:10Z","closed_at":"2015-06-10T08:40:39Z","body":"Hi there,\r\n\r\nApparently using RocketPlayer.Ban does not ban the player, it just kicks them telling the reason & duration, but the ban is not set.\r\n\r\nThis is a part of my code.\r\n\r\n```csharp\r\nstring pname = msg.Split(' ')[0];\r\nstring durationstr = msg.Split(' ')[1];\r\nint duration = 0;\r\nif(!int.TryParse(durationstr, out duration))\r\n{\r\n\tthis.Send(\"PRIVMSG \" + this._channel + \" :[ERROR] duration \\\"\"+durationstr+\"\\\" is not valid.\");\r\n\treturn;\r\n}\r\nstring reason = msg.Remove(0, pname.Length + durationstr.Length + 1 + 1);\r\nRocketPlayer pPointer = RocketPlayer.FromName(pname);\r\nif (pPointer == null)\r\n\tthis.Send(\"PRIVMSG \" + this._channel + \" :[ERROR] Player \" + pname + \" not found.\");\r\nelse\r\n{\r\n\tpPointer.Ban(reason, (uint) duration);\r\n\tthis.Send(\"PRIVMSG \" + this._channel + \" :[SUCCESS] Player \" + pname + \" is banned!\");\r\n}\r\n```\r\n\r\nNote: pname is a valid nick, because it actually kicks the player with no problem, but the ban itself is not set.\r\n\r\nI'm not really sure if it's a bug or an issue on my side. I'm using Rocket Unturned v4.4.1.0\r\n\r\nThanks."},"comment":{"url":"https://api.github.com/repos/RocketFoundation/Rocket/issues/comments/113073920","html_url":"https://github.com/RocketFoundation/Rocket/issues/173#issuecomment-113073920","issue_url":"https://api.github.com/repos/RocketFoundation/Rocket/issues/173","id":113073920,"user":{"login":"fr34kyn01535","id":898145,"avatar_url":"https://avatars.githubusercontent.com/u/898145?v=3","gravatar_id":"","url":"https://api.github.com/users/fr34kyn01535","html_url":"https://github.com/fr34kyn01535","followers_url":"https://api.github.com/users/fr34kyn01535/followers","following_url":"https://api.github.com/users/fr34kyn01535/following{/other_user}","gists_url":"https://api.github.com/users/fr34kyn01535/gists{/gist_id}","starred_url":"https://api.github.com/users/fr34kyn01535/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fr34kyn01535/subscriptions","organizations_url":"https://api.github.com/users/fr34kyn01535/orgs","repos_url":"https://api.github.com/users/fr34kyn01535/repos","events_url":"https://api.github.com/users/fr34kyn01535/events{/privacy}","received_events_url":"https://api.github.com/users/fr34kyn01535/received_events","type":"User","site_admin":false},"created_at":"2015-06-18T08:25:10Z","updated_at":"2015-06-18T08:25:10Z","body":"What i wanted to say is, we are calling nelsons method directly, if that doesn't ban there is something else wrong. Without any exception i am not willing to look into this tho as i cant replicate.."}}