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

ArmorSpawn New Api

Comments in 'Plugin Development' started by GamesLoad, Jun 28, 2014.

  1. GamesLoad
    Offline

    GamesLoad Active Member

    Joined:
    Jun 28, 2014
    Posts:
    106
    Minecraft User:
    GamesLoad
    Hello today is the second topic that I would like to ask how do I set armor to all players that spawn
    $ player = $ this-> GetServer () -> getPlayer
    tell me how please let inmpostare armor to all players who enter the server for the first time
  2. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    PHP:
    $player blah blah blah;
    $player->getInventory()->setBoots(Item::get(Item::DIAMOND_BOOTS));
  3. GamesLoad
    Offline

    GamesLoad Active Member

    Joined:
    Jun 28, 2014
    Posts:
    106
    Minecraft User:
    GamesLoad
    sorry but I wish all players a player not defined
  4. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    The problem is, how often do you do that? For example, you have to do that when a player respawns.

    The best is do that on player join and player respawn.
    Jon likes this.
  5. GamesLoad
    Offline

    GamesLoad Active Member

    Joined:
    Jun 28, 2014
    Posts:
    106
    Minecraft User:
    GamesLoad
    when the player respauna just a sign that premerra and armor will then throw the code that I'm missing and what all the players for the first time entering the server can have default armor

Share This Page

Advertisement