Class ProxyPlatform

java.lang.Object
me.neznamy.tab.shared.Platform
me.neznamy.tab.shared.proxy.ProxyPlatform

public abstract class ProxyPlatform extends Platform
Abstract class containing common variables and methods shared between proxies.
  • Field Details

    • plm

      protected final PluginMessageHandler plm
      Plugin message handler for sending and receiving plugin messages
  • Constructor Details

    • ProxyPlatform

      protected ProxyPlatform(me.neznamy.tab.api.protocol.PacketBuilder packetBuilder)
  • Method Details

    • getPluginMessageHandler

      public PluginMessageHandler getPluginMessageHandler()
      Returns plugin message handler
      Returns:
      plugin message handler
    • getBridgePlaceholders

      public Map<String,Integer> getBridgePlaceholders()
      Returns bridge placeholders, which are refreshed on backend server
      Returns:
      bridge placeholders, which are refreshed on backend server
    • detectPermissionPlugin

      public PermissionPlugin detectPermissionPlugin()
      Description copied from class: Platform
      Detects permission plugin and returns it's representing object
      Specified by:
      detectPermissionPlugin in class Platform
      Returns:
      the interface representing the permission hook
    • registerUnknownPlaceholder

      public void registerUnknownPlaceholder(String identifier)
      Description copied from class: Platform
      Creates an instance of Placeholder to handle this unknown placeholder (typically a PAPI placeholder)
      Specified by:
      registerUnknownPlaceholder in class Platform
      Parameters:
      identifier - placeholder's identifier
    • loadFeatures

      public void loadFeatures()
      Description copied from class: Platform
      Loads platform-specific features
      Specified by:
      loadFeatures in class Platform
    • getConfigName

      public String getConfigName()
      Description copied from class: Platform
      Returns name of default config file for this platform as it appears in the final jar in root directory.
      Specified by:
      getConfigName in class Platform
      Returns:
      name of default config file for this platform