Package com.earth2me.essentials
Interface IUser
- All Known Subinterfaces:
IUser
- All Known Implementing Classes:
User
Deprecated.
Provides access to the user abstraction and stored data. Maintainers should add methods to this interface.
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addCommandCooldown
(Pattern pattern, Date expiresAt, boolean save) Deprecated.void
Deprecated.void
addPastUsername
(String username) Deprecated.boolean
canAfford
(BigDecimal value) Deprecated.boolean
canBuild()
Deprecated.canSpawnItem
(Material material) Deprecated.boolean
clearCommandCooldown
(Pattern pattern) Deprecated.void
Deprecated.void
Deprecated.Deprecated.long
Deprecated.Deprecated.getBase()
Deprecated.getCommandCooldownExpiry
(String label) Deprecated.Deprecated.Deprecated.Deprecated.getConfigMap
(String node) Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.getGroup()
Deprecated.Deprecated.Deprecated.getHomes()
Deprecated.getJail()
Deprecated.Deprecated.long
Deprecated.Deprecated.int
Deprecated.Deprecated.getMails()
Deprecated.getMoney()
Deprecated.getName()
Deprecated.@Nullable IUser.TpaRequest
getNextTpaRequest
(boolean inform, boolean ignoreExpirations, boolean excludeHere) Deprecated.Gets information about the most-recently-made, non-expired TPA request in the tpa queue of thisIUser
.Deprecated.Deprecated.getTargetBlock
(int maxDistance) Deprecated.Deprecated.This API is not asynchronous.long
Deprecated.The teleport request system has been moved into a multi-user teleport request queue.getUUID()
Deprecated.void
giveMoney
(BigDecimal value) Deprecated.void
giveMoney
(BigDecimal value, CommandSource initiator) Deprecated.boolean
hasHome()
Deprecated.boolean
Deprecated.boolean
Deprecated.The teleport request system has been moved into a multi-user teleport request queue.boolean
hasPendingTpaRequests
(boolean inform, boolean excludeHere) Deprecated.Whether or not thisIUser
has any valid TPA requests in queue.void
Deprecated.boolean
Deprecated.boolean
Deprecated.boolean
isAfk()
Deprecated.boolean
Deprecated.boolean
isAuthorized
(IEssentialsCommand cmd, String permissionPrefix) Deprecated.boolean
isAuthorized
(String node) Deprecated.boolean
isFreeze()
Deprecated.boolean
Deprecated.boolean
isHidden()
Deprecated.'Hidden' Represents when a player is hidden from others.boolean
Deprecated.boolean
Deprecated.boolean
Deprecated.boolean
Deprecated.Whether the user was hidden before leaving the server.boolean
isPermissionSet
(String node) Deprecated.boolean
Deprecated.boolean
Deprecated.boolean
Deprecated.boolean
Deprecated.'Vanished' Represents when a player is hidden from others by Essentials.void
payUser
(User reciever, BigDecimal value) Deprecated.Deprecated.void
renameHome
(String name, String newName) Deprecated.void
requestTeleport
(User player, boolean here) Deprecated.void
Deprecated.void
sendComponent
(net.kyori.adventure.text.ComponentLike component) Deprecated.void
sendMail
(MailSender sender, String message) Deprecated.void
sendMail
(MailSender sender, String message, long expireAt) Deprecated.void
sendMessage
(String message) Deprecated.void
Deprecated.void
setAcceptingPay
(boolean acceptingPay) Deprecated.void
setAfk
(boolean set) Deprecated.void
setAfk
(boolean set, AfkStatusChangeEvent.Cause cause) Deprecated.void
setAfkMessage
(String message) Deprecated.void
setConfigProperty
(String node, Object object) Deprecated.void
setFreeze
(boolean freeze) Deprecated.void
setHidden
(boolean vanish) Deprecated.void
Deprecated.void
setIgnoreMsg
(boolean ignoreMsg) Deprecated.void
Deprecated.void
Deprecated.void
setLastMessageReplyRecipient
(boolean enabled) Deprecated.void
setLastTeleportTimestamp
(long time) Deprecated.void
setLeavingHidden
(boolean leavingHidden) Deprecated.void
Deprecated.void
setMailList
(ArrayList<MailMessage> messages) Deprecated.void
setMoney
(BigDecimal value) Deprecated.void
setPromptingClearConfirm
(boolean prompt) Deprecated.void
setPromptingPayConfirm
(boolean prompt) Deprecated.void
setToggleShout
(boolean toggleShout) Deprecated.void
setVanished
(boolean vanish) Deprecated.void
takeMoney
(BigDecimal value) Deprecated.void
takeMoney
(BigDecimal value, CommandSource initiator) Deprecated.net.kyori.adventure.text.Component
tlComponent
(String tlKey, Object... args) Deprecated.
-
Method Details
-
isAuthorized
Deprecated. -
isAuthorized
Deprecated. -
isAuthorized
Deprecated. -
isPermissionSet
Deprecated. -
healCooldown
Deprecated.- Throws:
Exception
-
giveMoney
Deprecated.- Throws:
MaxMoneyException
-
giveMoney
Deprecated.- Throws:
MaxMoneyException
-
payUser
Deprecated.- Throws:
Exception
-
takeMoney
Deprecated. -
takeMoney
Deprecated. -
canAfford
Deprecated. -
canSpawnItem
Deprecated. -
setLastLocation
void setLastLocation()Deprecated. -
setLogoutLocation
void setLogoutLocation()Deprecated. -
requestTeleport
Deprecated. -
hasOutstandingTeleportRequest
Deprecated.The teleport request system has been moved into a multi-user teleport request queue.Returns whether this user has an outstanding teleport request to deal with.- Returns:
- whether there is a teleport request
- See Also:
-
getTeleport
Deprecated.This API is not asynchronous. UseIAsyncTeleport
withgetAsyncTeleport()
-
getAsyncTeleport
IAsyncTeleport getAsyncTeleport()Deprecated. -
getMoney
BigDecimal getMoney()Deprecated. -
setMoney
Deprecated.- Throws:
MaxMoneyException
-
setAfk
Deprecated. -
isHidden
boolean isHidden()Deprecated.'Hidden' Represents when a player is hidden from others. This status includes when the player is hidden via other supported plugins. Use isVanished() if you want to check if a user is vanished by Essentials.- Returns:
- If the user is hidden or not
- See Also:
-
isLeavingHidden
boolean isLeavingHidden()Deprecated.Whether the user was hidden before leaving the server.- Returns:
- true if the user was hidden.
-
setLeavingHidden
void setLeavingHidden(boolean leavingHidden) Deprecated. -
setHidden
void setHidden(boolean vanish) Deprecated. -
isGodModeEnabled
boolean isGodModeEnabled()Deprecated. -
getGroup
String getGroup()Deprecated. -
inGroup
Deprecated. -
canBuild
boolean canBuild()Deprecated. -
getTeleportRequestTime
Deprecated.The teleport request system has been moved into a multi-user teleport request queue.- See Also:
-
enableInvulnerabilityAfterTeleport
void enableInvulnerabilityAfterTeleport()Deprecated. -
resetInvulnerabilityAfterTeleport
void resetInvulnerabilityAfterTeleport()Deprecated. -
hasInvulnerabilityAfterTeleport
boolean hasInvulnerabilityAfterTeleport()Deprecated. -
isVanished
boolean isVanished()Deprecated.'Vanished' Represents when a player is hidden from others by Essentials. This status does NOT include when the player is hidden via other plugins. Use isHidden() if you want to check if a user is vanished by any supported plugin.- Returns:
- If the user is vanished or not
- See Also:
-
setVanished
void setVanished(boolean vanish) Deprecated. -
isIgnoreExempt
boolean isIgnoreExempt()Deprecated. -
sendMessage
Deprecated. -
sendComponent
void sendComponent(net.kyori.adventure.text.ComponentLike component) Deprecated. -
tlComponent
Deprecated. -
playerTl
Deprecated. -
sendTl
Deprecated. -
getHome
Deprecated.- Throws:
Exception
-
getHome
Deprecated.- Throws:
Exception
-
getHomes
Deprecated. -
setHome
Deprecated. -
delHome
Deprecated.- Throws:
Exception
-
renameHome
Deprecated.- Throws:
Exception
-
hasHome
boolean hasHome()Deprecated. -
getLastLocation
Location getLastLocation()Deprecated. -
getLogoutLocation
Location getLogoutLocation()Deprecated. -
getLastTeleportTimestamp
long getLastTeleportTimestamp()Deprecated. -
setLastTeleportTimestamp
void setLastTeleportTimestamp(long time) Deprecated. -
getJail
String getJail()Deprecated. -
setJail
Deprecated. -
getFormattedJailTime
String getFormattedJailTime()Deprecated. -
getMails
Deprecated. -
addMail
Deprecated. -
sendMail
Deprecated. -
sendMail
Deprecated. -
getMailMessages
ArrayList<MailMessage> getMailMessages()Deprecated. -
setMailList
Deprecated. -
getMailAmount
int getMailAmount()Deprecated. -
isAfk
boolean isAfk()Deprecated. -
setAfk
Deprecated. -
isIgnoreMsg
boolean isIgnoreMsg()Deprecated. -
setIgnoreMsg
void setIgnoreMsg(boolean ignoreMsg) Deprecated. -
setConfigProperty
Deprecated. -
getConfigKeys
Deprecated. -
getConfigMap
Deprecated. -
getConfigMap
Deprecated. -
getCommandCooldowns
Deprecated. -
getCooldownsList
List<CommandCooldown> getCooldownsList()Deprecated. -
getCommandCooldownExpiry
Deprecated. -
addCommandCooldown
Deprecated. -
clearCommandCooldown
Deprecated. -
getBase
Player getBase()Deprecated. -
getSource
CommandSource getSource()Deprecated. -
getName
String getName()Deprecated. -
getUUID
UUID getUUID()Deprecated. -
getDisplayName
String getDisplayName()Deprecated. -
getFormattedNickname
String getFormattedNickname()Deprecated. -
getAfkMessage
String getAfkMessage()Deprecated. -
setAfkMessage
Deprecated. -
getAfkSince
long getAfkSince()Deprecated. -
isAcceptingPay
boolean isAcceptingPay()Deprecated. -
setAcceptingPay
void setAcceptingPay(boolean acceptingPay) Deprecated. -
isPromptingPayConfirm
boolean isPromptingPayConfirm()Deprecated. -
setPromptingPayConfirm
void setPromptingPayConfirm(boolean prompt) Deprecated. -
isPromptingClearConfirm
boolean isPromptingClearConfirm()Deprecated. -
setPromptingClearConfirm
void setPromptingClearConfirm(boolean prompt) Deprecated. -
isLastMessageReplyRecipient
boolean isLastMessageReplyRecipient()Deprecated. -
setLastMessageReplyRecipient
void setLastMessageReplyRecipient(boolean enabled) Deprecated. -
getConfirmingPayments
Map<User,BigDecimal> getConfirmingPayments()Deprecated. -
getTargetBlock
Deprecated. -
setToggleShout
void setToggleShout(boolean toggleShout) Deprecated. -
isToggleShout
boolean isToggleShout()Deprecated. -
getNextTpaRequest
@Nullable IUser.TpaRequest getNextTpaRequest(boolean inform, boolean ignoreExpirations, boolean excludeHere) Deprecated.Gets information about the most-recently-made, non-expired TPA request in the tpa queue of thisIUser
.The TPA Queue is Last-In-First-Out queue which stores all the active pending teleport requests of this
IUser
. Timeout calculations are also done during the iteration process of this method, ensuring that teleport requests made past the timeout period are removed from queue and therefore not returned here. The maximum size of this queue is determined byISettings.getTpaMaxRequests()
.- Parameters:
inform
- true if the underlyingIUser
should be informed if a request expires during iteration.ignoreExpirations
- true if this method should not process expirations for the entire queue and stop execution on the first unexpired request.excludeHere
- true if /tphere requests should be ignored in fetching the next tpa request.- Returns:
- A
IUser.TpaRequest
corresponding to the next available request or null if no valid request is present.
-
hasPendingTpaRequests
boolean hasPendingTpaRequests(boolean inform, boolean excludeHere) Deprecated.Whether or not thisIUser
has any valid TPA requests in queue.- Parameters:
inform
- true if the user should be informed if a request expires during iteration.excludeHere
- true if /tpahere requests should be ignored in checking if a tpa request is available.- Returns:
- true if the user has an available pending request in queue.
-
getPastUsernames
Deprecated. -
addPastUsername
Deprecated. -
isFreeze
boolean isFreeze()Deprecated. -
setFreeze
void setFreeze(boolean freeze) Deprecated.
-
IUser
instead of this interface, in case future APIs are added.