PLEASE ADD VAULT TO YOUR PLUGINS FOLDER AS A DEPENDENCY
Support MySQL
Donate GUI Customizeable on config.yml
Show already owned (Customizeable on config) if player already has the rank
And automatically readjusting in the GUI if player already has the rank by next rank - current rank
/donate to open the gui (Customizeable in the future updates)
and admins command permission superdonate.admin
All Placeholder
%player% for player
%price%
%balance%
%formatted_price%
%formatted_balance%
Code (YAML):
#Gui Title title-gui: "&6&lDONATE" #GUI Size size: 27
#If the player already has that rank or the rank is lower than current rank if-player-has-or-higher-than-current-rank: '&cALREADY OWNED'
#discount percentage discount: 0
#fill item in GUI fill:
enable: true
displayname: '&r'
material: BLACK_STAINED_GLASS_PANE
#Basically a mysql what else needed to explain haha :D mysql:
enable: false
user: user
password: "password" database: superdonate
host: 127.0.0.1
port: 3306
ssl: false
#Send message if the player already has this rank already-have-the-rank: "&cYou already have this or more than this rank" #Send message if the player doesn't have enough money to buy not-enough-money: "&cYou don't have enough money to buy this rank" gui: #this is for the check if the player is in this group, Doesn't matter if it uppercase or lowercase because its automatically lowercase VIP:
rank: true
#Display Names in GUI displayname: '&aVIP'
#Material to Display material: IRON_BLOCK
#Slot in GUI slot: 10
#Price of the Ranks price: 1000
#Commands if the player buy this commands: - 'luckperms user
%player% parent set VIP' - 'broadcast &6
%player% &fjust bought &6VIP &fRank!' #Lore for the GUI lore: - '&fBuy &aVIP'
- '&fClick to buy &6
%price%' MVP:
rank: true
displayname: '&aMVP'
material: GOLD_BLOCK
slot: 12
price: 5000
commands: - 'luckperms user
%player% parent set MVP' - 'broadcast &6
%player% &fjust bought &6MVP &fRank!' lore: - '&fBuy &aMVP'
- '&fClick to buy &6
%price%' Master:
rank: true
displayname: '&cMaster'
material: REDSTONE_BLOCK
slot: 14
price: 50000
commands: - 'luckperms user
%player% parent set master' - 'broadcast &6
%player% &fjust bought &6Master &fRank!' lore: - '&fBuy &cMaster'
- '&fClick to buy &6
%price%' key1:
rank: false
displayname: '&4Master key'
material: BEDROCK
slot: 16
price: 100000
commands: - 'give
%player% masterkey1' lore: - '&fBuy &4MasterKey'
- '&fClick to buy &6
%price%' dontusethisnamerank:
rank: false
displayname: '&6&lBALANCE'
material: BOOK
slot: 26
price: 0
lore:
- '&fYour balance: &6%balance%'