Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- settings:
- #Some general settings, for when redeeming a voucher
- redemption:
- #You may want to disable one of or both of the block interations, depending on if you use a chestshop plugin.
- #In some cases, when clickin on the sell sign, it may sell the voucher to the shop owner as well as claim the voucher
- #essentially meaning the voucher would be duplicated, hence I included this feature.
- clickTypes:
- rightClickAir: true
- rightClickBlock: true
- leftClickAir: false
- leftClickBlock: false
- #Settings for when someone attempts to give a player a voucher but their inventory is full
- inventoryFull:
- #If this is true, then the command will be cancelled.
- #If this value is true, then the enderchest / dropitem settings won't be saved, and can be removed from the config entirely if you wish to do so - However I wouldn't recommended it, incase you change your mind later down the road.
- cancelCommand: false
- #If the above is true, this message will be sent TO THE COMMAND SENDER, NOT TO THE RECEIVING PLAYER. To disable this set it to cancelCommandMessage: ''
- cancelCommandMessage: '%prefix% Sorry, but &c%player%''s&7 inventory is full. The command was not successful. (Edit this in the config)'
- #If the player's inventory is full, should we attempt to add it to their enderchest (If their enderchest is full, it obviously won't be added to it)
- enderChest: true
- #If the above is true, and the item is successfully added to the player's enderchest, this message will be sent. If you wish to disable this, set it to enderChestMessage: ''
- #If the above is false, this message will not be saved, hence you can remove it entirely if you wish
- #%voucher% for the voucher name/id, %amount% for the amount of the voucher
- enderChestMessage: '%prefix% You received&b %amount%x %voucher% &7vouchers(s).&8 (&7As your inventory was &cfull&7, it was added to your &5EnderChest&8)'
- #If their inventory is full - And if the above is true, and their enderchest is full - should the item be dropped on the floor at the player's location
- #If the above is false, this message will not be saved, hence you can remove it entirely if you wish
- dropItem: true
- #If the above is true, and the item is dropped on the floor (Their inven is full, and if enabled their EC is also full) this message will be sent. If you wish to disable this, set it to dropItemMessage: ''
- #%voucher% for the voucher name/id, %amount% for the amount of the voucher
- dropItemMessage: '%prefix% You received&b %amount%x %voucher% &7vouchers(s).&8 (&7As your &finventory&7 and &5EnderChest&7 were both &cfull&7, it was dropped on the floor.'
- #Edit all of the plugin's messages
- messages:
- #Used as a replacement for '%prefix%' in any messages
- prefix: '&3&lP&b&lVouchers&8 &lยป&7'
- #When a player attempts to do something which they are not permitted to do
- noPermission: '%prefix% Sorry, but you don''t have permission to do that.'
- #For when a player runs /Vouchers or /Vouchers Help
- helpFormat:
- #For no header, set to header: {}
- header:
- - '%prefix% Commands for &3Prevail&bVouchers&7:'
- #The format for commands within the help list
- #%command% for the command line. %description% for the command's description
- helpLine: '&8&l * &b/%command%&7 %description%'
- #For no footer, set to footer: {}
- footer:
- - '&8 &l &l * &7Developed by &bSynysterrr'
- - '&8 &l &l * &7Discord support &b@Askingg#2481'
- - '&8 &l &l * &7PrevailPlugins Discord &b&nhttps://discord.gg/GZDAxNm'
- voucherList:
- #For no header, set to header: {}
- header:
- - '%prefix% All vouchers:'
- #The format for vouchers within the list
- # %voucher% for voucher id
- voucherLine: '&8&l * &b%voucher%'
- #For no footer, set to footer: {}
- footer: {}
- #Message when a player incorrectly uses a command
- #%command% for the command line
- commandUsage: '%prefix% Correct usage&b /%command%'
- #When a player inputs an invalid player
- #%input% for their input
- invalidPlayer: '%prefix% Sorry, but &c%input%&7 is an invalid player'
- #When a player inputs an invalid voucher name/id
- #%input% for their input
- invalidVoucher: '%prefix% Sorry, but &c%input%&7 is an invalid voucher'
- #When a user inputs an invalid number
- #%input% for their input
- invalidInteger: '%prefix% Sorry, but &c%input%&7 is an invalid integer (Whole number)'
- #Message when a player receives a voucher
- #%voucher% for voucher name/id, %player% for the sender of the give command, %amount% for the amount of the voucher
- receivedVoucher: '%prefix% You received&b %amount%x %voucher% &7vouchers(s).'
- #Message to command sender when giving a player a voucher
- #%voucher% for voucher name/id, %amount% for the amount of the voucher, %player% for the username of the player it was given to
- gaveVoucher: '%prefix% You gave &b%amount%x %voucher% &7vouchers(s) to &b%player%'
- #Message when a user reloads the config file
- configReloaded: '%prefix% Configuration reloaded'
- vouchers:
- #The name/id of the voucher - Used with the /voucher give command - do not duplicate voucher names.
- vip:
- #The voucher item.
- item:
- #The material of the item. Please use bukkit values, or numeric values.
- #Bukkit values can be found @ https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/Material.html
- #Numeric values can be found in game, by enabling F3 + H (This will also show item data)
- type: 340
- #The data of the material, this is used primarily for variations/colors. Default value is 0
- data: 0
- #The displayname of the item, for no custom name set to name: '' or simply remove the line
- name: '&f&lVIP Voucher'
- #The lore of the item. For no lore, set this to lore: {}
- lore:
- - '&7'
- - '&7RightClick to redeem this voucher,'
- - '&7granting you the &f&lVIP&7 rank.'
- #Add an enchanted effect to the item (This gives the item the LUCK enchantment, and the hide enchantments flag)
- glow: false
- #When the voucher is redeemed
- redemption:
- permissions:
- #Users can only claim the voucher if they have all of these permissions
- #To disable this, set it to whitelist: {}
- whitelist: {}
- #If a user has any of these permissions, they will not be able to redeem this voucher
- #To disable this, set it to blacklist: {}
- blacklist:
- - rank.vip
- - rank.mvp
- messages:
- #The message if a player doesn't meet the criteria for the whitelist.
- #If there are no whitelist permissions for this voucher, this value will be ignored
- #To disable this message, set it to whitelist: ""
- whitelist: '%prefix% Sorry, but you don''t have the required permissions to use this voucher'
- #The message if a player has one of the permissions contained within the blacklist
- #If there are no blacklisted permissions for this voucher, this value will be ignored
- #To disable this message, set it to blacklist: ""
- blacklist: '%prefix% Sorry, but you cannot redeem the &f&lVIP&7 rank because you already have either &f&lVIP&7 or higher.'
- #The commands that are executed via the console when a user uses a voucher
- #Use %player% for the player's name, the commands for this example use GroupManager
- commands:
- - manuadd %player% vip
- - manuaddp %player% rank.vip
- #The message send to a user when they claim this voucher. To disable this set it to message: ''
- message: ''
- #The message sent to all online users when a player claims this voucher. To disable this set it to broadcast: ''
- #%player% for the player's name.
- broadcast: '%prefix% &b%player%&7 redeemed a &f&lVIP&7 voucher.'
- mvp:
- item:
- #Required
- type: BOOK
- #Optional (If not found, will assume 0)
- data: 0
- #Optional
- name: '&b&lMVP Voucher'
- #Optional
- lore:
- - '&7'
- - '&7RightClick to redeem this voucher,'
- - '&7granting you the &b&lMVP&7 rank.'
- #Optional (Defaults to false if not found)
- glow: false
- redemption:
- permissions:
- #Optional (If not found, will assue no whitelist is wanted)
- whitelist: {}
- #Optional (If not found, will assue no blacklist is wanted)
- blacklist:
- - rank.mvp
- messages:
- #Optional (If not found, will assume no message wanted)
- whitelist: '%prefix% Sorry, but you don''t have the required permissions to use this voucher'
- #Optional (If not found, will assume no message wanted)
- blacklist: '%prefix% Sorry, but you cannot redeem the &b&lMVP&7 rank because you already have the &b&lMVP&7 rank.'
- #Optional - but 100% recommended - if, for whatever reason, you don't want any commands to run. Set this to commands: {}
- commands:
- - manuadd %player% mvp
- - manuaddp %player% rank.mvp
- - manuaddp %player% rank.vip
- #Optional
- message: ''
- #Optional
- broadcast: '%prefix% &b%player%&7 redeemed a &b&lMVP&7 voucher.'
- #
- #If something is required, and not included you will get errors in the console, not the plugin's fault.
- #
- fly:
- item:
- type: PAPER
- data: 0
- name: '&7Access to &b/Fly'
- lore:
- - '&7'
- - '&7RightClick to redeem this voucher,'
- - '&7granting you acess to the &b/Fly&7 command.'
- glow: true
- redemption:
- permissions:
- whitelist:
- - rank.vip
- blacklist:
- - essentials.fly
- messages:
- whitelist: '%prefix% Sorry, but you need the &f&lVIP&7 rank to claim this voucher'
- blacklist: '%prefix% Sorry, but you cannot redeem the &f/Fly&7 voucher as you already have access to &b/Fly'
- commands:
- - manuaddp %player% essentials.fly
- message: '%prefix% You now have access to &b/Fly&7.'
- broadcast: ''
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement