Filled Filled

Discussion in 'Archived: Plugin Requests' started by PotatoTears, Jan 2, 2014.

  1. Offline

    PotatoTears

    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.
     
  2. Offline

    Desle


    /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.
     
  3. Offline

    PotatoTears

    Desle Oh, but can't i make the Shipment's name yellow instead of white?
     
  4. Offline

    Desle


    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.
     
  5. Offline

    PotatoTears

    Desle, Oh, and what do i do if i want my Shipment to have no lore? Currently it just says "null"
     
  6. Offline

    Desle


    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.
     
  7. Offline

    PotatoTears

    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.
     
  8. Offline

    Desle


    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.
     
  9. Offline

    PotatoTears

    Desle When i remove it, then the lore is just "null"
     
  10. Offline

    Desle


    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.
     
  11. Offline

    PotatoTears

    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.
     
  12. Offline

    Desle

    [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.
     
    Last edited by a moderator: Nov 4, 2016
  13. Offline

    PotatoTears

    Desle likes this.
  14. Offline

    Desle


    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
     
  15. Offline

    PotatoTears

  16. Offline

    redhotmo

    Is there anyway you can make the shipment and give it to a specific person. like /giveshipment *User Name* Cocaine_Shipment
     
  17. Offline

    ccrama


    I know I'm necroposting, but how exactly did you fix the null pointer? Is CSUtility supposed to be assigned to something?
     
  18. Offline

    timtower Moderator Moderator

    Necroposting is when you are posting on a thread that is over 3 months old :p So no necro post here XD
    And CSUtility should indeed be assigned before you are able to use it
     
  19. Offline

    ccrama

    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
     
  20. Offline

    timtower Moderator Moderator

    Not sure how it works. Post something on my profile for this, then i will try to help you
     

Share This Page