#Basic configconfig:#Enable or disable drops of gifts from mobsallow_mob_drop_gifts:true#Enable or disable give msg to playerallow_msg_to_player_on_give_command:true#Chance to drop a gift - mobdropchance/maxdropchance#At this example 1/1000mobdropchance:1maxdropchance:1000#Donor chance - permission: ce.donormobdropchance_for_donor:5#Gifts only are dropped by mobs killed by playeronly_drops_killed_by_player:true#Mobs only drops gifts, all other mob drops are clearedmobs_only_drops_gifts:false#Gifts need permission to be opened#Permissions usage: ce.gift.<keyname of the gift>#Example of perm: ce.gift.testgiftgifts_has_permissions_to_be_opened:false#Messages to playermsg:#message to player when has been given a gift from commandmsg_to_player_on_give:'&6Congratulations%player%theserverhasbeengivenyouagift!!!'#message to player when has been given a gift from command#but got the inventory full and the gift go to the groundmsg_to_player_on_give_inv_full:'&4%player%Theinventoryisfullsothegiftwenttotheground!!!'#message to player if dont have perm to open a giftno_perm_to_open_gift:'&4Sorry%player%butyoudonthavepermissiontoopenthatgift!!'#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 gifttestgift:#Name of the giftname:'&aChristmastgift#1'#ID of the giftid:54#Chance to drop this giftchance:20#Lores of the giftlores:-'&2&lChristmastlowestgift'-'&2&lChancetowin:'-'&2&lDiamonds,Money,etc'-'&o&9PressRightButtomtoopenthegift!'#What drops can be randomized from this gift#We will config drops belowdrops:-testtestgift2:name:'&1Christmastgift#2'id:54chance:5lores:-'&2&lChristmastnormalgift'-'&2&lChancetowin:'-'&2&lDiamonds,Money,etc'-'&o&9PressRightButtomtoopenthegift!'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 selectedcommands:#keyname of command packtest:#chance to select this command pack at randomschance:10#List of commands executed if this pack is selected#%player% ? player who right click the giftcommands:-eco give %player% 1-give %player% 264 1-bc Happy christmas %player%, enjoy 1$ and 1 diamond!trolltest:chance:15commands:-bc Happy christmas %player%!! Oooh NOO! Your gift was empty :( ...testbetter:chance:1commands:-eco give %player% 10-give %player% 264 100-bc Happy christmas %player%, enjoy 100$ and 10 diamond!
Comments
To post a comment, please login or register a new account.
Comments