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
  • Admin notifications
  • Global "on-detect" Placeholders
  • How to configure "on-detect"?
  • Ignoring any option
  • Executing the command as the player
  1. Tutorials & Info

Global options & placeholders

PreviousDiscord Webhook NotificationsNextPlaceholders for "on-detect"

Last updated 5 months ago

Sentry have global options that almost every Module contains and you can configure and use.


Admin notifications

Page dedicated to the notify-admins option.


Global "on-detect" Placeholders

Here you can check some placeholders that you can use inside the on-detect values.


How to configure "on-detect"?

Here is an example taken from the module:

# What to do when Sentry finds someone getting OP without permission?
on-detect:

  # Here you can set any command to execute to the target player.
  # You can use -p inside to make the player execute the command instead of
  # the console.
  # You can also use placeholders, check at the top of the page.
  execute-command: "say Hello %player%!"
  
  # Here you can set the kick message reason.
  # If leave it empty, Sentry will not kick the player.
  kick: "&cAsk the server admins to allow you having OP through Sentry."
  
  # Here you can set the notify-admins value.
  # By default, it is set to true
  # If you remove this line, Sentry will handle it as true too.
  notify-admins: true 

Ignoring any option

Sentry will not kick the player if "kick" is empty or if you remove it entirely. Sentry will also not execute any command if it is empty or if you remove it entirely.

Here is an example of Sentry only notifying admins and not kicking the player nor executing any command.

on-detect:
  notify-admins: true

Executing the command as the player

You just need to set "-p" inside the execute-command.

 execute-command: "me I just got caught by Sentry! yay! -p"

Admin notifications
Placeholders for "on-detect"
OP Protection