Solved Hiding players in Essentials list?

Discussion in 'Plugin Development' started by VvRJMendozavV, Aug 29, 2013.

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

    VvRJMendozavV

    Hi,

    I'm currently making a plugin right now, and it features a fake leave command. I want to hide the player that used the fake leave command in essentials list. I did the hiding players in the TAB successfully but my problem now is really the essentials list and who command. Can someone please help me?

    Thank you :)
     
  2. VvRJMendozavV I would take a look where essentials does this, capture that and delete the player. I think vanish no packet has this feature too, maybe you can take a look at the source code and see how he managed it.
     
  3. Offline

    StaticE

    You could make the player using the fake leave command dispatch /vanish, which would hide them from all essentials commands but also make them invisible, which I don't know if you would want or not.
     
  4. Offline

    VvRJMendozavV

    oh yea! I didn't think of that! Thanks I'll try it now :)

    StaticE When I dispatched /vanish on my fake leave command, it gives me an error saying "Error: Only in-game players can use vanish."

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 4, 2016
  5. Offline

    StaticE

    VvRJMendozavV Are you using
    Code:java
    1. Bukkit.dispatchCommand(sender, "vanish");
    ?
     
  6. Offline

    VvRJMendozavV

    oh, that was a fail, I was using the console to do it -.- I forgot I can use "sender" -.- sorry x.x I'll try it now
     
  7. Offline

    StaticE

    VvRJMendozavV Aha, no problem. Let me know how it goes, should work fine.
     
  8. Offline

    VvRJMendozavV

    StaticE Thank you very much! :D it worked! :3
     
  9. Offline

    StaticE

Thread Status:
Not open for further replies.

Share This Page