Package septogeddon.pluginquery.spigot
Class SpigotPluginQuery
java.lang.Object
org.bukkit.plugin.PluginBase
org.bukkit.plugin.java.JavaPlugin
septogeddon.pluginquery.spigot.SpigotPluginQuery
- All Implemented Interfaces:
org.bukkit.command.CommandExecutor
,org.bukkit.command.TabCompleter
,org.bukkit.command.TabExecutor
,org.bukkit.plugin.messaging.PluginMessageListener
,org.bukkit.plugin.Plugin
,QueryListener
,QueryMessageListener
public class SpigotPluginQuery
extends org.bukkit.plugin.java.JavaPlugin
implements QueryMessageListener, org.bukkit.plugin.messaging.PluginMessageListener
-
Field Summary
Modifier and TypeFieldDescriptionstatic final QueryMetadataKey
<SpigotRemoteObjectMessenger> Metadata forServer
onRemoteObject
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSet
<io.netty.channel.Channel> void
void
onEnable()
void
onPluginMessageReceived
(String arg0, org.bukkit.entity.Player arg1, byte[] arg2) void
onQueryReceived
(QueryConnection connection, String channel, byte[] message) Called when the connection received a query messageprotected void
register
(boolean tryAgain) void
void
protected void
Methods inherited from class org.bukkit.plugin.java.JavaPlugin
getClassLoader, getCommand, getConfig, getDatabase, getDatabaseClasses, getDataFolder, getDefaultWorldGenerator, getDescription, getFile, getLogger, getPlugin, getPluginLoader, getProvidingPlugin, getResource, getServer, getTextResource, initialize, installDDL, isEnabled, isInitialized, isNaggable, onCommand, onLoad, onTabComplete, removeDDL, saveConfig, saveDefaultConfig, saveResource, setEnabled, setNaggable, toString
Methods inherited from class org.bukkit.plugin.PluginBase
equals, getName, hashCode
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface septogeddon.pluginquery.api.QueryMessageListener
onConnectionStateChange
-
Field Details
-
REMOTEOBJECT_BUKKITSERVER
Metadata forServer
onRemoteObject
-
-
Constructor Details
-
SpigotPluginQuery
public SpigotPluginQuery()
-
-
Method Details
-
onEnable
public void onEnable()- Specified by:
onEnable
in interfaceorg.bukkit.plugin.Plugin
- Overrides:
onEnable
in classorg.bukkit.plugin.java.JavaPlugin
-
onDisable
public void onDisable()- Specified by:
onDisable
in interfaceorg.bukkit.plugin.Plugin
- Overrides:
onDisable
in classorg.bukkit.plugin.java.JavaPlugin
-
getListeners
-
register
protected void register(boolean tryAgain) -
getQueryConfig
-
getEncryption
-
reloadConfig
public void reloadConfig()- Specified by:
reloadConfig
in interfaceorg.bukkit.plugin.Plugin
- Overrides:
reloadConfig
in classorg.bukkit.plugin.java.JavaPlugin
-
unregister
protected void unregister() -
onQueryReceived
Description copied from interface:QueryListener
Called when the connection received a query message- Specified by:
onQueryReceived
in interfaceQueryListener
- Parameters:
connection
-channel
-message
-
-
reloadKey
public void reloadKey() -
onPluginMessageReceived
- Specified by:
onPluginMessageReceived
in interfaceorg.bukkit.plugin.messaging.PluginMessageListener
-