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

Solved dataPacket()?

Comments in 'Plugin Development' started by Legoboy0215, Oct 27, 2015.

  1. Legoboy0215
    Offline

    Legoboy0215 Notable Member

    Joined:
    Nov 1, 2014
    Posts:
    1,724
    Minecraft User:
    Legoboy0215
    Just a simple question that is in my mind the whole day. When you do $player->dataPacket(), would other people be able to see the packet I sent him?
    Last edited: Oct 27, 2015
  2. Creeperface
    Offline

    Creeperface Notable Member Plugin Developer

    Joined:
    Nov 8, 2014
    Posts:
    1,346
    Plugins:
    4
    Minecraft User:
    CreeperFace
  3. Primus
    Offline

    Primus Notable Member

    Joined:
    Apr 7, 2015
    Posts:
    1,470
    Minecraft User:
    PrimusLV
    But doing this
    PHP:
    $this->getServer()->broadcastPacket($pk);
    or
    PHP:
    foreach($this->getServer()->getOnlinePlayers() as $player){
    $player->dataPacket($pk);
    }
    they will
    Legoboy0215 likes this.
  4. Legoboy0215
    Offline

    Legoboy0215 Notable Member

    Joined:
    Nov 1, 2014
    Posts:
    1,724
    Minecraft User:
    Legoboy0215
    Wow! I did not know that! Thanks!

Share This Page

Advertisement