public class VelocityPlugin extends Object implements PlatformPlugin
Modifier and Type | Field and Description |
---|---|
static com.velocitypowered.api.proxy.messages.ChannelIdentifier |
CHANNEL_ID |
Constructor and Description |
---|
VelocityPlugin(com.velocitypowered.api.proxy.ProxyServer proxyServer,
org.slf4j.Logger logger) |
Modifier and Type | Method and Description |
---|---|
String |
getAuthor() |
Integer |
getBuild() |
VelocitySender |
getConsole() |
VelocitySender |
getPlayer(String name) |
VelocitySender |
getPlayer(UUID uuid) |
List<Sender> |
getPlayers() |
File |
getPluginFolder() |
String |
getPluginFolderPath() |
String |
getPluginName() |
String |
getVersion() |
boolean |
isChatApiPresent() |
MessageEncoder |
newMessageEncoder() |
boolean |
onCommand(com.velocitypowered.api.command.CommandSource sender,
com.velocitypowered.api.command.Command cmd,
String label,
String[] args) |
void |
onDisable(com.velocitypowered.api.event.proxy.ProxyShutdownEvent event) |
void |
onEnable(com.velocitypowered.api.event.proxy.ProxyInitializeEvent event) |
List<String> |
onTabComplete(com.velocitypowered.api.command.CommandSource sender,
com.velocitypowered.api.command.Command cmd,
String label,
String[] args) |
ScheduledTask |
registerRepeatingTask(Runnable r,
long delay,
long interval) |
ScheduledTask |
runTaskLater(Runnable r,
long delay) |
ScheduledTask |
runTaskLaterAsync(Runnable r,
long delay) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getLogger, getPlatformType
public static final com.velocitypowered.api.proxy.messages.ChannelIdentifier CHANNEL_ID
@Inject public VelocityPlugin(com.velocitypowered.api.proxy.ProxyServer proxyServer, org.slf4j.Logger logger)
public void onEnable(com.velocitypowered.api.event.proxy.ProxyInitializeEvent event)
public void onDisable(com.velocitypowered.api.event.proxy.ProxyShutdownEvent event)
public boolean onCommand(com.velocitypowered.api.command.CommandSource sender, com.velocitypowered.api.command.Command cmd, String label, String[] args)
public List<String> onTabComplete(com.velocitypowered.api.command.CommandSource sender, com.velocitypowered.api.command.Command cmd, String label, String[] args)
public String getPluginName()
getPluginName
in interface PlatformPlugin
public String getVersion()
getVersion
in interface PlatformPlugin
public String getAuthor()
getAuthor
in interface PlatformPlugin
public String getPluginFolderPath()
getPluginFolderPath
in interface PlatformPlugin
public File getPluginFolder()
getPluginFolder
in interface PlatformPlugin
public VelocitySender getPlayer(String name)
getPlayer
in interface PlatformPlugin
public VelocitySender getPlayer(UUID uuid)
getPlayer
in interface PlatformPlugin
public VelocitySender getConsole()
getConsole
in interface PlatformPlugin
public List<Sender> getPlayers()
getPlayers
in interface PlatformPlugin
public boolean isChatApiPresent()
isChatApiPresent
in interface PlatformPlugin
public MessageEncoder newMessageEncoder()
newMessageEncoder
in interface PlatformPlugin
public ScheduledTask registerRepeatingTask(Runnable r, long delay, long interval)
registerRepeatingTask
in interface PlatformPlugin
public ScheduledTask runTaskLater(Runnable r, long delay)
runTaskLater
in interface PlatformPlugin
public ScheduledTask runTaskLaterAsync(Runnable r, long delay)
runTaskLaterAsync
in interface PlatformPlugin
public Integer getBuild()
getBuild
in interface PlatformPlugin
Copyright © 2020. All rights reserved.