com.dillyg10.STAB
Class STAB

java.lang.Object
  extended by org.bukkit.plugin.PluginBase
      extended by org.bukkit.plugin.java.JavaPlugin
          extended by com.dillyg10.STAB.STAB
All Implemented Interfaces:
org.bukkit.command.CommandExecutor, org.bukkit.command.TabCompleter, org.bukkit.command.TabExecutor, org.bukkit.plugin.Plugin

public class STAB
extends org.bukkit.plugin.java.JavaPlugin

Main plugin class Simple Tab API for Bukkit

Author:
dillyg10.

Field Summary
static STAB stab
          Instance of the class
 
Constructor Summary
STAB()
           
 
Method Summary
static void clearLastTabForPlayer(org.bukkit.entity.Player p)
          Clears the tab list for a player PLEASE ONLY USE WHEN NEEDED!
static TabObject getTabForPlayer(org.bukkit.entity.Player p)
          Get the tab object for a player
 java.util.List<TabObject> getTabsForPlugin(org.bukkit.plugin.Plugin p)
          Get all the TabObjects associated with a pluign
 void onEnable()
           
static void sendTabToAll(TabObject o)
          Send a tab object to all players
static void sendTabToAllInWorld(TabObject o, org.bukkit.World w)
          Sends a tab object to all players in a specific world
static void sendTabToAllInWorldWithPermission(TabObject o, org.bukkit.World w, java.lang.String permission)
          Sends a tab object to all players with a specific permission in a specific world
static void sendTabToPlayer(TabObject o, org.bukkit.entity.Player p)
          Sends a TabObject to a single player
static void sentTabToAllWithPermission(TabObject o, java.lang.String permission)
          Sends all the players the tab object with a specific permission
 
Methods inherited from class org.bukkit.plugin.java.JavaPlugin
getCommand, getConfig, getDatabase, getDatabaseClasses, getDataFolder, getDefaultWorldGenerator, getDescription, getLogger, getPluginLoader, getResource, getServer, isEnabled, isInitialized, isNaggable, onCommand, onDisable, onLoad, onTabComplete, reloadConfig, saveConfig, saveDefaultConfig, saveResource, setNaggable, toString
 
Methods inherited from class org.bukkit.plugin.PluginBase
equals, getName, hashCode
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

stab

public static STAB stab
Instance of the class

Constructor Detail

STAB

public STAB()
Method Detail

onEnable

public void onEnable()
Specified by:
onEnable in interface org.bukkit.plugin.Plugin
Overrides:
onEnable in class org.bukkit.plugin.java.JavaPlugin

getTabsForPlugin

public java.util.List<TabObject> getTabsForPlugin(org.bukkit.plugin.Plugin p)
Get all the TabObjects associated with a pluign

Parameters:
p - The plugin
Returns:
A blank ArrayList if the plugin isn't in the map, or all of the TabObjects

getTabForPlayer

public static TabObject getTabForPlayer(org.bukkit.entity.Player p)
Get the tab object for a player

Parameters:
p - The player
Returns:
Tab Object for a player

sendTabToAll

public static void sendTabToAll(TabObject o)
Send a tab object to all players

Parameters:
o - The TabObject

sendTabToAllInWorld

public static void sendTabToAllInWorld(TabObject o,
                                       org.bukkit.World w)
Sends a tab object to all players in a specific world

Parameters:
o - The TabObject
w - The World

sendTabToAllInWorldWithPermission

public static void sendTabToAllInWorldWithPermission(TabObject o,
                                                     org.bukkit.World w,
                                                     java.lang.String permission)
Sends a tab object to all players with a specific permission in a specific world

Parameters:
o - The TabObject
w - The World
permission - The permission node

sentTabToAllWithPermission

public static void sentTabToAllWithPermission(TabObject o,
                                              java.lang.String permission)
Sends all the players the tab object with a specific permission

Parameters:
o - The TabObject
permission - The permission node

clearLastTabForPlayer

public static void clearLastTabForPlayer(org.bukkit.entity.Player p)
Clears the tab list for a player PLEASE ONLY USE WHEN NEEDED!

Parameters:
p - The Player

sendTabToPlayer

public static void sendTabToPlayer(TabObject o,
                                   org.bukkit.entity.Player p)
Sends a TabObject to a single player

Parameters:
o - The TabObject
p - The Player