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

Customize player

Comments in 'Plugin Development' started by MyNameIsTriXz, Mar 9, 2016.

  1. MyNameIsTriXz
    Offline

    MyNameIsTriXz Notable Member

    Joined:
    Aug 17, 2015
    Posts:
    538
    Minecraft User:
    MyNameIsTriXz
    How can I despawn a player from every other player and let them instead see a pig and so on?
  2. TheDeibo
    Offline

    TheDeibo Notable Member

    Joined:
    Sep 8, 2014
    Posts:
    693
    Minecraft User:
    TheDeibo
    Seems to me like DisguiseMe but modified.. I will look onto it.
  3. MyNameIsTriXz
    Offline

    MyNameIsTriXz Notable Member

    Joined:
    Aug 17, 2015
    Posts:
    538
    Minecraft User:
    MyNameIsTriXz
    DisguiseMe doesnt seem work anymore and no I dont mean the outdated API
  4. CraftYourBukkit
    Offline

    CraftYourBukkit Notable Member Plugin Developer

    Joined:
    Jan 20, 2015
    Posts:
    1,022
    Plugins:
    2
    Minecraft User:
    CraftYourBukkit
    To hide him, simply use Player::hidePlayer($p);.
    PHP:
    foreach($this->getServer()->getOnlinePlayers() as $pl){
    $pl->hidePlayer($player); // $player is the player you want to hide
    }
    Make sure to also hide him on PlayerJoinEvent from the Player that joins.

    For the Pig, simply spawn one that follows the player(Of course, you have to create it)
    Skullex, KubixQ and TheDeibo like this.
  5. TheDeibo
    Offline

    TheDeibo Notable Member

    Joined:
    Sep 8, 2014
    Posts:
    693
    Minecraft User:
    TheDeibo
    As simple as that

Share This Page

Advertisement