Sentry
Discord Support ServerPatreon
  • Home
  • Tutorials & Info
    • How to install
    • Integrations
      • Discord Webhook Notifications
    • Global options & placeholders
      • Placeholders for "on-detect"
      • Admin notifications
    • Sentry Modules
      • command-blocker.yml
      • client-blocker.yml
      • anti-vpn.yml
      • ip-whitelist.yml
      • item-control.yml
      • op-protection.yml
      • tab-complete-blocker.yml
      • Upcoming
        • security-patches.yml
        • anti-bot.yml
    • Plugin Commands & Permissions
    • What is 'plugin-data.yml'?
    • Outdated Notification
  • API usage
    • Installing and using the API
Powered by GitBook
On this page
  • Inside execute-command
  • Player display name placeholder
  • Force a player to execute the command
  1. Tutorials & Info
  2. Global options & placeholders

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"
PreviousGlobal options & placeholdersNextAdmin notifications

Last updated 5 months ago