config.yml


CONFIG EXPLANATION


#Basic config
config:
  #Chance to drop a gift - mobdropchance/maxdropchance
  #At this example 1/1000
  mobdropchance: 1 #Chance to drop a gift
  maxdropchance: 1000 #Max chance
#List of gifts
#The max chance is determinated by the sum of all gift chances
#So the chance of each gift is chance/sumOfAllGiftChances
#At this example testgift have 20/25 to get selected at the random
#and testgift2 have 5/25.
gifts:
  #KeyName of the gift
  testgift:
    #Name of the gift
    name: '&aChristmast gift #1'
    #ID of the gift
    id: 54
    #Chance to drop this gift
    chance: 20
    #Lores of the gift
    lores:
    - '&2&lChristmast lowest gift'
    - '&2&lChance to win:'
    - '&2&lDiamonds,Money,etc'
    - '&o&9Press Right Buttom to open the gift!'
    #What drops can be randomized from this gift
    #We will config drops below
    drops:
    - test
  testgift2:
    name: '&1Christmast gift #2'
    id: 54
    chance: 5
    lores:
    - '&2&lChristmast normal gift'
    - '&2&lChance to win:'
    - '&2&lDiamonds,Money,etc'
    - '&o&9Press Right Buttom to open the gift!'
    drops:
    - test
    - trolltest
    - testbetter
#Commands packs
#Chance of each pack works at the same way of the chance of each gift
#The chance of each command is chance/sumOfAllGiftCommands
#For Gift testgift2 test package have 10/26, trolltest package 15/26 and testbetter 1/26
#For gift testgift test package have the 100% of chance to get selected
commands:
  #keyname of command pack
  test:
    #chance to select this command pack at randoms
    chance: 10
    #List of commands executed if this pack is selected
    #%player% → player who right click the gift
    commands:
    - eco give %player% 1
    - give %player% 264 1
    - bc Happy christmas %player%, enjoy 1$ and 1 diamond!
  trolltest:
    chance: 15
    commands:
    - bc Happy christmas %player%!! Oooh NOO! Your gift was empty :( ...
  testbetter:
    chance: 1
    commands:
    - eco give %player% 10
    - give %player% 264 100
    - bc Happy christmas %player%, enjoy 100$ and 10 diamond!