Class VelocityPlatform
java.lang.Object
io.github.projectunified.faststats.velocity.VelocityPlatform
- All Implemented Interfaces:
Platform
-
Constructor Summary
ConstructorsConstructorDescriptionVelocityPlatform(com.velocitypowered.api.proxy.ProxyServer server, com.velocitypowered.api.plugin.PluginContainer plugin, org.slf4j.Logger logger, Path dataDirectory) Constructs a newVelocityPlatformfor the given plugin. -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the platform-specific configuration.Collection<Metric<?>> Gets default platform-specific metrics.voidLogs error messages.voidLogs informational messages.voidlogWarning(String message) Logs warning messages.
-
Constructor Details
-
VelocityPlatform
public VelocityPlatform(com.velocitypowered.api.proxy.ProxyServer server, com.velocitypowered.api.plugin.PluginContainer plugin, org.slf4j.Logger logger, Path dataDirectory) Constructs a newVelocityPlatformfor the given plugin.- Parameters:
server- the velocity proxy serverplugin- the plugin containerlogger- the loggerdataDirectory- the data directory
-
-
Method Details
-
getConfig
-
getMetrics
Description copied from interface:PlatformGets default platform-specific metrics.- Specified by:
getMetricsin interfacePlatform- Returns:
- a collection of platform metrics
-
logInfo
-
logWarning
Description copied from interface:PlatformLogs warning messages.- Specified by:
logWarningin interfacePlatform- Parameters:
message- the message to log
-
logError
-