Package me.neznamy.tab.shared.proxy
Class ProxyPlatform
java.lang.Object
me.neznamy.tab.shared.Platform
me.neznamy.tab.shared.proxy.ProxyPlatform
Abstract class containing common variables and methods
shared between proxies.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final PluginMessageHandlerPlugin message handler for sending and receiving plugin messages -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedProxyPlatform(me.neznamy.tab.api.protocol.PacketBuilder packetBuilder) -
Method Summary
Modifier and TypeMethodDescriptionDetects permission plugin and returns it's representing objectReturns bridge placeholders, which are refreshed on backend serverReturns name of default config file for this platform as it appears in the final jar in root directory.Returns plugin message handlervoidLoads platform-specific featuresvoidregisterUnknownPlaceholder(String identifier) Creates an instance ofPlaceholderto handle this unknown placeholder (typically a PAPI placeholder)Methods inherited from class me.neznamy.tab.shared.Platform
callLoadEvent, callLoadEvent, getPacketBuilder, getPluginVersion, sendConsoleMessage
-
Field Details
-
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
Returns plugin message handler- Returns:
- plugin message handler
-
getBridgePlaceholders
Returns bridge placeholders, which are refreshed on backend server- Returns:
- bridge placeholders, which are refreshed on backend server
-
detectPermissionPlugin
Description copied from class:PlatformDetects permission plugin and returns it's representing object- Specified by:
detectPermissionPluginin classPlatform- Returns:
- the interface representing the permission hook
-
registerUnknownPlaceholder
Description copied from class:PlatformCreates an instance ofPlaceholderto handle this unknown placeholder (typically a PAPI placeholder)- Specified by:
registerUnknownPlaceholderin classPlatform- Parameters:
identifier- placeholder's identifier
-
loadFeatures
public void loadFeatures()Description copied from class:PlatformLoads platform-specific features- Specified by:
loadFeaturesin classPlatform
-
getConfigName
Description copied from class:PlatformReturns name of default config file for this platform as it appears in the final jar in root directory.- Specified by:
getConfigNamein classPlatform- Returns:
- name of default config file for this platform
-