Can the client kick the host? #514
Closed
Lulu-star917
started this conversation in
Ideas
Replies: 1 comment
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
#pragma warning disable IDE1006
using System.Linq;
using GameNetcodeStuff;
using HarmonyLib;
using Hax;
[HarmonyPatch(typeof(PlayerControllerB))]
class KickPlayerPatch {
[HarmonyPatch("SendNewPlayerValuesServerRpc")]
static bool Prefix(PlayerControllerB __instance) {
if (!Setting.EnableKickPlayer) return true;
}
I was wondering if I could code like this
Beta Was this translation helpful? Give feedback.
All reactions