UltraPrisonCore Gems Giveaway Enchantment icon

UltraPrisonCore Gems Giveaway Enchantment -----

Gems Giveaway Enchantment for UPC



Check Out my other UPC Gems Enchantment:
https://www.spigotmc.org/resources/ultraprisoncore-gems-finder-enchantment.98837/

Description

This plugin adds an enchantment to UltraPrisonCore that when activated, gives gems to every player on the server, similar to the default charity enchantment.
Dependencies
-
UltraPrisonCore 1.8.5+
- Helper
- Spigot/Paper 1.12-1.17 (Not tested on 1.18)
- Enchantment Id Slot "126" open for UltraPrisonCore
(explained more below)
Support
https://discord.gg/qCkDJDAcjX
Setup
1. Download this Plugin and add it to your plugins folder, make sure you also have UltraPrisonCore in there as well.
2. Add the following text to your UltraPrisonCore enchantments.yml (make sure it is under the enchants: section):
3. There are 2 placeholders that can be used with both the messages and broadcast
- %gems% - returns the amount of gems given to the players
- %player% - returns the player that triggered the enchantment
Code (YAML):
 '126':
    RawName
: gemsfinderglobal #Raw Name, can be used for commands
    Name
: '&a&lGems Giveaway' # Name that appears in the GUI Menu and On the Pickaxe
    Material
: EMERALD # Item that appears in the GUI Menu
    Enabled
: true # If the Enchantment is Enabled
    InGuiSlot
: 5 # Slot the Item is in in the GUI (0-53)
    Increase-Cost-by
: 100 # Amount of money the enchantment goes up by per level
    Max
: 100 # Max amount of levels
    Chance
: 50.0 # Chance of the enchantment occuring
    MaxAmount
: 500 # Maximum amount of gems that can be received per player
    MinAmount
: 100 # Minimum amount of gems that can be received per player
    Cost
: 100 # Base Cost
    MessageEnabled
: true # If the broadcast and player message are enbaled
    Message
: "&b&lPrisons &8&l> &aHey, %player%! You just gave everyone on the server
      %gems% Gems!"
# Message sent to the player who triggered the enchantment
    Broadcast
: "&b&lPrisons &8&l> &b&l%player% &fhas just set off the &b&lGems Giveaway
      &fenchantment, giving everyone online &a&l%gems% Gems! Make sure to say thanks!"
# Broadcast sent across the server when the enchantment is enabled
    Description
: # Description in the GUI
    - '&7Gives gems while mining'
    Refund
: # If the Refund Section is Enabled
      Enabled
: true
      InGuiSlot
: 5
Resource Information
Author:
----------
Total Downloads: 59
First Release: Jan 7, 2022
Last Update: Jan 7, 2022
Category: ---------------
All-Time Rating:
0 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings