IsMurdering = target;
// Check if host authority mode is on
- if (_game.IsHostModded()) {
+ if (_game.IsHostAuthoritive())
+ {
// Pass the RPC on unharmed, the client will handle it
return true;
}
if (target != null)
{
- MurderPlayerAsync(target);
+ await MurderPlayerAsync(target);
}
return false;
.Where(c => c != null && c.IsConnected)!;
}
- internal bool IsHostModded()
+ internal bool IsHostAuthoritive()
{
- if (Host == null) {
+ if (Host == null)
+ {
return false;
- } else {
- return Host.Client.GameVersion.Revision >= 25;
+ }
+ else
+ {
+ return Host.Client.GameVersion.HasDisableServerAuthorityFlag;
}
}
}