I believe, although I cannot be sure, that UnturnedPlayer.Ban is using Provider.ban as seen here
Using Provider.ban results in the player being kicked but the duration not applying, and the ban not being saved in SteamBlacklist.list.
If someone were to use UnturnedPlayer.Ban they would probably expect it to last the duration they specify. To correct this, I believe UnturnedPlayer.Ban should be using Provider.requestBanPlayer instead.
This PR replaces Provider.ban with Provider.requestBanPlayer to correct the problem.
https://github.com/SmartlyDressedGames/Unturned-3.x-Community/issues/1667
Copy-pasted description:
I believe, although I cannot be sure, that UnturnedPlayer.Ban is using Provider.ban as seen here
Using Provider.ban results in the player being kicked but the duration not applying, and the ban not being saved in SteamBlacklist.list.
If someone were to use UnturnedPlayer.Ban they would probably expect it to last the duration they specify. To correct this, I believe UnturnedPlayer.Ban should be using Provider.requestBanPlayer instead.
This PR replaces Provider.ban with Provider.requestBanPlayer to correct the problem.