org.bukkit.event.Listener
public final class CrazyAdvancements
extends org.bukkit.plugin.java.JavaPlugin
implements org.bukkit.event.Listener
Modifier and Type | Field | Description |
---|---|---|
static java.util.UUID |
CHAT_MESSAGE_UUID |
Constructor | Description |
---|---|
CrazyAdvancements() |
Modifier and Type | Method | Description |
---|---|---|
static void |
clearActiveTab(org.bukkit.entity.Player player) |
Clears the active tab
|
static NameKey |
getActiveTab(org.bukkit.entity.Player player) |
|
static java.util.ArrayList<org.bukkit.entity.Player> |
getInitiatedPlayers() |
|
static CrazyAdvancements |
getInstance() |
|
static AdvancementManager |
getNewAdvancementManager(org.bukkit.entity.Player... players) |
Deprecated.
Use the AdvancementManager constructor instead of this method
|
static boolean |
isAnnounceAdvancementMessages() |
|
static boolean |
isUseUUID() |
|
boolean |
onCommand(org.bukkit.command.CommandSender sender,
org.bukkit.command.Command cmd,
java.lang.String label,
java.lang.String[] args) |
|
void |
onDisable() |
|
void |
onEnable() |
|
void |
onJoin(org.bukkit.event.player.PlayerJoinEvent e) |
|
void |
onLoad() |
|
java.util.List<java.lang.String> |
onTabComplete(org.bukkit.command.CommandSender sender,
org.bukkit.command.Command cmd,
java.lang.String alias,
java.lang.String[] args) |
|
void |
quit(org.bukkit.event.player.PlayerQuitEvent e) |
|
static void |
setActiveTab(org.bukkit.entity.Player player,
NameKey rootAdvancement) |
Sets the active tab
|
static void |
setActiveTab(org.bukkit.entity.Player player,
java.lang.String rootAdvancement) |
Sets the active tab
|
static void |
setAnnounceAdvancementMessages(boolean announceAdvancementMessages) |
Changes if advancement messages should be shown by default
|
getCommand, getConfig, getDataFolder, getDefaultWorldGenerator, getDescription, getLogger, getPlugin, getPluginLoader, getProvidingPlugin, getResource, getServer, isEnabled, isNaggable, reloadConfig, saveConfig, saveDefaultConfig, saveResource, setNaggable, toString
public void onLoad()
onLoad
in class org.bukkit.plugin.java.JavaPlugin
public void onEnable()
onEnable
in class org.bukkit.plugin.java.JavaPlugin
public void onDisable()
onDisable
in class org.bukkit.plugin.java.JavaPlugin
@Deprecated(since="1.13.10") public static AdvancementManager getNewAdvancementManager(org.bukkit.entity.Player... players)
players
- All players that should be in the new manager from the start, can be changed at any timepublic static void clearActiveTab(org.bukkit.entity.Player player)
player
- The player whose Tab should be clearedpublic static void setActiveTab(org.bukkit.entity.Player player, java.lang.String rootAdvancement)
player
- The player whose Tab should be changedrootAdvancement
- The name of the tab to change topublic static void setActiveTab(org.bukkit.entity.Player player, @Nullable NameKey rootAdvancement)
player
- The player whose Tab should be changedrootAdvancement
- The name of the tab to change topublic static NameKey getActiveTab(org.bukkit.entity.Player player)
player
- Player to checkpublic void onJoin(org.bukkit.event.player.PlayerJoinEvent e)
public void quit(org.bukkit.event.player.PlayerQuitEvent e)
public static java.util.ArrayList<org.bukkit.entity.Player> getInitiatedPlayers()
public static CrazyAdvancements getInstance()
public static boolean isAnnounceAdvancementMessages()
public static void setAnnounceAdvancementMessages(boolean announceAdvancementMessages)
announceAdvancementMessages
- public static boolean isUseUUID()
public boolean onCommand(org.bukkit.command.CommandSender sender, org.bukkit.command.Command cmd, java.lang.String label, java.lang.String[] args)
onCommand
in class org.bukkit.plugin.java.JavaPlugin
public java.util.List<java.lang.String> onTabComplete(org.bukkit.command.CommandSender sender, org.bukkit.command.Command cmd, java.lang.String alias, java.lang.String[] args)
onTabComplete
in class org.bukkit.plugin.java.JavaPlugin