Solved Vanish

Discussion in 'Plugin Development' started by Vistify, Feb 10, 2019.

  1. Offline

    Vistify

  2. Offline

    timtower Ninja on the waves Moderator

    @Vistify You need to listen to the join event and vanish who is needed then as well.
     
  3. Offline

    Vistify

    I tried doing that, but I couldn't get it to work. Can you supply me with some code?
    Thanks.
     
  4. Offline

    timtower Ninja on the waves Moderator

    @Vistify I won't spoonfeed.
    What have you tried?
     
  5. Offline

    Vistify

    I tried adding them to the vanishedList onPlayerJoinEvent and onPlayerQuitEvent I removed them
     
  6. Offline

    timtower Ninja on the waves Moderator

    You don't need to.
    You need to check the list and hide everybody again when somebody joins.
     
  7. Offline

    Vistify

  8. Offline

    timtower Ninja on the waves Moderator

    @Vistify Don't add it to the vanished list.
    No need to do anything in the onQuit either.
    Did you register the event?
     
  9. Offline

    Vistify

    I totally forgot to register them :( sorry. It works now! Thanks for your help :)))
     
    timtower likes this.

Share This Page