public class TabAPI
extends org.bukkit.plugin.java.JavaPlugin
implements org.bukkit.event.Listener
| Constructor and Description |
|---|
TabAPI() |
| Modifier and Type | Method and Description |
|---|---|
static void |
clearTab(org.bukkit.entity.Player p)
Clear a players tab menu
|
static void |
disableTabForPlayer(org.bukkit.entity.Player p)
Returns the tab list to the vanilla tab list for a player.
|
void |
onDisable() |
void |
onEnable() |
void |
PlayerJoin(org.bukkit.event.player.PlayerJoinEvent e) |
void |
PlayerLeave(org.bukkit.event.player.PlayerQuitEvent e) |
static void |
resetTabList(org.bukkit.entity.Player p)
Resets tab to normal tab.
|
static void |
setPriority(org.bukkit.plugin.Plugin plugin,
org.bukkit.entity.Player player,
int pri)
Priorities
-2 = no longer active, remove
-1 = background, only show if nothing else is there
0 = normal
1 = high priority
2 = always show, only use if MUST show
|
static void |
setTabString(org.bukkit.plugin.Plugin plugin,
org.bukkit.entity.Player p,
int x,
int y,
java.lang.String msg)
Set the tab for a player.
|
static void |
updateAll() |
static void |
updatePlayer(org.bukkit.entity.Player p)
Updates a players tab
A tab will be updated with the tab from the highest priority plugin
|
getCommand, getConfig, getDatabase, getDatabaseClasses, getDataFolder, getDefaultWorldGenerator, getDescription, getLogger, getPluginLoader, getResource, getServer, isEnabled, isInitialized, isNaggable, onCommand, onLoad, onTabComplete, reloadConfig, saveConfig, saveDefaultConfig, saveResource, setNaggable, toStringpublic void onEnable()
onEnable in interface org.bukkit.plugin.PluginonEnable in class org.bukkit.plugin.java.JavaPluginpublic void onDisable()
onDisable in interface org.bukkit.plugin.PluginonDisable in class org.bukkit.plugin.java.JavaPluginpublic static void setPriority(org.bukkit.plugin.Plugin plugin,
org.bukkit.entity.Player player,
int pri)
public static void disableTabForPlayer(org.bukkit.entity.Player p)
p - public static void resetTabList(org.bukkit.entity.Player p)
p - public static void setTabString(org.bukkit.plugin.Plugin plugin,
org.bukkit.entity.Player p,
int x,
int y,
java.lang.String msg)
plugin - p - x - y - msg - public static void updatePlayer(org.bukkit.entity.Player p)
p - public static void clearTab(org.bukkit.entity.Player p)
p - public static void updateAll()
public void PlayerJoin(org.bukkit.event.player.PlayerJoinEvent e)
public void PlayerLeave(org.bukkit.event.player.PlayerQuitEvent e)