Class SpectatorFix

java.lang.Object
me.neznamy.tab.api.TabFeature
me.neznamy.tab.shared.features.SpectatorFix

public class SpectatorFix extends me.neznamy.tab.api.TabFeature
Cancelling GameMode change packet to spectator GameMode to avoid players being moved on the bottom of TabList with transparent name. Does not work on self as that would result in players not being able to clip through walls.
  • Field Summary

    Fields inherited from class me.neznamy.tab.api.TabFeature

    disabledServers, disabledWorlds
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructs new instance and sends debug message that feature loaded.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
    onJoin(me.neznamy.tab.api.TabPlayer p)
     
    void
    onPlayerInfo(me.neznamy.tab.api.TabPlayer receiver, me.neznamy.tab.api.protocol.PacketPlayOutPlayerInfo info)
     
    void
     

    Methods inherited from class me.neznamy.tab.api.TabFeature

    addDisabledPlayer, addUsedPlaceholders, contains, getFeatureName, getRefreshDisplayName, isDisabled, isDisabledPlayer, onCommand, onDisplayObjective, onLoginPacket, onObjective, onPacketReceive, onPacketSend, onQuit, onServerChange, onVanishStatusChange, onWorldChange, overridesMethod, refresh, removeDisabledPlayer

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SpectatorFix

      public SpectatorFix()
      Constructs new instance and sends debug message that feature loaded.
  • Method Details

    • onPlayerInfo

      public void onPlayerInfo(me.neznamy.tab.api.TabPlayer receiver, me.neznamy.tab.api.protocol.PacketPlayOutPlayerInfo info)
      Overrides:
      onPlayerInfo in class me.neznamy.tab.api.TabFeature
    • onJoin

      public void onJoin(me.neznamy.tab.api.TabPlayer p)
      Overrides:
      onJoin in class me.neznamy.tab.api.TabFeature
    • load

      public void load()
      Overrides:
      load in class me.neznamy.tab.api.TabFeature
    • unload

      public void unload()
      Overrides:
      unload in class me.neznamy.tab.api.TabFeature