Desle Code: Shipments: '&eCocaine Shipment': block-id: 138 required-lore: '' ships-item-id: 353 ships-item-amount: 10 ships-item-lore: '' ships-item-name: '&eCocaine' ticks-between-delivery: 20 '&eAK-47 Shipment': block-id: 138 required-lore: '' ships-gun-amount: 10 ships-gun: AK-47 ticks-between-delivery: 20 Obtained shipment by /giveshipment &eCocaine_Shipment The AK-47 shipment works great too even though it says &eAK-47 Shipment instead of being yellow.
/giveshipment doesn't use colors, as i said, don't use colors at the name thing in the configuration file, you can use colors on the items you gain from your shops, since it won't affect it. And... you NEED to set a required-lore, sorry.. =s Let me correct this config ^ Code: Cocaine Shipment: block-id: 138 required-lore: Contains Cocaine ships-item-id: 353 ships-item-amount: 10 ships-item-name: '&eCocaine' ticks-between-delivery: 20 AK-47 Shipment: block-id: 138 required-lore: Ships AK-47s ships-gun-amount: 10 ships-gun: AK-47 ticks-between-delivery: 20 ships-item-lore and ships-item-name are not required, so you can leave those out if you don't want them. EDIT: Clearer: The items that you get from the shops CAN have colors in the names/lores. So basicly, you can't have the color codes NEEDED, they're optional.
You can with the shop, although with my command, no, you can't. I edited my previous reply, check that. EDIT: remove the ' ' at the required-lore. EDIT: Actually, it's fine. the ' ' don't affect anything.
Why don't you want a lore? is it really needed to not have one? And errm, if you'd like, i can implement colors in the command. I didin't because i thought you were using shops.
Desle I am using shops but the shop requires the item itsself to have the same name and lore. You could implement colors in the command, yes. EDIT: And also color in the required-lore.
Working on it EDIT: required-lore isn't needed anymore, you can just remove the line if you don't want it, or leave it blank.. *BLANK* not '' or anything.
I know, but in the version i'm making.. dude those colors wont work =s I don't see why the command needs to apply colors, can't the shop do that? EDIT: And, if you don't have a required-lore, players can use an anvil to rename their items to a shipment. Getting sick of this.. making required-lore required... since if i don't, gonna be difficult and players can make their own shipments.
Desle I will make players not be able to use anvils. I will use anvils for decoration anyways. It's a roleplay server. EDIT: I really need colors in the shipment name and lore though.
[quote uid=90883575 name="PotatoTears" post=2143131]Desle I will make players not be able to use anvils. I will use anvils for decoration anyways. It's a roleplay server. EDIT: I really need colors in the shipment name and lore though.[/quote] Working on it. Ok.. i've not removed the required-lore being required, it HAS to be in the shipment configuration, like everything, exept for ships-item-name and ships-item-lore. <Edit by Moderator: Redacted mediafire url> In this version you have the option to add colors to the name/lore like this: <required> [optional] ------------------------------------ /giveshipment <shipment> [namecolor] [lorecolor] ------------------------------------ Examples /giveshipment Cocaine_Shipment &4&l &e&o //sets the color of the name and lore. /giveshipment Cocaine_Shipment &4 &e //sets the color of the name and lore. /give shipment Cocaine_Shipment &4 //only sets the color of the name. /give shipment Cocaine_Shipment //Doesn't set any colors, so it just uses the default white/purple. ------------------------------------- Here's an example of a shipment.. Code: Shipments: Cocaine Shipment: block-id: 138 required-lore: 'Place this crate down to open it' ships-item-id: 353 ships-item-amount: 10 ships-item-name: '&eCocaine' ticks-between-delivery: 20 EDIT by Moderator: merged posts, please use the edit button instead of double posting.
Yea, i've edited the post.. if you want anything else implemented, please come on my server.. kind of annoying to wait for eachother to come back onto our browser. 81.207.204.237
Is there anyway you can make the shipment and give it to a specific person. like /giveshipment *User Name* Cocaine_Shipment
I know I'm necroposting, but how exactly did you fix the null pointer? Is CSUtility supposed to be assigned to something?
Necroposting is when you are posting on a thread that is over 3 months old So no necro post here XD And CSUtility should indeed be assigned before you are able to use it
timtower what should it be assigned to though? I tried using public CSUtility csapi; but that returns null for csapi? His github page is pretty vague about what to do also :l