@NonnullByDefault public final class Helper extends Object
Bukkit.getServer() for convenience.| Modifier and Type | Method and Description |
|---|---|
static org.bukkit.scheduler.BukkitScheduler |
bukkitScheduler() |
static org.bukkit.command.ConsoleCommandSender |
console() |
static void |
executeCommand(String command) |
static HelperPlugin |
hostPlugin()
Gets the plugin which is "hosting" helper.
|
static org.bukkit.plugin.PluginManager |
plugins() |
static org.bukkit.Server |
server() |
static <T> Optional<T> |
service(Class<T> clazz) |
static <T> T |
serviceNullable(Class<T> clazz) |
static org.bukkit.plugin.ServicesManager |
services() |
static Optional<org.bukkit.World> |
world(String name) |
static org.bukkit.World |
worldNullable(String name) |
public static HelperPlugin hostPlugin()
public static org.bukkit.Server server()
public static org.bukkit.command.ConsoleCommandSender console()
public static org.bukkit.plugin.PluginManager plugins()
public static org.bukkit.plugin.ServicesManager services()
public static org.bukkit.scheduler.BukkitScheduler bukkitScheduler()
public static void executeCommand(String command)
Copyright © 2022. All rights reserved.