API DisguiseAPI [v2.0] (1.8+)

Discussion in 'Resources' started by FabeGabeMC, Sep 25, 2014.

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

    FabeGabeMC

    Have you ever wanted an easy way to disguise players as other players?
    Well here it is!
    With this library, disguising will be easy as 123/abc!


    INSTRUCTIONS

    1) Go here and click Download ZIP.
    2) Extract the zip file, drag and drop the 'me' folder inside 'src' into your project's source folder.
    2.5) If you want, you can delete the example package (teehee).
    3) Start coding!

    All methods are self explanatory, some are not. (refresh())

    Constructors for Disguise classes:
    (Disguise is abstract, so let's skip that)

    PlayerDisguise:
    Code:
    PlayerDisguise disguise = new PlayerDisguise(Player player, String name);
    EntityDisguise:
    Code:
    EntityDisguise disguise = new EntityDisguise(Player player, EntityType type);
    HOW DOES THIS WORK?

    This uses NMS to send the players a fake entity that will move as the player does. You can disguise as any mob (Living, for now), without the need to worry about packets! The only thing you should worry about is the version of Bukkit you are using.

    FEATURES
    • Disguising! (Well then why not?)
    • Colored names! (Use ChatColor to apply.)
    • Easy API access.
    SOURCE CODE

    GitHub

    SCREENSHOTS

    Coming soon.
     
    Last edited: Nov 1, 2015
  2. Offline

    xTrollxDudex

    1.7.5... wat
     
    podpage likes this.
  3. Offline

    SacredWaste

    xTrollxDudex Yea. It's all the rage lately, I heard its the best version around. You should update your server ASAP.
    pls
     
  4. Offline

    FabeGabeMC

    SacredWaste xTrollxDudex
    I'm still trying to find a way to fix this for 1.7.9 because of new skin/authentication servers.
     
  5. Offline

    skyrimfan1

    Hate to burst your bubble, but LibDisguises offers the same features as this and more.
    I would post a link, but it's on Spigot.
     
  6. Offline

    FabeGabeMC

    What's with all this negative feedback :/
     
  7. Offline

    xXSniperzzXx_SD

    FabeGabeMC I think this is awesome, it allows you to disguise players without forcing the servers to get a disguise plugin.
     
  8. Offline

    FabeGabeMC

  9. Offline

    ChipDev

    Welcome to my world bro xD
     
    FabeGabeMC likes this.
  10. Offline

    FabeGabeMC

    ChipDev
    Is there a polar opposite? :O
     
  11. Offline

    rbrick

    FabeGabeMC I was bored so I made my own version. Uses ProtocolLib and reflection, don't know how efficient it will be considering it uses reflection, but here is mine, https://github.com/rbrick/NameTahg uses the base logic you used for yours.
     
  12. Offline

    ChipDev

    Yep ;p
     
  13. Offline

    DevRosemberg

    FabeGabeMC The problem is that when you state 'DisguiseAPI' and you only offer 1 disguise isn't the best. You should make the title say like Be another Player or something like that. Again, you never receive the best feedback here, theres only like 4 people that didnt receive bad feedback. We all did.
     
  14. Offline

    FabeGabeMC

    DevRosemberg
    True, I haven't updated it in a while. Next feature I will add every single mob in the game, so the title fits. :D
    EDIT: If craftbukkit is going to continue updating until 1.8 and packets are still a thing, I will add the new mobs (rabbits, endermites, guardians, even armor stands!). :)
     
  15. Offline

    BananaBitchs

    @FabeGabeMC
    hey my man you want to do this to 1.7.x|1.8.x Change
    b.set(packet,newGameProfile(a.getName(),p.getName()));
    to
    b.set(packet, new GameProfile(Bukkit.getOfflinePlayer(a.getName()).getUniqueId(), newName));

    its work!!!

    Enjoy :D:)
     
  16. Offline

    FabeGabeMC

    BananaBitchs
    It will not work because Bukkit for 1.8 isn't out.
    However, I could check source code for the 1.8 server platform to see what the constructor for the GameProfile class is.
     
  17. Offline

    DogeDebugger

    How do i color a player name tag with this?
     
  18. Offline

    FabeGabeMC

    @DogeDebugger If you are using 1.7.5+ then this will not work as packets have changed since Bukkit 1.7.5+.
    But you just use the API and use the disguise method, voila!
     
    DogeDebugger likes this.
  19. Offline

    FabeGabeMC

    UPDATE | NOT NECROPOST, BUT RATHER REVIVING THE THREAD:
    1.8 version coming out OCT 29 at 6 PM EST!
    THE HALLOWEEN UPDATE! ;)
     
    Last edited: Oct 28, 2015
    Datdenkikniet likes this.
  20. Offline

    Zombie_Striker

  21. Offline

    BrickBoy55

    @Zombie_Striker It's 39 minutes past the time for me :mad:

    (I'm actually quite excited for this)
     
  22. Offline

    Zombie_Striker

    @BrickBoy55
    I don't understand. it should be the same time for EVERYONE since it's a timezone.
     
  23. Offline

    BrickBoy55

  24. Offline

    Zombie_Striker

    @BrickBoy55
    Yes, but there is only one 6 PM Eastern Standard Time. Meaning its the same for everyone because you have to CONVERT the time to your zone time.
     
  25. Offline

    FabeGabeMC

    @Zombie_Striker @BrickBoy55 DANG! I forgot about this! I am bad at organizing myself!
    Here you goooooo. GITHUB UPDATED!!!
    v 2.0:

    GITHUB

    Changelog:
    - Added many disguises (living, at least for now)
    - Bugfixes and all.
    Notable Bugs:
    - Skins won't render capes nor hats, but it will be fixed very soon! (I promise)
    HAPPY HALLOWEEN! Accurately in my timezone (5:14 PM EST, Oct 31st, 2015 aka 10 days after #BackToTheFutureDay)

    EDIT: Any bugs you may find, send a PM or tahg me!

    ~ Gabe
     
  26. Offline

    Zombie_Striker

    @FabeGabeMC
    Might get around to testing this plugin. I'll let you know if I find any bugs.
     
  27. Offline

    BrickBoy55

    FabeGabeMC likes this.
  28. Offline

    Mrs. bwfctower

Thread Status:
Not open for further replies.

Share This Page