public class ViaVersionPlugin extends org.bukkit.plugin.java.JavaPlugin implements ViaPlatform<org.bukkit.entity.Player>
| Constructor and Description | 
|---|
ViaVersionPlugin()  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
cancelTask(TaskId taskId)
Cancel a task 
 | 
ViaAPI<org.bukkit.entity.Player> | 
getApi()
Get the API for this platform 
 | 
BukkitViaConfig | 
getConf()
Get the config API for this platform 
 | 
ConfigurationProvider | 
getConfigurationProvider()
Get the backend configuration provider for this platform. 
 | 
ViaConnectionManager | 
getConnectionManager()  | 
com.google.gson.JsonObject | 
getDump()
Get the JSON data required for /viaversion dump 
 | 
static ViaVersionPlugin | 
getInstance()  | 
ViaCommandSender[] | 
getOnlinePlayers()
Get the online players 
 | 
String | 
getPlatformName()
Get the platform name 
 | 
String | 
getPlatformVersion()
Get the platform version 
 | 
String | 
getPluginVersion()
Get the plugin version 
 | 
boolean | 
isCompatSpigotBuild()  | 
boolean | 
isOldClientsAllowed()
Get if older clients are allowed to be used using ViaVersion. 
 | 
boolean | 
isPluginEnabled()
Check if the plugin is enabled. 
 | 
boolean | 
isProtocolSupport()  | 
boolean | 
isSpigot()  | 
boolean | 
kickPlayer(UUID uuid,
          String message)
Kick a player for a reason 
 | 
void | 
onDisable()  | 
void | 
onEnable()  | 
void | 
onLoad()  | 
void | 
onReload()
Called when a reload happens 
 | 
TaskId | 
runAsync(Runnable runnable)
Run a task Async 
 | 
TaskId | 
runRepeatingSync(Runnable runnable,
                Long ticks)
Run a task at a repeating interval. 
 | 
TaskId | 
runSync(Runnable runnable)
Run a task Sync 
 | 
TaskId | 
runSync(Runnable runnable,
       Long ticks)
Run a task Sync after a interval
 This must be only used after plugin enable. 
 | 
void | 
sendMessage(UUID uuid,
           String message)
Send a message to a player 
 | 
getClassLoader, getCommand, getConfig, getDatabase, getDatabaseClasses, getDataFolder, getDefaultWorldGenerator, getDescription, getFile, getLogger, getPlugin, getPluginLoader, getProvidingPlugin, getResource, getServer, getTextResource, initialize, installDDL, isEnabled, isInitialized, isNaggable, onCommand, onTabComplete, reloadConfig, removeDDL, saveConfig, saveDefaultConfig, saveResource, setEnabled, setNaggable, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitdisconnect, getDataFolder, getLogger, isProxypublic void onLoad()
onLoad in interface org.bukkit.plugin.PluginonLoad in class org.bukkit.plugin.java.JavaPluginpublic void onEnable()
onEnable in interface org.bukkit.plugin.PluginonEnable in class org.bukkit.plugin.java.JavaPluginpublic void onDisable()
onDisable in interface org.bukkit.plugin.PluginonDisable in class org.bukkit.plugin.java.JavaPluginpublic String getPlatformName()
ViaPlatformgetPlatformName in interface ViaPlatform<org.bukkit.entity.Player>public String getPlatformVersion()
ViaPlatformgetPlatformVersion in interface ViaPlatform<org.bukkit.entity.Player>public String getPluginVersion()
ViaPlatformgetPluginVersion in interface ViaPlatform<org.bukkit.entity.Player>public TaskId runAsync(Runnable runnable)
ViaPlatformrunAsync in interface ViaPlatform<org.bukkit.entity.Player>runnable - The task to runpublic TaskId runSync(Runnable runnable)
ViaPlatformrunSync in interface ViaPlatform<org.bukkit.entity.Player>runnable - The task to runpublic TaskId runSync(Runnable runnable, Long ticks)
ViaPlatformrunSync in interface ViaPlatform<org.bukkit.entity.Player>runnable - The task to runticks - The interval to run it afterpublic TaskId runRepeatingSync(Runnable runnable, Long ticks)
ViaPlatformrunRepeatingSync in interface ViaPlatform<org.bukkit.entity.Player>runnable - The task to runticks - The interval to run it atpublic void cancelTask(TaskId taskId)
ViaPlatformcancelTask in interface ViaPlatform<org.bukkit.entity.Player>taskId - The task ID to cancelpublic ViaCommandSender[] getOnlinePlayers()
ViaPlatformgetOnlinePlayers in interface ViaPlatform<org.bukkit.entity.Player>public void sendMessage(UUID uuid, String message)
ViaPlatformsendMessage in interface ViaPlatform<org.bukkit.entity.Player>uuid - The player's UUIDmessage - The message to sendpublic boolean kickPlayer(UUID uuid, String message)
ViaPlatformkickPlayer in interface ViaPlatform<org.bukkit.entity.Player>uuid - The player's UUIDmessage - The message to kick them withpublic boolean isPluginEnabled()
ViaPlatformisPluginEnabled in interface ViaPlatform<org.bukkit.entity.Player>public ConfigurationProvider getConfigurationProvider()
ViaPlatformgetConfigurationProvider in interface ViaPlatform<org.bukkit.entity.Player>public void onReload()
ViaPlatformonReload in interface ViaPlatform<org.bukkit.entity.Player>public com.google.gson.JsonObject getDump()
ViaPlatformgetDump in interface ViaPlatform<org.bukkit.entity.Player>public boolean isOldClientsAllowed()
ViaPlatformisOldClientsAllowed in interface ViaPlatform<org.bukkit.entity.Player>public BukkitViaConfig getConf()
ViaPlatformgetConf in interface ViaPlatform<org.bukkit.entity.Player>public ViaAPI<org.bukkit.entity.Player> getApi()
ViaPlatformgetApi in interface ViaPlatform<org.bukkit.entity.Player>public boolean isCompatSpigotBuild()
public boolean isSpigot()
public boolean isProtocolSupport()
public static ViaVersionPlugin getInstance()
public ViaConnectionManager getConnectionManager()
getConnectionManager in interface ViaPlatform<org.bukkit.entity.Player>Copyright © 2016–2021. All rights reserved.