- Protected steam players against hack(fake steamid)
- Nosteam players are not displayed to avoid ban
- Kicked players if use developers ids
Check player
IsPlayerNoSteam(ulong steamid)
[PluginReference("NoSteamHelper")]
private Plugin NoSteamHelper;
bool IsPlayersSteam(BasePlayer player)
{
if(NoSteamHelper.Call("IsPlayerNoSteam", player.userID)==null)
return true;
return false;
}
Returning a non-null value will not cancel kick player.
object OnSteamAuthFailed(Connection connection)
{
Puts($"{connection.userid} is nosteam player, but it doesn't matter to us c:");
return null;
}
Returning a non-null value kick player with reason as value.
object CanNewConnection(Connection connection, bool isSteam)
{
string status = isSteam ? "steam" : "nosteam";
Puts($"{connection.userid} is {status} player");
return null;
}
Harmony patcher used in the project