Package com.earth2me.essentials
Class UserData
java.lang.Object
com.earth2me.essentials.PlayerExtension
com.earth2me.essentials.UserData
- All Implemented Interfaces:
IConf
- Direct Known Subclasses:
User
-
Field Summary
Fields inherited from class com.earth2me.essentials.PlayerExtension
base
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
_setAfk
(boolean set) void
addCommandCooldown
(Pattern pattern, Date expiresAt, boolean save) void
addPastUsername
(String username) boolean
final void
cleanup()
void
boolean
clearCommandCooldown
(Pattern pattern) void
getCommandCooldownExpiry
(String label) getConfigMap
(String node) getHomes()
getJail()
long
long
getKitTimestamp
(String name) long
long
long
long
int
getMails()
Deprecated.Mails are no longer just strings, this method is therefore misleading.getMoney()
boolean
getMuted()
long
long
getPowertool
(ItemStack stack) getPowertool
(Material material) int
boolean
hasHome()
boolean
boolean
boolean
boolean
hasUnlimited
(ItemStack stack) boolean
boolean
boolean
isAfk()
boolean
boolean
boolean
boolean
isIgnoredPlayer
(IUser user) boolean
isIgnoredPlayer
(String userName) Deprecated.boolean
isJailed()
boolean
boolean
isMuted()
boolean
isNPC()
boolean
boolean
boolean
boolean
boolean
final void
void
renameHome
(String name, String newName) final void
reset()
void
save()
void
setAcceptingPay
(boolean acceptingPay) void
setAutoTeleportEnabled
(boolean set) void
setBaltopExemptCache
(boolean baltopExempt) void
setConfigProperty
(String node, Object object) void
setConfigPropertyRaw
(String node, Object object) void
setGeoLocation
(String geolocation) void
setGodModeEnabled
(boolean set) void
void
setIgnoredPlayer
(IUser user, boolean set) void
setIgnoredPlayers
(List<String> players) Deprecated.void
setIgnoredPlayerUUIDs
(List<UUID> players) void
void
setJailed
(boolean set) void
setJailTimeout
(long time) void
setKitTimestamp
(String name, long time) void
setLastAccountName
(String lastAccountName) void
setLastHealTimestamp
(long time) void
setLastLocation
(Location loc) void
setLastLogin
(long time) void
setLastLogout
(long time) void
setLastMessageReplyRecipient
(boolean enabled) void
setLastTeleportTimestamp
(long time) void
void
setMailList
(ArrayList<MailMessage> messages) void
Deprecated.This method does not support the new mail system and will fail at runtime.void
setMoney
(BigDecimal value, boolean throwError) void
setMuted
(boolean set) void
setMuteReason
(String reason) void
setMuteTimeout
(long time) void
setNickname
(String nick) void
setNPC
(boolean set) void
setOnlineJailedTime
(long onlineJailed) void
setPowertool
(ItemStack stack, List<String> commandList) void
setPowerToolsEnabled
(boolean set) void
setPromptingClearConfirm
(boolean prompt) void
setPromptingPayConfirm
(boolean prompt) void
setShouting
(boolean shouting) void
setSocialSpyEnabled
(boolean status) void
setTeleportEnabled
(boolean set) void
setUnlimited
(ItemStack stack, boolean state) void
void
boolean
boolean
Methods inherited from class com.earth2me.essentials.PlayerExtension
getBase, getLocation, getOffline, getServer, getWorld, setBase
-
Field Details
-
ess
-
-
Constructor Details
-
UserData
-
-
Method Details
-
reset
public final void reset() -
cleanup
public final void cleanup() -
reloadConfig
public final void reloadConfig()- Specified by:
reloadConfig
in interfaceIConf
-
getMoney
-
setMoney
- Throws:
MaxMoneyException
-
getHome
-
hasValidHomes
public boolean hasValidHomes() -
getHome
-
getHomes
-
setHome
-
delHome
- Throws:
Exception
-
renameHome
- Throws:
Exception
-
hasHome
public boolean hasHome() -
hasHome
-
getNickname
-
setNickname
-
getUnlimited
-
hasUnlimited
-
setUnlimited
-
clearAllPowertools
public void clearAllPowertools() -
getPowertool
-
getPowertool
-
setPowertool
-
hasPowerTools
public boolean hasPowerTools() -
getLastLocation
-
setLastLocation
-
getLogoutLocation
-
setLogoutLocation
-
getLastTeleportTimestamp
public long getLastTeleportTimestamp() -
setLastTeleportTimestamp
public void setLastTeleportTimestamp(long time) -
getLastHealTimestamp
public long getLastHealTimestamp() -
setLastHealTimestamp
public void setLastHealTimestamp(long time) -
getJail
-
setJail
-
getMails
Deprecated.Mails are no longer just strings, this method is therefore misleading. -
setMails
Deprecated.This method does not support the new mail system and will fail at runtime. -
getMailAmount
public int getMailAmount() -
getUnreadMailAmount
public int getUnreadMailAmount() -
getMailMessages
-
setMailList
-
isTeleportEnabled
public boolean isTeleportEnabled() -
setTeleportEnabled
public void setTeleportEnabled(boolean set) -
isAutoTeleportEnabled
public boolean isAutoTeleportEnabled() -
setAutoTeleportEnabled
public void setAutoTeleportEnabled(boolean set) -
setIgnoredPlayers
Deprecated. -
setIgnoredPlayerUUIDs
-
isIgnoredPlayer
Deprecated. -
isIgnoredPlayer
-
_getIgnoredPlayers
-
setIgnoredPlayer
-
isGodModeEnabled
public boolean isGodModeEnabled() -
setGodModeEnabled
public void setGodModeEnabled(boolean set) -
getMuted
public boolean getMuted() -
isMuted
public boolean isMuted() -
setMuted
public void setMuted(boolean set) -
getMuteReason
-
setMuteReason
-
hasMuteReason
public boolean hasMuteReason() -
getMuteTimeout
public long getMuteTimeout() -
setMuteTimeout
public void setMuteTimeout(long time) -
isJailed
public boolean isJailed() -
setJailed
public void setJailed(boolean set) -
toggleJailed
public boolean toggleJailed() -
getJailTimeout
public long getJailTimeout() -
setJailTimeout
public void setJailTimeout(long time) -
getOnlineJailedTime
public long getOnlineJailedTime() -
setOnlineJailedTime
public void setOnlineJailedTime(long onlineJailed) -
getLastLogin
public long getLastLogin() -
setLastLogin
public void setLastLogin(long time) -
getLastLogout
public long getLastLogout() -
setLastLogout
public void setLastLogout(long time) -
getLastLoginAddress
-
isAfk
public boolean isAfk() -
_setAfk
public void _setAfk(boolean set) -
getGeoLocation
-
setGeoLocation
-
isSocialSpyEnabled
public boolean isSocialSpyEnabled() -
setSocialSpyEnabled
public void setSocialSpyEnabled(boolean status) -
isNPC
public boolean isNPC() -
setNPC
public void setNPC(boolean set) -
getLastAccountName
-
setLastAccountName
-
arePowerToolsEnabled
public boolean arePowerToolsEnabled() -
setPowerToolsEnabled
public void setPowerToolsEnabled(boolean set) -
togglePowerToolsEnabled
public boolean togglePowerToolsEnabled() -
getKitTimestamp
-
setKitTimestamp
-
getCooldownsList
-
getCommandCooldowns
-
getCommandCooldownExpiry
-
addCommandCooldown
-
clearCommandCooldown
-
isAcceptingPay
public boolean isAcceptingPay() -
setAcceptingPay
public void setAcceptingPay(boolean acceptingPay) -
isPromptingPayConfirm
public boolean isPromptingPayConfirm() -
setPromptingPayConfirm
public void setPromptingPayConfirm(boolean prompt) -
isPromptingClearConfirm
public boolean isPromptingClearConfirm() -
setPromptingClearConfirm
public void setPromptingClearConfirm(boolean prompt) -
isLastMessageReplyRecipient
public boolean isLastMessageReplyRecipient() -
setLastMessageReplyRecipient
public void setLastMessageReplyRecipient(boolean enabled) -
isBaltopExcludeCache
public boolean isBaltopExcludeCache() -
setBaltopExemptCache
public void setBaltopExemptCache(boolean baltopExempt) -
getPastUsernames
-
addPastUsername
-
isShouting
public boolean isShouting() -
setShouting
public void setShouting(boolean shouting) -
getConfigUUID
-
save
public void save() -
startTransaction
public void startTransaction() -
stopTransaction
public void stopTransaction() -
setConfigProperty
-
setConfigPropertyRaw
-
getConfigKeys
-
getConfigMap
-
getConfigMap
-