OreNotifier icon

OreNotifier -----

Spot X-Ray via Discord alerts. Customize and track multiple blocks + in game notifications!




UPDATE YOUR CONFIG FILES

Screenshot 2023-08-23 at 4.06.14 PM.png

OreNotifier 1.0.5 is here and has tons of new things added. Please take a moment to read through the below and use the config supplied to add the necessary updates to your config.

- Versions now get checked on startup and will alert you if a new download is available or your copy is outdated.

- Added more placeholders

  • {WORLD} : The world of action.
  • {ORECOUNT} : For users with older configs, so they don’t break.
  • {LIGHTLEVEL} : Grabs the local light level of where they are breaking blocks.

  • {VERSION} : Displays the current plugin version.

  • {PLUGIN} : Displays the plugin’s name.

- Light level indicator added to the webhook embeds.

- Added full customizability for (almost) all messages.

- You can now set colors of your choice for embedded webhook messages via the config using r, g, b.

- Ore Names Now Support Capitalism (ie “diamond ore” -> “Diamond Ore” not real capitalism, but could you imagine?..)

Code (Text):
# Hey you! Thanks for using my plugin. I created it for my own server https://crafters.one.
# 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 [email protected]
# 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
----------, Aug 23, 2023

A lot of bugs were fixed in this release and you can now enter debug mode, set more things relating to in-game and webhook messages. Thumbnails are separated and a threshold is assigned to each ore / block you'd like to track. The reset threshold in the config is a combination of stone, deepslate and tuff blocks that will reset the ore count violation level, defined with each ore, giving you the ability to adjust it to your needs. I've done some x-ra... I mean testing. I've done some testing on a private server with RandomWebUser and we found some good settings. Those are the default in the settings.

You can also use /orenotifier toggle to set your alerts status, but I am still working on this and a full server reload or restart is required to make the setting active. Not sure what else I'm forgetting, but that's the gist of it.

also new default formatting!
----------, Aug 23, 2023

Last update actually broke a thing or two. Download now updated to functioning version.
----------, Aug 21, 2023

In this version I've changed how ores are stored in the config, reflected below. The new system allows for a threshold to be set on each block added to the watchlist. This way you can have different alerts all being tracked at the same time. For now this will just reset once they reach the threshold and it will count towards another alert after.

You can also now use /orenotifier reload as console and use /orenotifier toggle to change your notification preferences in game, so long as you have the permission or have operator status.

Permissions:
orenotifier.use
orenotifier.reload
orenotifier.toggle
orenotifier.alerts

Code (Text):
# Hey you! Thanks for using my plugin. I created it for my own server https://crafters.one.
# 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
webhook: webhook_url
webhook-enabled: true

prefix: "&8[&bOreNotifier&8]"

# List of ores for notifications / other blocks
CustomOres:

  diamond_ore:
    thumbnail: 'xXkIhRR'
    threshold: 8

  deepslate_diamond_ore:
    thumbnail: 'ihJgnuM'
    threshold: 8

  ancient_debris:
    thumbnail: 'DNvvUsr'
    threshold: 5

# Messages - ( Placeholders include {PREFIX}, {USERNAME}, {BLOCK}, {ORECOUNT} and {COORDS} )
messages:
  server-chat-message: "{PREFIX} &a{USERNAME} &7has reached the threshold for &e{BLOCK} &7at &e{COORDS}&7."
  reload-message: "{PREFIX} &7Configuration reloaded."
  no-permission: "&fUnknown command. Type ''/help'' for help."

# 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 [email protected]
# 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"
 
----------, Aug 21, 2023

New link added for the download.
----------, Aug 18, 2023

- Plugin updated to 1.20.

- Methods used within the plugin were simplified and lots of code was removed to be more efficient.

- The config has been changed and now generates as:

Code (Text):
# Hey you! Thanks for using my plugin. I created it for my own server https://crafters.one. 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/

# This plugin's spigot page - https://www.spigotmc.org/resources/1-19-4-orenotifier-%E2%AD%90-discord-webhooks-customizable-config-spot-cheaters.109798/


# Webhook settings
webhook: webhook_url
webhook-enabled: true

# Do you want to allow the notifications to chat?
notify-in-game: true

prefix: "&8[&bOreNotifier&8]"

# List of ores for notifications / other blocks
CustomOres:
  - diamond_ore
  - emerald_ore
  - gold_ore

# Messages
messages:
  server-chat-message: "{PREFIX} &a{USERNAME} &7has broken &e{BLOCK} &7at &e{COORDS}&7."
  reload-message: "{PREFIX} &7The plugin has been reloaded."
  no-permission: "&fUnknown command. Type ''/help'' for help."

# Thumbnail URLs for different ores
# These work on 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 [email protected]

ancient_debris-thumbnail: "DNvvUsr"
diamond_ore-thumbnail: "xXkIhRR"
deepslate_diamond_ore-thumbnail: "ihJgnuM"
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"
 
You will need to adapt or regenerate your previous config file to use this version of the plugin without issue.
----------, Aug 18, 2023

Reduced 19 lines from the code when running.

Thank you Ethan.
----------, May 13, 2023

Resource Information
Author:
----------
Total Downloads: 943
First Release: May 12, 2023
Last Update: Aug 23, 2023
Category: ---------------
All-Time Rating:
5 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings