Crate: Code: CrateType: CSGO #Type of crate (CSGO/QuadCrate/QuickCrate/Roulette/CrateOnTheGo/FireCracker/Wonder/Wheel/War/Cosmic(This requires a additional info to work.)). CrateName: '&8Vote' #Name of the Inventory if a GUI crate. StartingKeys: 0 #Starting amount of keys when the player 1st joins. InGUI: true #If the crate shows in the /cc GUI. (If the crate type is QuickCrate/CrateOnTheGo/FireCracker then the Crate will not work. Quick Crate requires a Physical Crate.) Slot: 21 #Slot the item is in the GUI. OpeningBroadCast: true #Enables/Disables the Broadcasts message when they open a crate. BroadCast: '%Prefix%&6&l%Player% &7is opening a &7&lBasic Chest&7.' #Message that is broadcasted when opening the crate. Item: '54' #Item the crate is in the GUI Glowing: false #If the crate in the main /cc GUI is glowing or not. Name: '&7&lBasic Chest' #Name of the item in the GUI. Lore: #The lore of the item in the GUI. - '&7This crate contains strange objects.' - '&7You have &6%Keys% keys &7to open this crate with.' - '&7&l(&e&l!&7&l) Right click to view rewards.' PhysicalKey: Name: '&7&lVote &b&lKey' #Name of the Key. Lore: - '&7A special Key' #Lore of the Key. - '&7For a special Crate.' Item: '131' #The item the key is. Glowing: True #Makes the key look enchanted. # For Cosmic Crates Only ############################################# # Tiers: #The tiers in the Crate # Basic: #The Config Name for the Crate # Name: '&8Basic Prize' #The in-game name of the Crate # Color: 7 #Use the MetaData for the color of the glass # Chance: 80 #Chance of that item getting picked. It would be 80/100 chance because MaxRange is 100. # MaxRange: 100 #The max range that the chance will go though. # UnCommon: # Name: '&aUnCommon Prize' # Color: 5 # Chance: 55 # MaxRange: 100 # Rare: # Name: '&4Rare Prize' # Color: 14 # Chance: 20 # MaxRange: 100 ############################################# Prizes: #All the prizes that can be gotten in the Crate. 1: DisplayName: '&7&lDIAMOND CHESTPLATE' #Name of the item shown by the crate. DisplayItem: '2' #Item that is shown by the crate. DisplayAmount: 1 #The amount that is displayed. Lore: #Lore will be shown in rewards GUI. - '&7Win a DIAMOND CHESTPLATE For Battle.' - '&6&lChance: &c&l20%' MaxRange: 100 #The max range that the chance will go though. Chance: 20 #Chance of that item getting picked. It would be 40/100 chance because MaxRange is 100. Firework: false #Firework when it is won. Glowing: false #Toggle if the item has a glowing effect but doesn't have an enchantment on it. Player: '' #Set the item to 397:3 and then add the players name for this to take effect. # For Cosmic Crates Only ############################################# # Tiers: #The Tiers the rewards can be found in. # - 'Basic' # - 'UnCommon' # - 'Rare' ############################################# #Items that the player wins if this prize is picked. (If you wish not to give an Item in the prize just delete the Items Section) #Please use these to make the item. #Item: to decide the kind of item it is. #Amount: the amount of that item they get. #Name: a custom name for that item (ColorCode dose work). #Lore: a custom lore for the item (ColorCode does work) and to make a new line in the lore use a , to split the lines. Items: - 'Item:311, Amount:1, Name:&7&lDIAMOND CHESTPLATE' #Commands are the commands that are run when this prize is won. (If you wish not to use a CMD in the prize just delete the Commands Section) #You can use %Player% to get the player that won the prize. Commands: - 'broadcast &6&l%Player% &7has just won a DIAMOND CHESTPLATE.' #Messages: option allows you to send players messages and not have to pm them with commands. #If you do not wish to have players get messaged that they won this prize then just remove the Messages: option. Messages: - '&7You just won a &7&lDIAMOND CHESTPLATE&7.' 2: DisplayName: '&b&lCheap Helmet' DisplayItem: '314' DisplayAmount: 1 Lore: - '&7Win a cheap helmet.' - '&6&lChance: &c&l60%' DisplayEnchantments: #Adds enchantments to the display item. - 'PROTECTION_ENVIRONMENTAL:1' - 'OXYGEN:1' MaxRange: 100 Chance: 60 Firework: false Glowing: false Player: '' Items: - 'Item:314, Amount:1, Name:&bCheap Helmet, PROTECTION_ENVIRONMENTAL:1, OXYGEN:1' 3: DisplayName: '&e&l$1,000,000' DisplayItem: '175' DisplayAmount: 1 Lore: - '&7Make it rain Money Daddy.' - '&6&lChance: &c&l20%' MaxRange: 100 Chance: 1 Firework: true Glowing: false Player: '' Commands: - 'eco give %Player% 1000000' Messages: - '&7You just won &a$1,000,000&7.' 4: DisplayName: '&b&lOBSIDIAN' DisplayItem: '49' DisplayAmount: 64 Lore: - '&7Win Some OBSIDIAN.' - '&6&lChance: &c&l50%'' MaxRange: 100 Chance: 50 Firework: true Glowing: false Player: '' Items: - 'Item:49, Amount:64, Name:&bOBSIDIAN' EDIT by Moderator: Added code tags.
Hi, firstly, can you post the code in code brackets? It is better viewable then. Secondly what kind of code is this? Looks like a Yaml-configuration of some plugin for me but I don't know what plugin.
And why is something wrong with this code? You're not describing very detailed (actually not at all). Is the plugin crashing?