Advertisement
Askingg

PrevailVouchers default config

Nov 8th, 2019
621
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 9.96 KB | None | 0 0
  1. settings:
  2.  #Some general settings, for when redeeming a voucher
  3.   redemption:
  4.    #You may want to disable one of or both of the block interations, depending on if you use a chestshop plugin.
  5.     #In some cases, when clickin on the sell sign, it may sell the voucher to the shop owner as well as claim the voucher
  6.     #essentially meaning the voucher would be duplicated, hence I included this feature.
  7.     clickTypes:
  8.       rightClickAir: true
  9.       rightClickBlock: true
  10.       leftClickAir: false
  11.       leftClickBlock: false
  12.   #Settings for when someone attempts to give a player a voucher but their inventory is full
  13.   inventoryFull:
  14.    #If this is true, then the command will be cancelled.
  15.     #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.
  16.     cancelCommand: false
  17.     #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: ''
  18.     cancelCommandMessage: '%prefix% Sorry, but &c%player%''s&7 inventory is full. The command was not successful. (Edit this in the config)'
  19.     #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)
  20.     enderChest: true
  21.     #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: ''
  22.     #If the above is false, this message will not be saved, hence you can remove it entirely if you wish
  23.     #%voucher% for the voucher name/id, %amount% for the amount of the voucher
  24.     enderChestMessage: '%prefix% You received&b %amount%x %voucher% &7vouchers(s).&8 (&7As your inventory was &cfull&7, it was added to your &5EnderChest&8)'
  25.     #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
  26.     #If the above is false, this message will not be saved, hence you can remove it entirely if you wish
  27.     dropItem: true
  28.     #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: ''
  29.     #%voucher% for the voucher name/id, %amount% for the amount of the voucher
  30.     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.'
  31.    
  32. #Edit all of the plugin's messages
  33. messages:
  34.  #Used as a replacement for '%prefix%' in any messages
  35.   prefix: '&3&lP&b&lVouchers&8 &lยป&7'
  36.   #When a player attempts to do something which they are not permitted to do
  37.   noPermission: '%prefix% Sorry, but you don''t have permission to do that.'
  38.   #For when a player runs /Vouchers or /Vouchers Help
  39.   helpFormat:
  40.    #For no header, set to header: {}
  41.     header:
  42.     - '%prefix% Commands for &3Prevail&bVouchers&7:'
  43.     #The format for commands within the help list
  44.     #%command% for the command line. %description% for the command's description
  45.     helpLine: '&8&l * &b/%command%&7 %description%'
  46.     #For no footer, set to footer: {}
  47.     footer:
  48.     - '&8 &l &l * &7Developed by &bSynysterrr'
  49.     - '&8 &l &l * &7Discord support &b@Askingg#2481'
  50.     - '&8 &l &l * &7PrevailPlugins Discord &b&nhttps://discord.gg/GZDAxNm'
  51.   voucherList:
  52.    #For no header, set to header: {}
  53.     header:
  54.     - '%prefix% All vouchers:'
  55.     #The format for vouchers within the list
  56.     # %voucher% for voucher id
  57.     voucherLine: '&8&l * &b%voucher%'
  58.     #For no footer, set to footer: {}
  59.     footer: {}
  60.   #Message when a player incorrectly uses a command
  61.   #%command% for the command line
  62.   commandUsage: '%prefix% Correct usage&b /%command%'
  63.   #When a player inputs an invalid player
  64.   #%input% for their input
  65.   invalidPlayer: '%prefix% Sorry, but &c%input%&7 is an invalid player'
  66.   #When a player inputs an invalid voucher name/id
  67.   #%input% for their input
  68.   invalidVoucher: '%prefix% Sorry, but &c%input%&7 is an invalid voucher'
  69.   #When a user inputs an invalid number
  70.   #%input% for their input
  71.   invalidInteger: '%prefix% Sorry, but &c%input%&7 is an invalid integer (Whole number)'
  72.   #Message when a player receives a voucher
  73.   #%voucher% for voucher name/id, %player% for the sender of the give command, %amount% for the amount of the voucher
  74.   receivedVoucher: '%prefix% You received&b %amount%x %voucher% &7vouchers(s).'
  75.   #Message to command sender when giving a player a voucher
  76.   #%voucher% for  voucher name/id, %amount% for the amount of the voucher, %player% for the username of the player it was given to
  77.   gaveVoucher: '%prefix% You gave &b%amount%x %voucher% &7vouchers(s) to &b%player%'
  78.   #Message when a user reloads the config file
  79.   configReloaded: '%prefix% Configuration reloaded'
  80.  
  81.    
  82.    
  83.    
  84. vouchers:
  85.  #The name/id of the voucher - Used with the /voucher give command - do not duplicate voucher names.
  86.   vip:
  87.    #The voucher item.
  88.     item:
  89.      #The material of the item. Please use bukkit values, or numeric values.
  90.       #Bukkit values can be found @ https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/Material.html
  91.       #Numeric values can be found in game, by enabling F3 + H (This will also show item data)
  92.       type: 340
  93.       #The data of the material, this is used primarily for variations/colors. Default value is 0
  94.       data: 0
  95.       #The displayname of the item, for no custom name set to name: '' or simply remove the line
  96.       name: '&f&lVIP Voucher'
  97.       #The lore of the item. For no lore, set this to lore: {}
  98.       lore:
  99.       - '&7'
  100.       - '&7RightClick to redeem this voucher,'
  101.       - '&7granting you the &f&lVIP&7 rank.'
  102.       #Add an enchanted effect to the item (This gives the item the LUCK enchantment, and the hide enchantments flag)
  103.       glow: false
  104.     #When the voucher is redeemed
  105.     redemption:
  106.       permissions:
  107.        #Users can only claim the voucher if they have all of these permissions
  108.         #To disable this, set it to whitelist: {}
  109.         whitelist: {}
  110.         #If a user has any of these permissions, they will not be able to redeem this voucher
  111.         #To disable this, set it to blacklist: {}
  112.         blacklist:
  113.         - rank.vip
  114.         - rank.mvp
  115.         messages:
  116.          #The message if a player doesn't meet the criteria for the whitelist.
  117.           #If there are no whitelist permissions for this voucher, this value will be ignored
  118.           #To disable this message, set it to whitelist: ""
  119.           whitelist: '%prefix% Sorry, but you don''t have the required permissions to use this voucher'
  120.           #The message if a player has one of the permissions contained within the blacklist
  121.           #If there are no blacklisted permissions for this voucher, this value will be ignored
  122.           #To disable this message, set it to blacklist: ""
  123.           blacklist: '%prefix% Sorry, but you cannot redeem the &f&lVIP&7 rank because you already have either &f&lVIP&7 or higher.'
  124.       #The commands that are executed via the console when a user uses a voucher
  125.       #Use %player% for the player's name, the commands for this example use GroupManager
  126.       commands:
  127.      - manuadd %player% vip
  128.       - manuaddp %player% rank.vip
  129.       #The message send to a user when they claim this voucher. To disable this set it to message: ''
  130.       message: ''
  131.       #The message sent  to all online users when a player claims this voucher. To disable this set it to broadcast: ''
  132.       #%player% for the player's name.
  133.       broadcast: '%prefix% &b%player%&7 redeemed a &f&lVIP&7 voucher.'
  134.      
  135.   mvp:
  136.     item:
  137.      #Required
  138.       type: BOOK
  139.       #Optional (If not found, will assume 0)
  140.       data: 0
  141.       #Optional
  142.       name: '&b&lMVP Voucher'
  143.       #Optional
  144.       lore:
  145.       - '&7'
  146.       - '&7RightClick to redeem this voucher,'
  147.       - '&7granting you the &b&lMVP&7 rank.'
  148.       #Optional (Defaults to false if not found)
  149.       glow: false
  150.     redemption:
  151.       permissions:
  152.        #Optional (If not found, will assue no whitelist is wanted)
  153.         whitelist: {}
  154.         #Optional (If not found, will assue no blacklist is wanted)
  155.         blacklist:
  156.         - rank.mvp
  157.         messages:
  158.          #Optional (If not found, will assume no message wanted)
  159.           whitelist: '%prefix% Sorry, but you don''t have the required permissions to use this voucher'
  160.           #Optional (If not found, will assume no message wanted)
  161.           blacklist: '%prefix% Sorry, but you cannot redeem the &b&lMVP&7 rank because you already have the &b&lMVP&7 rank.'
  162.       #Optional - but 100% recommended - if, for  whatever reason, you don't want any commands to run. Set this to commands: {}
  163.       commands:
  164.      - manuadd %player% mvp
  165.       - manuaddp %player% rank.mvp
  166.       - manuaddp %player% rank.vip
  167.       #Optional
  168.       message: ''
  169.       #Optional
  170.       broadcast: '%prefix% &b%player%&7 redeemed a &b&lMVP&7 voucher.'
  171.       #
  172.       #If something is required, and not included you will get errors in the console, not the plugin's fault.
  173.       #
  174.      
  175.   fly:
  176.     item:
  177.       type: PAPER
  178.       data: 0
  179.       name: '&7Access to &b/Fly'
  180.       lore:
  181.       - '&7'
  182.       - '&7RightClick to redeem this voucher,'
  183.       - '&7granting you acess to the &b/Fly&7 command.'
  184.       glow: true
  185.     redemption:
  186.       permissions:
  187.         whitelist:
  188.         - rank.vip
  189.         blacklist:
  190.         - essentials.fly
  191.         messages:
  192.           whitelist: '%prefix% Sorry, but you need the &f&lVIP&7 rank to claim this voucher'
  193.           blacklist: '%prefix% Sorry, but you cannot redeem the &f/Fly&7 voucher as you already have access to &b/Fly'
  194.       commands:
  195.      - manuaddp %player% essentials.fly
  196.       message: '%prefix% You now have access to &b/Fly&7.'
  197.       broadcast: ''
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement