|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.bukkit.plugin.java.JavaPlugin
org.mudcraft.bukkit.socials.Socials
public class Socials
The MUDCraft.org Socials plug-in.
Constructor Summary | |
---|---|
Socials()
|
Method Summary | |
---|---|
java.util.List<java.lang.Class<?>> |
getDatabaseClasses()
|
SocialUser |
loadOrCreateSocialUser(org.bukkit.entity.Player player)
Searches for a SocialUser by player. |
SocialUser |
loadOrCreateSocialUser(java.lang.String playerName)
Searches for a SocialUser by name. |
Social |
loadSocial(java.lang.String socialName)
Searches for a Social by name. |
Social[] |
loadSocials()
Gets the defined Social s. |
SocialUser |
loadSocialUser(org.bukkit.entity.Player player)
Searches for a SocialUser by player. |
SocialUser |
loadSocialUser(java.lang.String playerName)
Searches for a SocialUser by name. |
SocialUser[] |
loadSocialUsers()
Gets the defined SocialUser s. |
static java.util.logging.Logger |
logger()
Gets a suitable logger for this class. |
Message |
newMessage()
Creates a new Message . |
Message |
newMessage(java.lang.String formatSpecifier)
Creates a new Message . |
void |
onDisable()
|
void |
onEnable()
|
void |
saveSocial(Social social)
Saves a Social . |
void |
saveSocialUser(SocialUser user)
Saves a SocialUser . |
Methods inherited from class org.bukkit.plugin.java.JavaPlugin |
---|
getCommand, getConfiguration, getDatabase, getDataFolder, getDescription, getPluginLoader, getServer, isEnabled, isInitialized, isNaggable, onCommand, onLoad, setNaggable |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Socials()
Method Detail |
---|
public static java.util.logging.Logger logger()
Logger
objectpublic java.util.List<java.lang.Class<?>> getDatabaseClasses()
getDatabaseClasses
in class org.bukkit.plugin.java.JavaPlugin
public SocialUser loadOrCreateSocialUser(org.bukkit.entity.Player player)
SocialUser
by player.
If the specified Player
does not have a corresponding
SocialUser
, one is created.
player
- the Player
for which the SocialUser
is to be gotten
SocialUser
loadOrCreateSocialUser(String)
public SocialUser loadOrCreateSocialUser(java.lang.String playerName)
SocialUser
by name.
If the Player
indicated by the specified name does not
have a corresponding SocialUser
, one is created.
playerName
- the name of the Player
for which the
SocialUser
to be gotten
SocialUser
or null
loadOrCreateSocialUser(Player)
public Social loadSocial(java.lang.String socialName)
Social
by name.
socialName
- the name of the Social
to be gotten
Social
or null
loadSocials()
public Social[] loadSocials()
Social
s.
Social
sloadSocial(String)
public SocialUser loadSocialUser(org.bukkit.entity.Player player)
SocialUser
by player.
player
- the Player
for which the SocialUser
is to be gotten
SocialUser
or null
loadSocialUser(String)
,
loadSocialUsers()
public SocialUser loadSocialUser(java.lang.String playerName)
SocialUser
by name.
playerName
- the name of the Player
for which the
SocialUser
to be gotten
SocialUser
or null
loadSocialUser(Player)
,
loadSocialUsers()
public SocialUser[] loadSocialUsers()
SocialUser
s.
SocialUser
sloadSocialUser(Player)
,
loadSocialUser(String)
public Message newMessage()
Message
.
Message
objectnewMessage(String)
public Message newMessage(java.lang.String formatSpecifier)
Message
.
formatSpecifier
- the new message's format specifier
Message
objectnewMessage()
public void onDisable()
public void onEnable()
public void saveSocial(Social social)
Social
.
social
- the Social
to be savedloadSocial(String)
,
loadSocials()
public void saveSocialUser(SocialUser user)
SocialUser
.
user
- the SocialUser
to be savedloadSocialUser(Player)
,
loadSocialUser(String)
,
loadSocialUsers()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |