triggering commands on disconnect

Discussion in 'Bukkit Help' started by DaHamy, Mar 9, 2019.

  1. Offline

    DaHamy

    I was wondering how I could make it that players trigger a command when they disconnect from the server. As example, I got an ffa plugin installed and when they just leave the server without really leaving the ffa map, they are stuck in it and can not do anything so I thought I would let them do the leave command when they disconnect from it
     
  2. Offline

    timtower Ninja on the waves Moderator

    @DaHamy Can't do that when they leave, you can do that when they join though.
    Or get the ffa plugin fixed
     
    DaHamy likes this.
  3. Offline

    KarimAKL

    @timtower Wouldn't you be able to make a plugin with the 'PlayerQuitEvent' event and then execute the commands? That should be executed before the player leaves the server, right?
     
  4. Offline

    timtower Ninja on the waves Moderator

    There are limitations, tried it with teleporting, didn't turn out that well.
     
  5. Offline

    KarimAKL

    @timtower Oh, i haven't tried anything with a limit yet, thanks for the information. :)
     

Share This Page