1.12.2 Sockets handling

Discussion in 'Spigot Plugin Development' started by TrueMB, Aug 2, 2020 at 12:23 AM.

  1. Hello everybody!

    What I want to do: I want a Booster Plugin for Bungeecord that informs every Server, even if there are no Players online. After that Information it should start a timer. (working)
    But now I got the problem, that the server starts to lag, because of the always listening Sockets.

    Does anybody got an idea how to solve it with better performance? Like only make it listen, after it got woke up by the Bungeecord?

    Here is my working code so far:

    Booster Client: https://pastebin.com/nTVEp7yG
    BoosterBungee Server: https://pastebin.com/kFbg6Tb1
    BoosterBungee Client: https://pastebin.com/fZUcZgJL