config.yml V0.2.2

#Basic config
config:
  #Enable or disable drops of gifts from mobs
  allow_mob_drop_gifts: true
  #Enable or disable give msg to player
  allow_msg_to_player_on_give_command: true
  #Chance to drop a gift - mobdropchance/maxdropchance
  #At this example 1/1000
  mobdropchance: 1
  maxdropchance: 1000
  #Donor chance - permission: ce.donor
  mobdropchance_for_donor: 5
  #Gifts only are dropped by mobs killed by player
  only_drops_killed_by_player: true
  #Mobs only drops gifts, all other mob drops are cleared
  mobs_only_drops_gifts: false
  #Gifts need permission to be opened
  #Permissions usage: ce.gift.<keyname of the gift>
  #Example of perm: ce.gift.testgift
  gifts_has_permissions_to_be_opened: false
#Messages to player
msg:
  #message to player when has been given a gift from command
  msg_to_player_on_give: '&6Congratulations %player% the server has been given you
    a gift!!!'
  #message to player when has been given a gift from command
  #but got the inventory full and the gift go to the ground
  msg_to_player_on_give_inv_full: '&4%player% The inventory is full so the gift went
    to the ground!!!'
  #message to player if dont have perm to open a gift
  no_perm_to_open_gift: '&4Sorry %player% but you dont have permission to
    open that gift!!'
#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!

Comments

Posts Quoted:
Reply
Clear All Quotes