Class ProxyPackListener
java.lang.Object
de.themoep.resourcepacksplugin.core.SubChannelHandler<org.bukkit.entity.Player>
de.themoep.resourcepacksplugin.bukkit.listeners.ProxyPackListener
- All Implemented Interfaces:
org.bukkit.event.Listener,org.bukkit.plugin.messaging.PluginMessageListener
public class ProxyPackListener
extends de.themoep.resourcepacksplugin.core.SubChannelHandler<org.bukkit.entity.Player>
implements org.bukkit.plugin.messaging.PluginMessageListener, org.bukkit.event.Listener
Created by Phoenix616 on 02.02.2016.
-
Field Summary
Fields inherited from class de.themoep.resourcepacksplugin.core.SubChannelHandler
MESSAGING_CHANNEL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Stringprotected StringloadKey()voidonPlayerJoin(org.bukkit.event.player.PlayerJoinEvent event) voidonPluginMessageReceived(String channel, org.bukkit.entity.Player p, byte[] message) protected voidprotected voidsendPluginMessage(org.bukkit.entity.Player target, byte[] data) protected booleanMethods inherited from class de.themoep.resourcepacksplugin.core.SubChannelHandler
acceptsNewKey, generateKey, handleMessage, readPack, registerSubChannel, reload, sendKey, sendMessage, setKey, writePack
-
Constructor Details
-
ProxyPackListener
-
-
Method Details
-
onPluginMessageReceived
- Specified by:
onPluginMessageReceivedin interfaceorg.bukkit.plugin.messaging.PluginMessageListener
-
onPlayerJoin
public void onPlayerJoin(org.bukkit.event.player.PlayerJoinEvent event) -
sendPluginMessage
protected void sendPluginMessage(org.bukkit.entity.Player target, byte[] data) - Specified by:
sendPluginMessagein classde.themoep.resourcepacksplugin.core.SubChannelHandler<org.bukkit.entity.Player>
-
saveKey
- Specified by:
saveKeyin classde.themoep.resourcepacksplugin.core.SubChannelHandler<org.bukkit.entity.Player>
-
loadKey
- Specified by:
loadKeyin classde.themoep.resourcepacksplugin.core.SubChannelHandler<org.bukkit.entity.Player>
-
getTargetType
- Specified by:
getTargetTypein classde.themoep.resourcepacksplugin.core.SubChannelHandler<org.bukkit.entity.Player>
-
trustsSender
protected boolean trustsSender()- Overrides:
trustsSenderin classde.themoep.resourcepacksplugin.core.SubChannelHandler<org.bukkit.entity.Player>
-