1.12.2 Making a Per-World Tablist

Discussion in 'Spigot Plugin Development' started by Kompye, Mar 19, 2020.

  1. Hello,

    I am wondering how I could approach making a per-world tablist. What do I need to use? What's the logic behind it? Noting that I've never used packets/NMS before
     
    #1 Kompye, Mar 19, 2020
    Last edited: Mar 19, 2020
  2. SteelPhoenix

    Moderator

  3. Thanks but
     
  4. You have to learn that.
     
  5. No need NMS/Packet i think.
    Example A and B is a player.
    A will hide B and B will hide A if both are in different world.
    and A will show B and B will show A if both are in same world.
    https://hub.spigotmc.org/javadocs/s...yer.html#showPlayer-org.bukkit.entity.Player-
    https://hub.spigotmc.org/javadocs/s...ukkit.plugin.Plugin-org.bukkit.entity.Player-
    https://hub.spigotmc.org/javadocs/s...yer.html#hidePlayer-org.bukkit.entity.Player-
    https://hub.spigotmc.org/javadocs/s...ukkit.plugin.Plugin-org.bukkit.entity.Player-
     
    • Useful Useful x 1
  6. SteelPhoenix

    Moderator

    This will likely screw with vanish plugins.
     
    • Like Like x 1
  7. then i would use this method:
    https://hub.spigotmc.org/javadocs/s...ukkit.plugin.Plugin-org.bukkit.entity.Player-
    "Allows this player to see a player that was previously hidden. If another another plugin had hidden the player too, then the player will remain hidden until the other plugin calls this method too."

    edit: Unless the vanish plugin used improper way to do its job
     
    • Like Like x 1
  8. That will work because I need it for minigame arenas so there’s no need to vanish.

    thank you!