Class VelocityPlugin
- java.lang.Object
-
- net.alpenblock.bungeeperms.platform.velocity.VelocityPlugin
-
- All Implemented Interfaces:
PlatformPlugin
public class VelocityPlugin extends java.lang.Object implements PlatformPlugin
-
-
Field Summary
Fields Modifier and Type Field Description static com.velocitypowered.api.proxy.messages.ChannelIdentifier
CHANNEL_ID
-
Constructor Summary
Constructors Constructor Description VelocityPlugin(com.velocitypowered.api.proxy.ProxyServer proxyServer, org.slf4j.Logger logger)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getAuthor()
java.lang.Integer
getBuild()
VelocitySender
getConsole()
VelocitySender
getPlayer(java.lang.String name)
VelocitySender
getPlayer(java.util.UUID uuid)
java.util.List<Sender>
getPlayers()
java.io.File
getPluginFolder()
java.lang.String
getPluginFolderPath()
java.lang.String
getPluginName()
java.lang.String
getVersion()
boolean
isChatApiPresent()
MessageEncoder
newMessageEncoder()
boolean
onCommand(com.velocitypowered.api.command.CommandSource sender, com.velocitypowered.api.command.Command cmd, java.lang.String label, java.lang.String[] args)
void
onDisable(com.velocitypowered.api.event.proxy.ProxyShutdownEvent event)
void
onEnable(com.velocitypowered.api.event.proxy.ProxyInitializeEvent event)
java.util.List<java.lang.String>
onTabComplete(com.velocitypowered.api.command.CommandSource sender, com.velocitypowered.api.command.Command cmd, java.lang.String label, java.lang.String[] args)
ScheduledTask
registerRepeatingTask(java.lang.Runnable r, long delay, long interval)
ScheduledTask
runTaskLater(java.lang.Runnable r, long delay)
ScheduledTask
runTaskLaterAsync(java.lang.Runnable r, long delay)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.alpenblock.bungeeperms.platform.PlatformPlugin
getLogger, getPlatformType
-
-
-
-
Method Detail
-
onEnable
public void onEnable(com.velocitypowered.api.event.proxy.ProxyInitializeEvent event)
-
onDisable
public void onDisable(com.velocitypowered.api.event.proxy.ProxyShutdownEvent event)
-
onCommand
public boolean onCommand(com.velocitypowered.api.command.CommandSource sender, com.velocitypowered.api.command.Command cmd, java.lang.String label, java.lang.String[] args)
-
onTabComplete
public java.util.List<java.lang.String> onTabComplete(com.velocitypowered.api.command.CommandSource sender, com.velocitypowered.api.command.Command cmd, java.lang.String label, java.lang.String[] args)
-
getPluginName
public java.lang.String getPluginName()
- Specified by:
getPluginName
in interfacePlatformPlugin
-
getVersion
public java.lang.String getVersion()
- Specified by:
getVersion
in interfacePlatformPlugin
-
getAuthor
public java.lang.String getAuthor()
- Specified by:
getAuthor
in interfacePlatformPlugin
-
getPluginFolderPath
public java.lang.String getPluginFolderPath()
- Specified by:
getPluginFolderPath
in interfacePlatformPlugin
-
getPluginFolder
public java.io.File getPluginFolder()
- Specified by:
getPluginFolder
in interfacePlatformPlugin
-
getPlayer
public VelocitySender getPlayer(java.lang.String name)
- Specified by:
getPlayer
in interfacePlatformPlugin
-
getPlayer
public VelocitySender getPlayer(java.util.UUID uuid)
- Specified by:
getPlayer
in interfacePlatformPlugin
-
getConsole
public VelocitySender getConsole()
- Specified by:
getConsole
in interfacePlatformPlugin
-
getPlayers
public java.util.List<Sender> getPlayers()
- Specified by:
getPlayers
in interfacePlatformPlugin
-
isChatApiPresent
public boolean isChatApiPresent()
- Specified by:
isChatApiPresent
in interfacePlatformPlugin
-
newMessageEncoder
public MessageEncoder newMessageEncoder()
- Specified by:
newMessageEncoder
in interfacePlatformPlugin
-
registerRepeatingTask
public ScheduledTask registerRepeatingTask(java.lang.Runnable r, long delay, long interval)
- Specified by:
registerRepeatingTask
in interfacePlatformPlugin
-
runTaskLater
public ScheduledTask runTaskLater(java.lang.Runnable r, long delay)
- Specified by:
runTaskLater
in interfacePlatformPlugin
-
runTaskLaterAsync
public ScheduledTask runTaskLaterAsync(java.lang.Runnable r, long delay)
- Specified by:
runTaskLaterAsync
in interfacePlatformPlugin
-
getBuild
public java.lang.Integer getBuild()
- Specified by:
getBuild
in interfacePlatformPlugin
-
-