fix: Prevent autokick of friends and trusted (#2989)
This commit is contained in:
parent
fcf74bc198
commit
ff55db8fa3
@ -12,6 +12,10 @@ namespace big
|
||||
if (kick_host && !bLastKickHost)
|
||||
{
|
||||
g_player_service->iterate([](auto& plyr) {
|
||||
// Don't kick trusted players
|
||||
if (plyr.second->is_trusted || (g.session.trust_friends && plyr.second->is_friend()))
|
||||
return;
|
||||
|
||||
if (plyr.second->is_host())
|
||||
{
|
||||
dynamic_cast<player_command*>(command::get("multikick"_J))->call(plyr.second, {});
|
||||
|
Reference in New Issue
Block a user