Chazmondo

RankVouchers Configuration

Jan 4th, 2017
721
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 8.44 KB | None | 0 0
  1. # ----------------- #
  2. #                   #
  3. #    RankVouchers   #
  4. #        ---        #
  5. #    Developed by   #
  6. #     Chazmondo     #
  7. #                   #
  8. # ----------------- #
  9.  
  10.  
  11.  
  12. # *    Sound Info   *
  13. #
  14. # * Running 1.8? Use https://jd.bukkit.org/org/bukkit/Sound.html
  15. # * Running 1.9+? Use https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Sound.html
  16.  
  17.  
  18. # * EXAMPLE VOUCHER *
  19. #
  20. # voucher:
  21. #
  22. #    * Each voucher must be defined using a unique ID, such as 'kit'
  23. #    * we would then execute /rv give <player> kit <amount>
  24. #    * We may also type KiT, KIT or any other capitalisation.
  25. #    kit:
  26. #        * Next, we move onto defining the voucher item itself
  27. #        * in this example, our voucher 'kit' has the item name 'Kit Redeemer'
  28. #        name: '&3&lKIT &bRedeemer'
  29. #
  30. #        * We move onto defining the lore of our voucher,
  31. #        * it is recommended to set a lore to stop players potentially
  32. #        * renaming an item to the exact colour of our voucher meaning that
  33. #        * they could exploit and redeem a voucher when it really isn't one
  34. #        lore:
  35. #        - '&7Right-Click and receive a kit!'
  36. #        - ''
  37. #        - '&7You could get:'
  38. #        - '&6Gold &fKit! &7(&b50% CHANCE&7)'
  39. #        - '&bDiamond &fKit! &7(&b20% CHANCE&7)'
  40. #        - '&aEmerald &fKit! &7(&b10% CHANCE&7)'
  41. #
  42. #        * Below we define the item of our voucher,
  43. #        * in this example we use a Diamond Chestplate for our voucher
  44. #        block: DIAMOND_CHESTPLATE
  45. #
  46. #        * We can even define whether we want a glow effect
  47. #        * for our voucher, in this example in the kit voucher
  48. #        glow: true
  49. #
  50. #        * We can define if our voucher requires a limit,
  51. #        * if enabled it will set the limit to the value below.
  52. #        useLimit: true
  53. #
  54. #        * We can define x many times a player can redeem our voucher,
  55. #        * this can be overridden with the permission rankvouchers.bypass
  56. #        * or by setting use-limit to false below.
  57. #        limit: 5
  58. #
  59. #        * We can now define the maximum amount of successful rewards
  60. #        * the player may receive the rewards we set below.
  61. #        max-reward: 1
  62. #
  63. #        * We now move onto the most interesting part... REWARDS!!! $$$
  64. #        reward:
  65. #
  66. #          * Each reward must have its own unique ID, it can be anything!
  67. #          * From numbers to letters or anything! I have chosen numbers as
  68. #          * this makes it much easier for me to see every unique reward!
  69. #          '1':
  70. #
  71. #            * Now for the actual rewards!
  72. #            * Each reward requires you to input an action,
  73. #            * Go to https://www.spigotmc.org/resources/24148/
  74. #            * for available action types and a bit of information about it!
  75. #            reward:
  76. #            - '[Broadcast] &6&l(!) &f&l%player% &7received &eKit Gold &7from a &bVoucher kit&7!'
  77. #            - '[ConsoleCommand] kit gold %player%'
  78. #
  79. #            * Each reward also requires a chance, it's recommended to
  80. #            * have all rewards added up to 100 to ensure the redeemer will receive
  81. #            * a reward no matter what! Note, they can receive multiple rewards!
  82. #            chance: 50
  83. #
  84. #        * We can define whether a voucher requires a certain region
  85. #        * in order to have a successful redeem! (Requires WorldGuard plugin!)
  86. #        * Those with the permission rankvouchers.bypass can bypass this!
  87. #        useRegion: false
  88. #
  89. #        * If the above is set to true, you can define the regions that
  90. #        * a player can only redeem this voucher in, see below for an example!
  91. #        requiredRegion:
  92. #        - 'my_test_region'
  93. #
  94. #        * You can even define a sound that is played on a successful redeem!
  95. #        * if you do not want a sound, set it to ''
  96. #        sound: BLOCK_NOTE_PLING
  97. #        volume: 1
  98. #        pitch: 1
  99. #
  100. #        *  You can define whether the player requires a permission to use this!
  101. #        * If below is set to true, permission for a voucher is rankvouchers.use.<id>
  102. #        usePerm: true
  103. #
  104.  
  105. voucher:
  106.     Kit:
  107.         name: '&3&lKIT &bRedeemer'
  108.         lore:
  109.        - '&7Right-Click and receive a kit!'
  110.         - ''
  111.         - '&7You could get:'
  112.         - '&6Gold &fKit! &7(&b50% CHANCE&7)'
  113.         - '&bDiamond &fKit! &7(&b20% CHANCE&7)'
  114.         - '&aEmerald &fKit! &7(&b10% CHANCE&7)'
  115.         block: DIAMOND_CHESTPLATE
  116.         glow: true
  117.         limit: 3
  118.         max-reward: 1
  119.         reward:
  120.           '1':
  121.             reward:
  122.            - '[Broadcast] &6&l(!) &f&l%player% &7received &eKit Gold &7from a &bVoucher kit&7!'
  123.             - '[ConsoleCommand] kit gold %player%'
  124.             chance: 50
  125.           '2':
  126.             reward:
  127.            - '[Broadcast] &6&l(!) &f&l%player% &7received &bKit Diamond &7from a &bVoucher kit&7!'
  128.             - '[ConsoleCommand] kit diamond %player%'
  129.             chance: 30
  130.           '3':
  131.             reward:
  132.            - '[Broadcast] &6&l(!) &f&l%player% &7received &aKit Emerald &7from a &bVoucher kit&7!'
  133.             - '[ConsoleCommand] kit emerald %player%'
  134.             chance: 20
  135.         requiredRegion: ''
  136.         sound: BLOCK_NOTE_PLING
  137.         volume: 1
  138.         pitch: 1
  139.         usePerm: true
  140.         useLimit: true
  141.         useRegion: false
  142.  
  143.     Skull:
  144.         name: '&6Receive a Skull'
  145.         lore:
  146.        - '&7Click to get a skull!'
  147.         block: SKULL_ITEM
  148.         player: '%player%'
  149.         glow: false
  150.         limit: 1
  151.         max-reward: 1
  152.         reward:
  153.           '1':
  154.             reward:
  155.            - '[Broadcast] &6&l(!) &f&l%player% &7received a &ePersonal Skull &7from a &bSkull Voucher&7!'
  156.             - '[ConsoleCommand] give %player% skull:3 1 player:%player%'
  157.             chance: 90
  158.           '2':
  159.             reward:
  160.            - '[Broadcast] &6&l(!) &f&l%player% &7received a &eNotch &7Skull from a &bSkull Voucher&7!'
  161.             - '[ConsoleCommand] give %player% skull:3 1 player:Notch'
  162.             chance: 3
  163.           '3':
  164.             reward:
  165.            - '[Broadcast] &6&l(!) &f&l%player% &7received a &eJeb_ &7Skull from a &bSkull Voucher&7!'
  166.             - '[ConsoleCommand] give %player% skull:3 1 player:jeb_'
  167.             chance: 7
  168.         requiredRegion:
  169.        - pvp1
  170.         sound: BLOCK_NOTE_PLING
  171.         volume: 1
  172.         pitch: 1
  173.         usePerm: true
  174.         useLimit: false
  175.         useRegion: true
  176.  
  177.     All:
  178.         name: '&6&lALL &eVoucher'
  179.         lore:
  180.          - '&fEvery possible action!'
  181.         block: DIAMOND
  182.         glow: false
  183.         limit: 2
  184.         max-reward: 1
  185.         reward:
  186.           '1':
  187.             reward:
  188.            - '[ConsoleCommand] broadcast &fYay! Achievement Get! Nice, &e%player%&f!'
  189.             - '[PlayerCommand] me got an achievement! #HYPE'
  190.             - '[Message] &b&lVoucher &8» &7You opened an &eAll Voucher&7!'
  191.             - '[Broadcast] &b&lVoucher &8» &7%player% opened an &eAll Voucher&7!'
  192.             - '[CenterMessage] &2&m----------------------------'
  193.             - '[CenterMessage] &f&lVoucher Redeemed!'
  194.             - '[CenterMessage] &2&m----------------------------'
  195.             - '[CenterMessage] &2&m----------------------------'
  196.             - '[CenterMessage] &f&l%player% redeemed a voucher!'
  197.             - '[CenterMessage] &2&m----------------------------'
  198.             chance: 100
  199.         sound: ''
  200.         usePerm: true
  201.         useLimit: true
  202.         useRegion: false
  203.  
  204. general:
  205.     noPermission: "&3&lRank&b&lVouchers &8» &fNo permission!"
  206.     #
  207.     noArgs: "&3&lRank&b&lVouchers &8» &fInvalid Arguments!"
  208.     #
  209.     reload: "&3&lRank&b&lVouchers &8» &fReloaded Configuration!"
  210.     #
  211.     noPlayer: "&3&lRank&b&lVouchers &8» &fInvalid Player!"
  212.     #
  213.     givenVoucher: "&3&lRank&b&lVouchers &8» &fGiven &3%amount%x &9%voucher% &fto &b%player%&f!"
  214.     #
  215.     givenAllVoucher: "&3&lRank&b&lVouchers &8» &fYou have given &3%amount%x &9%voucher% &7to &b%online%x Players&7!"
  216.     #
  217.     invalidVoucher: "&3&lRank&b&lVouchers &8» &fError, &b%voucher% &fis an invalid voucher! &3/rv list"
  218.     #
  219.     recieved: "&3&lRank&b&lVouchers &8» &fReceived &3%amount%x &b%voucher%&f voucher!"
  220.     #
  221.     voucherSuccess: "&3&lRank&b&lVouchers &8» &fRedeemed &b%voucher% &fvoucher!"
  222.     #
  223.     redeemLimit: "&3&lRank&b&lVouchers &8» &fYou have reached the redeem limit for &b%voucher%&f!"
  224.     #
  225.     notInRegion: "&3&lRank&b&lVouchers &8» &fCannot redeem in this region!"
  226.     #
  227.     noPermissionVoucher: "&3&lRank&b&lVouchers &8» &fThis voucher requires &b%permission% &fto redeem!"
  228.     #
Advertisement
Add Comment
Please, Sign In to add comment