Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Plugins to give players a specific item

Comments in 'Plugin Development' started by Merlin16, Jun 1, 2016.

  1. Thunder33345
    Offline

    Thunder33345 Notable Member

    Joined:
    Apr 3, 2014
    Posts:
    755
    Minecraft User:
    Thunder33345
    that isnt a ide
    good luck for newbie that decide to use that i guess
  2. Yeelze
    Offline

    Yeelze New Member

    Joined:
    Apr 2, 2016
    Posts:
    31
    Minecraft User:
    Yeelze
    Create your own plugin...
    Thats the code
    PHP:
    public function onJoin(PlayerJoinEvent $event){
        
    $player $event->getPlayer();
        
    $inv $player->getInventory();
        
    $inv->addItem(Item::get(364064));
    }
    364 represents the ID of the item that you want to give to the player when he joins the server.
    64 the amount.

Share This Page

Advertisement