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

Online Fake Client Plugin

Comments in 'Plugin Development' started by Jon, Dec 20, 2014.

Thread Status:
Not open for further replies.
  1. Jon
    Offline

    Jon Active Member Plugin Developer

    Joined:
    Sep 1, 2013
    Posts:
    201
    Plugins:
    3
    Minecraft User:
    Heromine14
    Some days ago i played a bit on the Lifeboat's Skywars server and i noticed the "kit-players".
    I was thinking how to make a plugin that create a "non-movable" (hope this is the right word) player where you can also choose the name.
    Also there was a feature: when you click on a "kit-player" (to buy it) in your client (only in your) appears 2 block: Emerald and Red Mushroom block (mean accept and cancel the "transition")

    Can anyone explain how to do it please?

    Thanks
  2. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,306
    Plugins:
    11
    Minecraft User:
    PEMapModder
    Send a raw AddPlayerPacket
  3. Jon
    Offline

    Jon Active Member Plugin Developer

    Joined:
    Sep 1, 2013
    Posts:
    201
    Plugins:
    3
    Minecraft User:
    Heromine14
    And for the feature?
  4. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,306
    Plugins:
    11
    Minecraft User:
    PEMapModder
    Listen to DataPacketReceiveEvent.
  5. Praxthisnovcht
    Offline

    Praxthisnovcht Notable Member Plugin Developer

    Joined:
    Mar 10, 2014
    Posts:
    701
    Plugins:
    4
    Minecraft User:
    PraxHellTag
    PHP:
        public function spawnPlayer($posPlayer $p) {
                
    $pk = new AddPlayerPacket();
                
    $pk->clientID 0;
  6. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,306
    Plugins:
    11
    Minecraft User:
    PEMapModder
    Not exactly. This function spawns am existing player. We don't want to instantiate a Player in this case.
    Praxthisnovcht likes this.
  7. Praxthisnovcht
    Offline

    Praxthisnovcht Notable Member Plugin Developer

    Joined:
    Mar 10, 2014
    Posts:
    701
    Plugins:
    4
    Minecraft User:
    PraxHellTag
    what is the function used then?
  8. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,306
    Plugins:
    11
    Minecraft User:
    PEMapModder
    It is only used for internally spawning hidden players or something like that.
  9. Tethered_
    Offline

    Tethered_ Active Member Plugin Developer

    Joined:
    Jun 24, 2014
    Posts:
    178
    Plugins:
    2
    Minecraft User:
    Frostbyte58
    So how would you spawn a new player with name $name?
  10. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,306
    Plugins:
    11
    Minecraft User:
    PEMapModder
    Set the field $AddPlayerPacket->username.
    Jon and Tethered_ like this.
  11. iksaku
    Offline

    iksaku Notable Member Plugin Developer

    Joined:
    Sep 2, 2013
    Posts:
    1,130
    Plugins:
    4
    Minecraft User:
    iksaku
    You can use the "Specter" plugin that is in development by @Falk
    EvolSoft and Tethered_ like this.
  12. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,306
    Plugins:
    11
    Minecraft User:
    PEMapModder
    He meant to use them for purposes AI. A significant reason why you can't use it is that you can't make two specters with the same name.
  13. hoyinm14mc
    Offline

    hoyinm14mc Notable Member Plugin Developer

    Joined:
    Jun 4, 2014
    Posts:
    502
    Plugins:
    9
    Minecraft User:
    hoyinm14mc
    Oh accually there is an advanced plugin for bukkit that can do this called 'Citizens'
  14. hoyinm14mc
    Offline

    hoyinm14mc Notable Member Plugin Developer

    Joined:
    Jun 4, 2014
    Posts:
    502
    Plugins:
    9
    Minecraft User:
    hoyinm14mc
    IIt's good if someone can port it to PocketMine
Thread Status:
Not open for further replies.

Share This Page

Advertisement