Compatibility
Minecraft: Java Edition
Platforms
Supported environments
90% of ad revenue goes to creators
Support creators and Modrinth ad-free with Modrinth+Creators
Details
If you have a problem with X-Raying players on your server, but don't want to use an Anti-Xray plugin then this might be what you're looking for.
This plugin will send a notification, dependent on your config.yml settings, to discord showing information on players when they break a threshold of a certain block. The coords, world and block type are displayed as well as room for an image, configured by imgur.com codes, configurable in the config. There is a bit more to do to fully shine the plugin up, but it's mostly working fine.
Permissions
- orenotifier.alerts - Permission required to receive alerts.
- orenotifier.reload - Allows reloading the configuration.
- orenotifier.toggle - Allows toggling alerts.
Commands
- /orenotifier reload - Reloads the configuration.
- /orenotifier toggle - toggles alerts on/off.
How it works?
By tracking the amount of ores being mined, configurable via the config, we can store these so that when the player exceeds the threshold it sends a notification to discord. You can customize the threshold to your liking for each block individually, as can you the color of the webhook message and in game messages. The threshold gets reset when the player mines enough common (stone, deepslate, tuff) or uncommon ores (netherrack, basalt). This way players who are X-Raying will send alerts based on the amount of ores to common/uncommon blocks as per a ratio.
CustomOres:
diamond_ore: # Defines the name of the ore we should track.
msg-color: "&b" # Sets the color of the ores name in chat for alerts.
thumbnail: xXkIhRR # The image on the right of the embed. via imgur.
threshold: 9 # How many blocks are needed to set off the alert.
webhook-color: # The color for embedded messages.
r: 150
g: 255
b: 255
Credits: Thank you RandomWebUser for helping me X-r... I mean test the plugin.
*Discord: @Plexiate Email: hi@plexiate.com
Config
# We're a small whitelisted vanilla SMP with a permanent map, generated on jan 28th, 2021.
# You can join us at https://crafters.one/Discord or see our plugins here https://www.spigotmc.org/resources/authors/plexiate.117947/
# Webhook settings
prefix: "&8[&bOreNotifier&8]"
webhook: webhook_url
webhook-enabled: true
# This is how many Stone, Deepslate, Tuff,and netherrack you would need to mine
# in-between ores to reset the alert level. Adjust them as you'd like :)
reset-threshold: 95 # Stone, Deepslate and Tuff combined
nether-threshold: 250 # Netherrack and Basalt combined
# List of ores for notifications / other blocks
CustomOres:
diamond_ore:
msg-color: "&b"
thumbnail: xXkIhRR
threshold: 9
webhook-color:
r: 150
g: 255
b: 255
deepslate_diamond_ore:
msg-color: "&b"
thumbnail: ihJgnuM
threshold: 9
webhook-color:
r: 0
g: 102
b: 102
ancient_debris:
msg-color: "&5"
thumbnail: DNvvUsr
threshold: 3
webhook-color:
r: 85
g: 35
b: 0
gold_ore:
msg-color: "&e"
thumbnail: JTrQfFY
threshold: 15
webhook-color:
r: 255
g: 255
b: 0
# Don't touch these. This is their home.
stone:
threshold: 0
deepslate:
threshold: 0
tuff:
threshold: 0
netherrack:
threshold: 0
basalt:
threshold: 0
# Messages - ( Placeholders include {PREFIX}, {USERNAME}, {BLOCK}, {AMOUNT} and {COORDS} )
messages:
server-chat-message: "{PREFIX} &a{USERNAME} &7-> {BLOCK}&7."
reload-message: "{PREFIX} &cWe suggest doing /reload instead at this time. ."
no-permission: "&fUnknown command. Type ''/help'' for help."
webhook-settings:
title: "{PLUGIN} | {USERNAME}"
description: "**{USERNAME}** -> **{BLOCK}**"
footer: "Plugin version: {VERSION}"
# Thumbnail URLs work through imgur (https://imgur.com) image IDs
# Kasprr says this might be a bad idea for the long term, and if any issues are encountered please email me
# at plexiate@crafters.one
# Here are some other blocks I already uploaded for your pleasure.
emerald_ore-thumbnail: "4USvGhH"
deepslate_emerald_ore-thumbnail: "uwCGbpB"
gold_ore-thumbnail: "JTrQfFY"
deepslate_gold_ore-thumbnail: "DnTMYwe"
nether_gold_ore-thumbnail: "iIH6NUk"
iron_ore-thumbnail: "6I7zQyC"
deepslate_iron_ore-thumbnail: "07QlXdh"
copper_ore-thumbnail: "LCm0dHJ"
deepslate_copper_ore-thumbnail: "ATym2ul"
redstone_ore-thumbnail: "D8nIgQa"
deepslate_redstone_ore-thumbnail: "IKuPFmR"
netherite_block-thumbnail: "JRZvsSr"
diamond_block-thumbnail: "CR8rJf0"
emerald_block-thumbnail: "sBwrnxH"
gold_block-thumbnail: "NhxxIQ9"
iron_block-thumbnail: "IbhLcoL"
# this is my personal setting.
debug: false