public interface ID2RPluginBootstrap
| Modifier and Type | Method and Description |
|---|---|
java.nio.file.Path |
getDataDirectory()
Gets the plugins main data storage directory
|
PluginLogger |
getLogger()
Logger adapter for all platforms
|
java.util.Collection<java.util.UUID> |
getOnlinePlayers()
Gets the UUIDs of the users online on the platform
|
Platform.Type |
getPlatformType()
Gets the platform type this instance is running on.
|
java.util.Optional<?> |
getPlayer(java.util.UUID uuid)
Get a player object
|
int |
getPlayerCount()
Gets the number of users online on the platform
|
java.util.Collection<java.lang.String> |
getPlayerList()
Gets the usernames of the users online on the platform
|
default com.google.common.collect.ImmutableSet<DynamicDependency> |
getRequiredDependencies()
Set of required dependencies for this plugin to run.
|
default java.io.InputStream |
getResourceStream(java.lang.String path)
Gets a bundled resource file from the jar
|
java.time.Instant |
getStartupTime()
Gets the time when the plugin first started in millis.
|
TaskFactory |
getTaskFactory()
Task adapter for platform
|
java.lang.String |
getVersion()
get plugin version
|
boolean |
isPlayerOnline(java.util.UUID uniqueId)
Checks if a user is online
|
PluginLogger getLogger()
TaskFactory getTaskFactory()
default com.google.common.collect.ImmutableSet<DynamicDependency> getRequiredDependencies()
java.lang.String getVersion()
java.time.Instant getStartupTime()
Platform.Type getPlatformType()
java.nio.file.Path getDataDirectory()
default java.io.InputStream getResourceStream(java.lang.String path)
path - the path of the fileint getPlayerCount()
java.util.Collection<java.lang.String> getPlayerList()
List of usernamesjava.util.Collection<java.util.UUID> getOnlinePlayers()
Set of UUIDsboolean isPlayerOnline(java.util.UUID uniqueId)
uniqueId - the users external uuidjava.util.Optional<?> getPlayer(java.util.UUID uuid)
uuid - of player