Class ProxyTabPlayer

java.lang.Object
me.neznamy.tab.shared.ITabPlayer
me.neznamy.tab.shared.proxy.ProxyTabPlayer
All Implemented Interfaces:
me.neznamy.tab.api.TabPlayer

public abstract class ProxyTabPlayer extends ITabPlayer
Abstract class for player on proxy containing variables and methods shared between proxies.
  • Constructor Details

    • ProxyTabPlayer

      protected ProxyTabPlayer(Object player, UUID uniqueId, String name, String server, int protocolVersion)
      Constructs new instance with given parameters and sends a message to bridge about this player joining with join data
      Parameters:
      player - platform-specific player object
      uniqueId - Player's unique ID
      name - Player's name
      server - Player's server
      protocolVersion - Player's protocol network id
  • Method Details

    • sendJoinPluginMessage

      public void sendJoinPluginMessage()
      Sends plugin message to backend server that this player has joined, containing all plugin configuration data.
    • setVanished

      public void setVanished(boolean vanished)
      Sets vanish status to provided value
      Parameters:
      vanished - new vanish status
    • setDisguised

      public void setDisguised(boolean disguised)
      Sets disguise status to provided value
      Parameters:
      disguised - new disguise status
    • setInvisible

      public void setInvisible(boolean invisible)
      Sets invisibility status to provided value
      Parameters:
      invisible - new invisibility status
    • setOnBoat

      public void setOnBoat(boolean onBoat)
      Sets boat status to provided value
      Parameters:
      onBoat - new boat status
    • setHasPermission

      public void setHasPermission(String permission, boolean value)
      Sets permission presence status to provided value
      Parameters:
      permission - Requested permission node
      value - Permission value
    • isOnBoat

      public boolean isOnBoat()
      Returns true if player is on boat, false if not. This requires bridge installed to forward the data.
      Returns:
      true if on boat, false if not
    • hasPermission0

      public abstract boolean hasPermission0(String permission)
      Performs platform-specific permission check and returns the result
      Parameters:
      permission - Permission to check for
      Returns:
      Result from hasPermission call
    • sendPluginMessage

      public abstract void sendPluginMessage(byte[] message)
      Sends plugin message to this player
      Parameters:
      message - message to send
    • isVanished

      public boolean isVanished()
    • isDisguised

      public boolean isDisguised()
    • hasInvisibilityPotion

      public boolean hasInvisibilityPotion()
    • hasPermission

      public boolean hasPermission(String permission)