1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

i need a code

Discussion in 'Requests' started by fipteam, Mar 9, 2017.

  1. fipteam

    fipteam Spider

    Messages:
    14
    GitHub:
    ThePlastus
    Hello !
    I need a code :
    When I use /item <player>
    It server give item to <player>
     
  2. HBIDamian

    HBIDamian HBIDamian Staff Member

    Messages:
    365
    GitHub:
    HBIDamian
    Why not just use /give...
     
    EdwardHamHam likes this.
  3. fipteam

    fipteam Spider

    Messages:
    14
    GitHub:
    ThePlastus
    because i want to give a 5 items in one command
     
  4. KnownUnown

    KnownUnown Spider Jockey Poggit Reviewer

    Messages:
    47
    GitHub:
    knownunown
    /give <player> <item[:damage]> [amount] [tags...]
    Now with this new information we can do this...
    Code:
    /give <player> <item> [amount]
    Is that what you wanted?
     
  5. EdwardHamHam

    EdwardHamHam Skeleton

    Messages:
    962
    GitHub:
    edwardhamham
    So like 5 different kinds of items? Or 5 of just one kind of item?
     
  6. fipteam

    fipteam Spider

    Messages:
    14
    GitHub:
    ThePlastus
    umm
    5 different items in one commands
    /item <player>
    (give a <player> a 5 items e.g.
    cobblestone
    dirt
    stone
    wood
    diamond)
    (and sorry I use a google translate :/ )
     
  7. HBIDamian

    HBIDamian HBIDamian Staff Member

    Messages:
    365
    GitHub:
    HBIDamian
    PHP:
            $p->getInventory()->addItem(Item::get(Item ::DIAMOND_SWORD));
            
    $p->getInventory()->addItem(Item::get(Item::ARROW064));
            
    $p->getInventory()->addItem(Item::get(Item ::DIAMOND_SWORD));
            
    $p->getInventory()->addItem(Item::get(Item::BREAD08));
            
    $p->getInventory()->addItem(Item::get(Item ::BOW));
            
    $p->getInventory()->addItem(Item::get(Item::GOLDEN_APPLE04));
     
  8. Thunder33345

    Thunder33345 Moderator Staff Member

    Messages:
    2,137
    GitHub:
    Thunder33345
  9. HBIDamian

    HBIDamian HBIDamian Staff Member

    Messages:
    365
    GitHub:
    HBIDamian
  10. Thunder33345

    Thunder33345 Moderator Staff Member

    Messages:
    2,137
    GitHub:
    Thunder33345
    Isnt that offtopic in the context and how does that help OP?
     
  11. jasonwynn10

    jasonwynn10 Moderator Poggit Reviewer

    Messages:
    1,489
    GitHub:
    jasonwynn10
    This is the request section. They're asking for a plugin to be made for them, not to make it on their own
     
    EdwardHamHam and HBIDamian like this.
  12. HBIDamian

    HBIDamian HBIDamian Staff Member

    Messages:
    365
    GitHub:
    HBIDamian
    http://bfy.tw/AX6h
     
    HimbeersaftLP likes this.
  13. HBIDamian

    HBIDamian HBIDamian Staff Member

    Messages:
    365
    GitHub:
    HBIDamian
    The keyword here being: CODE
     
    Muqsit and HimbeersaftLP like this.
  14. jasonwynn10

    jasonwynn10 Moderator Poggit Reviewer

    Messages:
    1,489
    GitHub:
    jasonwynn10
    That doesn't matter if it's in this section. It may also just have been a bad translation
     
    EdwardHamHam and HBIDamian like this.
  15. HBIDamian

    HBIDamian HBIDamian Staff Member

    Messages:
    365
    GitHub:
    HBIDamian
    Don't shoot the person who is trying to help. :)
    Bad translation or not, you get what you give. In this case, he have the word "Code" so, I'll give the code.
     
    HimbeersaftLP and jasonwynn10 like this.
  16. Thunder33345

    Thunder33345 Moderator Staff Member

    Messages:
    2,137
    GitHub:
    Thunder33345
    you won then by that standard, now to question why OP even posted in request section
    You should try not to use obfuscated links if possible, mostly it will only make it seen malicious (you have no clue where that link will put you)
    why ask for code in this section?
    this is very thread confusing to me
     
  17. HBIDamian

    HBIDamian HBIDamian Staff Member

    Messages:
    365
    GitHub:
    HBIDamian
    http://bfy.tw/AXA4 Ohh no you didn't just go there!

    http://bfy.tw/AX9t Everyone, you better hold be back... there will be a brawl!
     
    Sandertv and HimbeersaftLP like this.
  18. Thunder33345

    Thunder33345 Moderator Staff Member

    Messages:
    2,137
    GitHub:
    Thunder33345
    HimbeersaftLP likes this.
  19. EdwardHamHam

    EdwardHamHam Skeleton

    Messages:
    962
    GitHub:
    edwardhamham
    You guys are going off topic. As for @fipteam 's question, you can do this with an exsisting plugin called Functions. You can create the command /item and make it run the commands /give player wood, /give player diamond etc. all at once. The only problem is that you can't change the five items without modifying the command.
     
    fipteam, HimbeersaftLP and HBIDamian like this.
  20. Sandertv

    Sandertv Zombie Pigman Poggit Reviewer

    Messages:
    786
    GitHub:
    Sandertv
    HimbeersaftLP and HBIDamian like this.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.