public class WauzCore
extends org.bukkit.plugin.java.JavaPlugin
Modifier and Type | Field and Description |
---|---|
private static net.kyori.adventure.platform.bukkit.BukkitAudiences |
audiences
The audience provider for adventure components.
|
private static WauzDiscordBot |
discordBot
The Discord bot running on the server.
|
private static WauzDiscordLogFilter |
discordLogFilter
The filter used to listen to log records from Bukkit.
|
private static WauzCore |
instance
The instance of this class, that is created by the Minecraft server.
|
static int |
MAX_BREEDING_SKILL
The maximum breeding skill a player can reach in MMORPG mode.
|
static int |
MAX_CRAFTING_SKILL
The maximum crafting skill a player can reach in MMORPG mode.
|
static int |
MAX_PLAYER_LEVEL
The maximum level a player can reach in MMORPG mode.
|
static int |
MAX_PLAYER_LEVEL_SURVIVAL
The maximum level a player can reach in Survival mode.
|
private static WebServerManager |
webServerManager
The WebServerManager used for the web based API.
|
Constructor and Description |
---|
WauzCore() |
Modifier and Type | Method and Description |
---|---|
static net.kyori.adventure.platform.bukkit.BukkitAudiences |
getAudiences() |
static WauzDiscordBot |
getDiscordBot() |
static org.bukkit.Location |
getHubLocation() |
static WauzCore |
getInstance() |
static org.bukkit.OfflinePlayer |
getOfflinePlayer(java.lang.String name)
Finds an offline player by their name.
|
static org.bukkit.entity.Player |
getOnlinePlayer(java.lang.String name)
Finds an online player by their name.
|
static java.util.List<org.bukkit.entity.Player> |
getRegisteredActivePlayers()
Finds all players with cached player data.
|
static java.lang.String |
getServerKey() |
static int |
getWebApiPort() |
static WebServerManager |
getWebServerManager() |
boolean |
onCommand(org.bukkit.command.CommandSender sender,
org.bukkit.command.Command cmd,
java.lang.String label,
java.lang.String[] args)
Listens for incoming commands from the plugin.xml.
|
void |
onDisable()
Gets called when the server is stopped.
|
void |
onEnable()
Gets called when the server is started.
|
getClassLoader, getCommand, getConfig, getDataFolder, getDefaultWorldGenerator, getDescription, getFile, getLogger, getPlugin, getPluginLoader, getProvidingPlugin, getResource, getServer, getTextResource, isEnabled, isNaggable, onLoad, onTabComplete, reloadConfig, saveConfig, saveDefaultConfig, saveResource, setEnabled, setNaggable, toString
public static final int MAX_PLAYER_LEVEL
public static final int MAX_PLAYER_LEVEL_SURVIVAL
public static final int MAX_CRAFTING_SKILL
public static final int MAX_BREEDING_SKILL
private static WauzCore instance
private static net.kyori.adventure.platform.bukkit.BukkitAudiences audiences
private static WauzDiscordBot discordBot
private static WauzDiscordLogFilter discordLogFilter
private static WebServerManager webServerManager
public void onEnable()
onEnable
in interface org.bukkit.plugin.Plugin
onEnable
in class org.bukkit.plugin.java.JavaPlugin
public void onDisable()
onDisable
in interface org.bukkit.plugin.Plugin
onDisable
in class org.bukkit.plugin.java.JavaPlugin
public boolean onCommand(org.bukkit.command.CommandSender sender, org.bukkit.command.Command cmd, java.lang.String label, java.lang.String[] args)
onCommand
in interface org.bukkit.command.CommandExecutor
onCommand
in class org.bukkit.plugin.java.JavaPlugin
WauzCommandExecutor
public static WauzCore getInstance()
public static net.kyori.adventure.platform.bukkit.BukkitAudiences getAudiences()
public static WauzDiscordBot getDiscordBot()
public static WebServerManager getWebServerManager()
public static org.bukkit.Location getHubLocation()
public static java.util.List<org.bukkit.entity.Player> getRegisteredActivePlayers()
WauzPlayerDataPool
public static org.bukkit.entity.Player getOnlinePlayer(java.lang.String name)
name
- The name of the player.public static org.bukkit.OfflinePlayer getOfflinePlayer(java.lang.String name)
name
- The name of the player.public static java.lang.String getServerKey()
public static int getWebApiPort()