Placeholders for "on-detect"
On every module that contains the "on-detect
" section, you can use these placeholders below.
Inside execute-command
Player display name placeholder
You can use %player%
placeholder for player name.
# Example inside the client-blocker.yml
forge:
block: true
on-detect:
execute-command: "say hello %player%!"
Force a player to execute the command
You can use -p
to force the player to execute a command for a player instead of the console.
# Example inside the client-blocker.yml
neoforge:
block: true
on-detect:
execute-command: "gamemode creative -p"
Last updated