Kick player?
I want to give my mod the power to kick someone by hitting them with a fish. Is there a normcore ability to kick someone?
9 Replies
Hi @Alix Ollivier. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
I'm sorry, but the knowledge sources do not contain explicit information about a built-in Normcore feature or API to "kick" a player (i.e., forcibly disconnect them from a room) based on an in-game event like being hit with a fish.
Normcore provides tools for managing ownership, authority, and synchronizing state, but there is no documented method for forcibly removing a client from a room via code or moderator action in the provided documentation. You may need to implement custom logic on your server or authoritative game server (if using Normcore Private) to handle this kind of moderation action, but the exact approach is not described in the available sources.
If you need more advanced moderation features, you might consider reaching out to the Normcore community or support for guidance on best practices for implementing player kicking functionality in your project. You can find their Discord link in the documentation for further assistance: Normcore Discord
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------
<@185325614775926784> Kapa.ai is still learning and improving, please let me know how I did by reacting below.
@kapa.ai is there a way to disconnect a player?
Let me check the knowledge base for you again. One moment! :books:
----------------------
Based on the available knowledge sources, there is no explicit mention of a built-in Normcore API or method to forcibly disconnect another player from a room. The documentation describes how a client can disconnect itself using the Disconnect() method, but it does not provide a way for one client (such as a moderator) to disconnect another client programmatically source.
If you require this functionality, you may need to implement custom logic outside of the standard Normcore API, or consider using Normcore Private with authoritative server logic. However, the knowledge sources do not provide details on how to achieve this.
In summary:
There is no documented way in Normcore’s public API to disconnect another player from a room. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
There is no documented way in Normcore’s public API to disconnect another player from a room. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
<@185325614775926784> Kapa.ai is still learning and improving, please let me know how I did by reacting below.
@kapa.ai theoretically, I can have the moderator send a message to the player being kicked, who can then call the Disconnect() method?
Let me check the knowledge base for you again. One moment! :books:
----------------------
Yes, theoretically, you could implement a system where the moderator sends a message (such as a custom event or a value in the datastore) to the targeted player, and the client receiving that message then calls the Disconnect() method on itself. The Normcore API provides a Disconnect() method for clients to disconnect themselves from a room (Reference: Realtime.Disconnect()).
However, this approach relies on the cooperation of the client being kicked—if the client ignores the message or modifies their client to not respond, they would not be disconnected. There is no built-in, server-side enforcement for forcibly disconnecting another client in the public Normcore API.
So, while this is possible in theory, it is not a secure or authoritative way to enforce moderation, as it depends on client compliance.
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------
<@185325614775926784> Kapa.ai is still learning and improving, please let me know how I did by reacting below.
this is the way to do it