
Lost Keys
Lost Keys
This modification allows administrators to temporarily rebind game keys for other players directly from the server, creating fun and unexpected situations in the game.
Server Commands
The mod adds a powerful server command /lost_keys:override <player> <binding> <key>
that temporarily changes the controls for the specified player until their next login.
For example, executing /lost_keys:override Steve key.forward key.keyboard.b
will force Steve to walk forward by pressing B instead of the usual W. Keys can even be replaced with other game functions - /lost_keys:override Steve key.drop key.forward
will make the player drop items every time they move forward.
For the key parameter, you can use special values: default
to restore standard settings, none
to disable the function, or pressed
to force action activation.
You can modify controls for individual functions or all at once: by specifying all
instead of a specific action, an administrator can clear all rebinds (/lost_keys:override <player> all default
), disable all keys (/lost_keys:override <player> all none
), or create total chaos by assigning everything to one key.
Also available is a command for binding keys to server commands: /lost_keys:bind_command <player> <binding> <command>
. For example, /lost_Keys:bind_command @s key.forward say Hello!
will make the player say hello with every movement. Important: commands are executed on the client side, so operator privileges are not transferred.
Client Commands
For convenience, two client commands have been added: /lost_keys:lognext
shows the name of the next pressed key and its bound action, while /lost_keys:list
displays all active key rebinds.
Compatibility Features
Not all keys in Minecraft work correctly with this system, however all main control functions (movement, attack, item usage) are fully supported. Some specialized keys may not respond to all types of rebinding.
Plugin Version
The lost_keys.override
permission is required to work with individual players. Important: commands only work with specific player names or the @a selector - @p and @s are not supported. Similar restrictions apply to the /lost_Keys:bind_command
command with the lost_keys.bind_command
permission.
The modification should be installed on both the server and all clients, although its absence on one side doesn't cause game crashes.