Player player = ... // Obtain player object player.Kick("You have been kicked from the server!");
foreach (Player player in Server.Players) { if (player.IsBanned) { player.Kick("You have been banned from the server!"); } }This will loop through all players on the server, and kick any player who is currently banned. The package library for the MCForge Player Kick feature is "mcforge-server", which is available on NuGet.