Xrai - AI powered Xray detection

VIP Plugins Xrai - AI powered Xray detection

Version: v1.3
Added support for Discord webhooks as part of actions. You can add this to your plugin by putting the following code inside of one of your existing actions:
YAML:
discord:
  enabled: false
# The webhook URL to send the notification to.
  webhook_url: https://discord.com/api/webhooks/1234567890/EXAMPLE_WEBHOOK_URL
# The message to send to the webhook.
  # You can use the following placeholders:
  # - {player} - The player's name.
  # - {score} - The AI's confidence score.
  # - {path} - The path ID.
  message: '{player} has been detected cheating with a confidence of {score}%. Their path ID is {path}.'

Example action with Discord alerts:
YAML:
actions:
  broadcast_action:
    # The threshold for the action to be run.
    # If the AI's confidence score is above this threshold for a given path, and the AI detects that a user is cheating, then the action will be run.
    # Set this to 0 to always run the action - and you can set to 101 to never run the action.
    percentage_threshold: 85
    # You can also define a notification to be sent to players with a given permission.
    notify:
      enabled: true
      # You can use the following placeholders:
      # - {player} - The player's name.
      # - {score} - The AI's confidence score.
      # - {path} - The path ID.
      message: '&c{player} &7has been detected cheating with a confidence of &c{score}%&7. Their path ID is &c{path}.'
      # The permission required to receive the notification.
      # To disable, set to an empty string.
      required_permission: xrai.notify
    discord:
      enabled: true
      # The webhook URL to send the notification to.
      webhook_url: https://discord.com/api/webhooks/1234567890/EXAMPLE_WEBHOOK_URL
      # The message to send to the webhook.
      # You can use the following placeholders:
      # - {player} - The player's name.
      # - {score} - The AI's confidence score.
      # - {path} - The path ID.
      message: '{player} has been detected cheating with a confidence of {score}%. Their path ID is {path}.'
      # The commands to be run when the action is triggered.
      # You can use the following placeholders:
      # - {player} - The player's name.
      # - {score} - The player's score.
      # - {path} - The path ID.
      commands:
        - 'msg {player} You have been detected cheating. Your path ID is {path} and your score is {score}.'
Added 2 new fields to the config, ignore_materials & custom_materials. You can use these to customize which materials (blocks) Xrai will detect as ores. To update, download the new file, and add this to the bottom of your config file:

YAML:
# You may add your own materials/blocks that will be considered as ores here.
custom_materials:
  - "EXAMPLE_MATERIAL"

# You may add your own materials/blocks that will be ignored and not considered as ores here.
# For example, one might add "DIAMOND_ORE" here, and Xrai would consider it a normal block, like stone, rather than an ore.
# This list will take priority over the custom_materials list, so if you add a material to both lists, it will be ignored.
ignore_materials:
  - "EXAMPLE_MATERIAL"