Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # ----------------- #
- # #
- # RankVouchers #
- # --- #
- # Developed by #
- # Chazmondo #
- # #
- # ----------------- #
- # * Sound Info *
- #
- # * Running 1.8? Use https://jd.bukkit.org/org/bukkit/Sound.html
- # * Running 1.9+? Use https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Sound.html
- # * EXAMPLE VOUCHER *
- #
- # voucher:
- #
- # * Each voucher must be defined using a unique ID, such as 'kit'
- # * we would then execute /rv give <player> kit <amount>
- # * We may also type KiT, KIT or any other capitalisation.
- # kit:
- # * Next, we move onto defining the voucher item itself
- # * in this example, our voucher 'kit' has the item name 'Kit Redeemer'
- # name: '&3&lKIT &bRedeemer'
- #
- # * We move onto defining the lore of our voucher,
- # * it is recommended to set a lore to stop players potentially
- # * renaming an item to the exact colour of our voucher meaning that
- # * they could exploit and redeem a voucher when it really isn't one
- # lore:
- # - '&7Right-Click and receive a kit!'
- # - ''
- # - '&7You could get:'
- # - '&6Gold &fKit! &7(&b50% CHANCE&7)'
- # - '&bDiamond &fKit! &7(&b20% CHANCE&7)'
- # - '&aEmerald &fKit! &7(&b10% CHANCE&7)'
- #
- # * Below we define the item of our voucher,
- # * in this example we use a Diamond Chestplate for our voucher
- # block: DIAMOND_CHESTPLATE
- #
- # * We can even define whether we want a glow effect
- # * for our voucher, in this example in the kit voucher
- # glow: true
- #
- # * We can define if our voucher requires a limit,
- # * if enabled it will set the limit to the value below.
- # useLimit: true
- #
- # * We can define x many times a player can redeem our voucher,
- # * this can be overridden with the permission rankvouchers.bypass
- # * or by setting use-limit to false below.
- # limit: 5
- #
- # * We can now define the maximum amount of successful rewards
- # * the player may receive the rewards we set below.
- # max-reward: 1
- #
- # * We now move onto the most interesting part... REWARDS!!! $$$
- # reward:
- #
- # * Each reward must have its own unique ID, it can be anything!
- # * From numbers to letters or anything! I have chosen numbers as
- # * this makes it much easier for me to see every unique reward!
- # '1':
- #
- # * Now for the actual rewards!
- # * Each reward requires you to input an action,
- # * Go to https://www.spigotmc.org/resources/24148/
- # * for available action types and a bit of information about it!
- # reward:
- # - '[Broadcast] &6&l(!) &f&l%player% &7received &eKit Gold &7from a &bVoucher kit&7!'
- # - '[ConsoleCommand] kit gold %player%'
- #
- # * Each reward also requires a chance, it's recommended to
- # * have all rewards added up to 100 to ensure the redeemer will receive
- # * a reward no matter what! Note, they can receive multiple rewards!
- # chance: 50
- #
- # * We can define whether a voucher requires a certain region
- # * in order to have a successful redeem! (Requires WorldGuard plugin!)
- # * Those with the permission rankvouchers.bypass can bypass this!
- # useRegion: false
- #
- # * If the above is set to true, you can define the regions that
- # * a player can only redeem this voucher in, see below for an example!
- # requiredRegion:
- # - 'my_test_region'
- #
- # * You can even define a sound that is played on a successful redeem!
- # * if you do not want a sound, set it to ''
- # sound: BLOCK_NOTE_PLING
- # volume: 1
- # pitch: 1
- #
- # * You can define whether the player requires a permission to use this!
- # * If below is set to true, permission for a voucher is rankvouchers.use.<id>
- # usePerm: true
- #
- voucher:
- Kit:
- name: '&3&lKIT &bRedeemer'
- lore:
- - '&7Right-Click and receive a kit!'
- - ''
- - '&7You could get:'
- - '&6Gold &fKit! &7(&b50% CHANCE&7)'
- - '&bDiamond &fKit! &7(&b20% CHANCE&7)'
- - '&aEmerald &fKit! &7(&b10% CHANCE&7)'
- block: DIAMOND_CHESTPLATE
- glow: true
- limit: 3
- max-reward: 1
- reward:
- '1':
- reward:
- - '[Broadcast] &6&l(!) &f&l%player% &7received &eKit Gold &7from a &bVoucher kit&7!'
- - '[ConsoleCommand] kit gold %player%'
- chance: 50
- '2':
- reward:
- - '[Broadcast] &6&l(!) &f&l%player% &7received &bKit Diamond &7from a &bVoucher kit&7!'
- - '[ConsoleCommand] kit diamond %player%'
- chance: 30
- '3':
- reward:
- - '[Broadcast] &6&l(!) &f&l%player% &7received &aKit Emerald &7from a &bVoucher kit&7!'
- - '[ConsoleCommand] kit emerald %player%'
- chance: 20
- requiredRegion: ''
- sound: BLOCK_NOTE_PLING
- volume: 1
- pitch: 1
- usePerm: true
- useLimit: true
- useRegion: false
- Skull:
- name: '&6Receive a Skull'
- lore:
- - '&7Click to get a skull!'
- block: SKULL_ITEM
- player: '%player%'
- glow: false
- limit: 1
- max-reward: 1
- reward:
- '1':
- reward:
- - '[Broadcast] &6&l(!) &f&l%player% &7received a &ePersonal Skull &7from a &bSkull Voucher&7!'
- - '[ConsoleCommand] give %player% skull:3 1 player:%player%'
- chance: 90
- '2':
- reward:
- - '[Broadcast] &6&l(!) &f&l%player% &7received a &eNotch &7Skull from a &bSkull Voucher&7!'
- - '[ConsoleCommand] give %player% skull:3 1 player:Notch'
- chance: 3
- '3':
- reward:
- - '[Broadcast] &6&l(!) &f&l%player% &7received a &eJeb_ &7Skull from a &bSkull Voucher&7!'
- - '[ConsoleCommand] give %player% skull:3 1 player:jeb_'
- chance: 7
- requiredRegion:
- - pvp1
- sound: BLOCK_NOTE_PLING
- volume: 1
- pitch: 1
- usePerm: true
- useLimit: false
- useRegion: true
- All:
- name: '&6&lALL &eVoucher'
- lore:
- - '&fEvery possible action!'
- block: DIAMOND
- glow: false
- limit: 2
- max-reward: 1
- reward:
- '1':
- reward:
- - '[ConsoleCommand] broadcast &fYay! Achievement Get! Nice, &e%player%&f!'
- - '[PlayerCommand] me got an achievement! #HYPE'
- - '[Message] &b&lVoucher &8» &7You opened an &eAll Voucher&7!'
- - '[Broadcast] &b&lVoucher &8» &7%player% opened an &eAll Voucher&7!'
- - '[CenterMessage] &2&m----------------------------'
- - '[CenterMessage] &f&lVoucher Redeemed!'
- - '[CenterMessage] &2&m----------------------------'
- - '[CenterMessage] &2&m----------------------------'
- - '[CenterMessage] &f&l%player% redeemed a voucher!'
- - '[CenterMessage] &2&m----------------------------'
- chance: 100
- sound: ''
- usePerm: true
- useLimit: true
- useRegion: false
- general:
- noPermission: "&3&lRank&b&lVouchers &8» &fNo permission!"
- #
- noArgs: "&3&lRank&b&lVouchers &8» &fInvalid Arguments!"
- #
- reload: "&3&lRank&b&lVouchers &8» &fReloaded Configuration!"
- #
- noPlayer: "&3&lRank&b&lVouchers &8» &fInvalid Player!"
- #
- givenVoucher: "&3&lRank&b&lVouchers &8» &fGiven &3%amount%x &9%voucher% &fto &b%player%&f!"
- #
- givenAllVoucher: "&3&lRank&b&lVouchers &8» &fYou have given &3%amount%x &9%voucher% &7to &b%online%x Players&7!"
- #
- invalidVoucher: "&3&lRank&b&lVouchers &8» &fError, &b%voucher% &fis an invalid voucher! &3/rv list"
- #
- recieved: "&3&lRank&b&lVouchers &8» &fReceived &3%amount%x &b%voucher%&f voucher!"
- #
- voucherSuccess: "&3&lRank&b&lVouchers &8» &fRedeemed &b%voucher% &fvoucher!"
- #
- redeemLimit: "&3&lRank&b&lVouchers &8» &fYou have reached the redeem limit for &b%voucher%&f!"
- #
- notInRegion: "&3&lRank&b&lVouchers &8» &fCannot redeem in this region!"
- #
- noPermissionVoucher: "&3&lRank&b&lVouchers &8» &fThis voucher requires &b%permission% &fto redeem!"
- #
Advertisement
Add Comment
Please, Sign In to add comment