promotional bannermobile promotional banner
premium banner
A server-driven mod system that grants administrators remote control to block specific player keys, mouse inputs, or in-game actions.

Description

This is the component players must have installed. It listens for instructions from the plugin and performs the actual blocking.

State Management: Maintains two local lists: one for physical keys and one for game actions/events.

Packet Handling: When a packet arrives from the server, the client updates its local block state, adding, removing, or clearing all blocks as instructed.

Input Interception: Subscribes to keyboard and mouse input events with the highest priority.

Blocking Logic:

  • Before letting an input pass, it checks if the physical key's name (e.g., key.keyboard.q) is in the physical block list.
  • It also checks if the action mapped to that key (e.g., key.drop) is in the event block list.