public abstract class MemoryFPlayer extends java.lang.Object implements FPlayer
| Modifier and Type | Field and Description |
|---|---|
protected Faction |
autoClaimFor |
protected boolean |
autoSafeZoneEnabled |
protected boolean |
autoWarZoneEnabled |
protected ChatMode |
chatMode |
protected int |
deaths |
protected boolean |
enteringPassword |
protected java.lang.String |
enteringPasswordWarp |
protected java.lang.String |
factionId |
protected java.lang.String |
id |
protected boolean |
ignoreAllianceChat |
boolean |
inVault |
protected boolean |
isAdminBypassing |
protected boolean |
isFlying |
protected boolean |
isStealthEnabled |
protected int |
kills |
protected long |
lastFrostwalkerMessage |
protected long |
lastLoginTime |
protected long |
lastPowerUpdateTime |
protected FLocation |
lastStoodAt |
protected boolean |
loginPvpDisabled |
protected boolean |
mapAutoUpdating |
protected int |
mapHeight |
protected boolean |
monitorJoins |
protected java.lang.String |
name |
protected double |
power |
protected double |
powerBoost |
protected Role |
role |
protected boolean |
shouldTakeFallDamage |
protected boolean |
showScoreboard |
protected boolean |
spyingChat |
protected java.lang.String |
title |
protected WarmUpUtil.Warmup |
warmup |
protected int |
warmupTask |
protected boolean |
willAutoLeave |
| Constructor and Description |
|---|
MemoryFPlayer() |
MemoryFPlayer(MemoryFPlayer other) |
MemoryFPlayer(java.lang.String id) |
| Modifier and Type | Method and Description |
|---|---|
void |
addWarmup(WarmUpUtil.Warmup warmup,
int taskId) |
void |
alterPower(double delta) |
boolean |
attemptClaim(Faction forFaction,
FLocation flocation,
boolean notifyFailure) |
boolean |
attemptClaim(Faction forFaction,
org.bukkit.Location location,
boolean notifyFailure) |
boolean |
canClaimForFaction(Faction forFaction) |
boolean |
canClaimForFactionAtLocation(Faction forFaction,
FLocation flocation,
boolean notifyFailure) |
boolean |
canClaimForFactionAtLocation(Faction forFaction,
org.bukkit.Location location,
boolean notifyFailure) |
boolean |
canFlyAtLocation() |
boolean |
canFlyAtLocation(FLocation location) |
java.lang.Boolean |
canflyinAlly() |
java.lang.Boolean |
canflyinEnemy() |
java.lang.Boolean |
canflyinNeutral() |
java.lang.Boolean |
canflyinSafezone() |
java.lang.Boolean |
canflyinTruce() |
java.lang.Boolean |
canflyinWarzone() |
java.lang.Boolean |
canflyinWilderness() |
boolean |
checkIfNearbyEnemies() |
void |
clearWarmup() |
java.lang.String |
describeTo(RelationParticipator that) |
java.lang.String |
describeTo(RelationParticipator that,
boolean ucfirst) |
java.lang.String |
getAccountId() |
Faction |
getAutoClaimFor() |
ChatMode |
getChatMode() |
java.lang.String |
getChatTag() |
java.lang.String |
getChatTag(Faction faction) |
java.lang.String |
getChatTag(FPlayer fplayer) |
java.lang.String |
getChatTag(MemoryFPlayer fplayer) |
org.bukkit.ChatColor |
getColorTo(RelationParticipator rp) |
int |
getDeaths() |
java.lang.String |
getEnteringWarp() |
Faction |
getFaction()
gets the faction of a FPlayer.
|
java.lang.String |
getFactionId()
Gets the faction ID of the player.
|
java.lang.String |
getId() |
int |
getKills() |
long |
getLastFrostwalkerMessage() |
long |
getLastLoginTime() |
FLocation |
getLastStoodAt() |
int |
getMapHeight() |
java.lang.String |
getName() |
java.lang.String |
getNameAndSomething(java.lang.String something) |
java.lang.String |
getNameAndTag() |
java.lang.String |
getNameAndTitle() |
java.lang.String |
getNameAndTitle(Faction faction) |
java.lang.String |
getNameAndTitle(FPlayer fplayer) |
java.lang.String |
getNameAndTitle(MemoryFPlayer fplayer) |
org.bukkit.entity.Player |
getPlayer() |
double |
getPower() |
double |
getPowerBoost() |
double |
getPowerMax() |
int |
getPowerMaxRounded() |
double |
getPowerMin() |
int |
getPowerMinRounded() |
int |
getPowerRounded() |
Relation |
getRelationTo(RelationParticipator rp) |
Relation |
getRelationTo(RelationParticipator rp,
boolean ignorePeaceful) |
Relation |
getRelationToLocation() |
Role |
getRole() |
java.lang.String |
getRolePrefix() |
java.lang.String |
getTag() |
java.lang.String |
getTitle() |
WarmUpUtil.Warmup |
getWarmupType() |
boolean |
hasFaction()
Check if a player has a faction
|
boolean |
hasLoginPvpDisabled() |
boolean |
hasMoney(int amt) |
void |
heal(int amnt) |
boolean |
isAdminBypassing() |
boolean |
isAutoSafeClaimEnabled() |
boolean |
isAutoWarClaimEnabled() |
boolean |
isEnteringPassword() |
boolean |
isFlying() |
boolean |
isIgnoreAllianceChat() |
boolean |
isInAllyTerritory() |
boolean |
isInEnemyTerritory() |
boolean |
isInNeutralTerritory() |
boolean |
isInOthersTerritory() |
boolean |
isInOwnTerritory() |
boolean |
isInspectMode() |
boolean |
isInVault() |
boolean |
isMapAutoUpdating() |
boolean |
isMonitoringJoins() |
boolean |
isOffline() |
boolean |
isOnline() |
boolean |
isOnlineAndVisibleTo(org.bukkit.entity.Player player) |
boolean |
isSpyingChat() |
boolean |
isStealthEnabled()
Used to know if stealth is toggled on or off
|
boolean |
isVanished() |
boolean |
isWarmingUp() |
void |
leave(boolean makePay) |
void |
login()
Sets the kills and deaths of a player.
|
void |
logout()
Caches the kills and deaths of a player.
|
void |
losePowerFromBeingOffline() |
void |
msg(java.lang.String str,
java.lang.Object... args) |
void |
msg(TL translation,
java.lang.Object... args) |
void |
onDeath() |
abstract void |
remove() |
void |
resetFactionData() |
void |
resetFactionData(boolean doSpoutUpdate) |
void |
sendFactionHereMessage(Faction from) |
void |
sendFancyMessage(mkremins.fanciful.FancyMessage message) |
void |
sendFancyMessage(java.util.List<mkremins.fanciful.FancyMessage> messages) |
void |
sendMessage(java.util.List<java.lang.String> msgs) |
void |
sendMessage(java.lang.String msg) |
void |
setAutoClaimFor(Faction faction) |
void |
setAutoLeave(boolean willLeave) |
void |
setChatMode(ChatMode chatMode) |
void |
setEnteringPassword(boolean toggle,
java.lang.String warp) |
void |
setFaction(Faction faction)
Sets the faction of the FPlayer
|
void |
setFFlying(boolean fly,
boolean damage) |
void |
setFlying(boolean fly) |
void |
setId(java.lang.String id) |
void |
setIgnoreAllianceChat(boolean ignore) |
void |
setInspectMode(boolean status) |
void |
setInVault(boolean status) |
void |
setIsAdminBypassing(boolean val) |
void |
setIsAutoSafeClaimEnabled(boolean enabled) |
void |
setIsAutoWarClaimEnabled(boolean enabled) |
void |
setLastFrostwalkerMessage() |
void |
setLastLoginTime(long lastLoginTime) |
void |
setLastStoodAt(FLocation flocation) |
void |
setMapAutoUpdating(boolean mapAutoUpdating) |
void |
setMapHeight(int height) |
void |
setMonitorJoins(boolean monitor) |
void |
setName(java.lang.String name) |
void |
setPowerBoost(double powerBoost) |
void |
setRole(Role role) |
void |
setShowScoreboard(boolean show) |
void |
setSpyingChat(boolean chatSpying) |
void |
setStealth(boolean stealth)
Toggles the stealth of the FPlayer depending on the parameter
|
void |
setTakeFallDamage(boolean fallDamage) |
void |
setTitle(org.bukkit.command.CommandSender sender,
java.lang.String title) |
boolean |
shouldBeSaved() |
boolean |
shouldTakeFallDamage() |
boolean |
showInfoBoard(Faction toShow)
Check if the scoreboard should be shown.
|
boolean |
showScoreboard() |
void |
stopWarmup() |
void |
takeMoney(int amt) |
void |
updatePower() |
boolean |
willAutoLeave()
Gets autoleave status
|
public boolean inVault
protected java.lang.String factionId
protected Role role
protected java.lang.String title
protected double power
protected double powerBoost
protected long lastPowerUpdateTime
protected long lastLoginTime
protected ChatMode chatMode
protected boolean ignoreAllianceChat
protected java.lang.String id
protected java.lang.String name
protected boolean monitorJoins
protected boolean spyingChat
protected boolean showScoreboard
protected WarmUpUtil.Warmup warmup
protected int warmupTask
protected boolean isAdminBypassing
protected int kills
protected int deaths
protected boolean willAutoLeave
protected int mapHeight
protected boolean isFlying
protected boolean enteringPassword
protected java.lang.String enteringPasswordWarp
protected transient FLocation lastStoodAt
protected transient boolean mapAutoUpdating
protected transient Faction autoClaimFor
protected transient boolean autoSafeZoneEnabled
protected transient boolean autoWarZoneEnabled
protected transient boolean loginPvpDisabled
protected transient long lastFrostwalkerMessage
protected transient boolean shouldTakeFallDamage
protected boolean isStealthEnabled
public MemoryFPlayer()
public MemoryFPlayer(java.lang.String id)
public MemoryFPlayer(MemoryFPlayer other)
public boolean isStealthEnabled()
FPlayerisStealthEnabled in interface FPlayerpublic void setStealth(boolean stealth)
FPlayersetStealth in interface FPlayerstealth - - toggles stealthpublic void login()
FPlayerpublic void logout()
FPlayerpublic Faction getFaction()
FPlayergetFaction in interface FPlayerpublic void setFaction(Faction faction)
FPlayersetFaction in interface FPlayerfaction - faction to set.public java.lang.String getFactionId()
FPlayergetFactionId in interface FPlayerpublic boolean hasFaction()
FPlayerhasFaction in interface FPlayerpublic void setMonitorJoins(boolean monitor)
setMonitorJoins in interface FPlayerpublic boolean isMonitoringJoins()
isMonitoringJoins in interface FPlayerpublic double getPowerBoost()
getPowerBoost in interface FPlayerpublic void setPowerBoost(double powerBoost)
setPowerBoost in interface FPlayerpublic boolean willAutoLeave()
FPlayerwillAutoLeave in interface FPlayerpublic void setAutoLeave(boolean willLeave)
setAutoLeave in interface FPlayerpublic long getLastFrostwalkerMessage()
getLastFrostwalkerMessage in interface FPlayerpublic void setLastFrostwalkerMessage()
setLastFrostwalkerMessage in interface FPlayerpublic Faction getAutoClaimFor()
getAutoClaimFor in interface FPlayerpublic void setAutoClaimFor(Faction faction)
setAutoClaimFor in interface FPlayerpublic boolean isAutoSafeClaimEnabled()
isAutoSafeClaimEnabled in interface FPlayerpublic void setIsAutoSafeClaimEnabled(boolean enabled)
setIsAutoSafeClaimEnabled in interface FPlayerpublic boolean isAutoWarClaimEnabled()
isAutoWarClaimEnabled in interface FPlayerpublic void setIsAutoWarClaimEnabled(boolean enabled)
setIsAutoWarClaimEnabled in interface FPlayerpublic boolean isAdminBypassing()
isAdminBypassing in interface FPlayerpublic boolean isVanished()
isVanished in interface FPlayerpublic void setIsAdminBypassing(boolean val)
setIsAdminBypassing in interface FPlayerpublic ChatMode getChatMode()
getChatMode in interface FPlayerpublic void setChatMode(ChatMode chatMode)
setChatMode in interface FPlayerpublic boolean isIgnoreAllianceChat()
isIgnoreAllianceChat in interface FPlayerpublic void setIgnoreAllianceChat(boolean ignore)
setIgnoreAllianceChat in interface FPlayerpublic boolean isSpyingChat()
isSpyingChat in interface FPlayerpublic void setSpyingChat(boolean chatSpying)
setSpyingChat in interface FPlayerpublic java.lang.String getAccountId()
getAccountId in interface FPlayergetAccountId in interface EconomyParticipatorpublic void resetFactionData(boolean doSpoutUpdate)
resetFactionData in interface FPlayerpublic void resetFactionData()
resetFactionData in interface FPlayerpublic long getLastLoginTime()
getLastLoginTime in interface FPlayerpublic void setLastLoginTime(long lastLoginTime)
setLastLoginTime in interface FPlayerpublic boolean isMapAutoUpdating()
isMapAutoUpdating in interface FPlayerpublic void setMapAutoUpdating(boolean mapAutoUpdating)
setMapAutoUpdating in interface FPlayerpublic boolean hasLoginPvpDisabled()
hasLoginPvpDisabled in interface FPlayerpublic FLocation getLastStoodAt()
getLastStoodAt in interface FPlayerpublic void setLastStoodAt(FLocation flocation)
setLastStoodAt in interface FPlayerpublic void setTitle(org.bukkit.command.CommandSender sender,
java.lang.String title)
public void setName(java.lang.String name)
public java.lang.String getNameAndSomething(java.lang.String something)
getNameAndSomething in interface FPlayerpublic java.lang.String getNameAndTitle()
getNameAndTitle in interface FPlayerpublic java.lang.String getNameAndTag()
getNameAndTag in interface FPlayerpublic java.lang.String getNameAndTitle(Faction faction)
getNameAndTitle in interface FPlayerpublic java.lang.String getNameAndTitle(MemoryFPlayer fplayer)
public java.lang.String getChatTag()
getChatTag in interface FPlayerpublic java.lang.String getChatTag(Faction faction)
getChatTag in interface FPlayerpublic java.lang.String getChatTag(MemoryFPlayer fplayer)
public java.lang.String describeTo(RelationParticipator that, boolean ucfirst)
describeTo in interface FPlayerdescribeTo in interface RelationParticipatorpublic java.lang.String describeTo(RelationParticipator that)
describeTo in interface FPlayerdescribeTo in interface RelationParticipatorpublic Relation getRelationTo(RelationParticipator rp)
getRelationTo in interface FPlayergetRelationTo in interface RelationParticipatorpublic Relation getRelationTo(RelationParticipator rp, boolean ignorePeaceful)
getRelationTo in interface FPlayergetRelationTo in interface RelationParticipatorpublic Relation getRelationToLocation()
getRelationToLocation in interface FPlayerpublic org.bukkit.ChatColor getColorTo(RelationParticipator rp)
getColorTo in interface FPlayergetColorTo in interface RelationParticipatorpublic void alterPower(double delta)
alterPower in interface FPlayerpublic double getPowerMax()
getPowerMax in interface FPlayerpublic double getPowerMin()
getPowerMin in interface FPlayerpublic int getPowerRounded()
getPowerRounded in interface FPlayerpublic int getPowerMaxRounded()
getPowerMaxRounded in interface FPlayerpublic int getPowerMinRounded()
getPowerMinRounded in interface FPlayerpublic void updatePower()
updatePower in interface FPlayerpublic void losePowerFromBeingOffline()
losePowerFromBeingOffline in interface FPlayerpublic boolean isInOwnTerritory()
isInOwnTerritory in interface FPlayerpublic boolean isInOthersTerritory()
isInOthersTerritory in interface FPlayerpublic boolean isInAllyTerritory()
isInAllyTerritory in interface FPlayerpublic boolean isInNeutralTerritory()
isInNeutralTerritory in interface FPlayerpublic boolean isInEnemyTerritory()
isInEnemyTerritory in interface FPlayerpublic void sendFactionHereMessage(Faction from)
sendFactionHereMessage in interface FPlayerpublic boolean showInfoBoard(Faction toShow)
toShow - Faction to be shown.public boolean showScoreboard()
showScoreboard in interface FPlayerpublic void setShowScoreboard(boolean show)
setShowScoreboard in interface FPlayerpublic boolean canClaimForFaction(Faction forFaction)
canClaimForFaction in interface FPlayerpublic boolean canClaimForFactionAtLocation(Faction forFaction, org.bukkit.Location location, boolean notifyFailure)
canClaimForFactionAtLocation in interface FPlayerpublic boolean canClaimForFactionAtLocation(Faction forFaction, FLocation flocation, boolean notifyFailure)
canClaimForFactionAtLocation in interface FPlayerpublic boolean attemptClaim(Faction forFaction, org.bukkit.Location location, boolean notifyFailure)
attemptClaim in interface FPlayerpublic boolean shouldBeSaved()
public void msg(java.lang.String str,
java.lang.Object... args)
msg in interface FPlayermsg in interface EconomyParticipatorpublic void msg(TL translation, java.lang.Object... args)
msg in interface EconomyParticipatorpublic boolean isOnlineAndVisibleTo(org.bukkit.entity.Player player)
isOnlineAndVisibleTo in interface FPlayerpublic void setFFlying(boolean fly,
boolean damage)
setFFlying in interface FPlayerpublic void setInVault(boolean status)
setInVault in interface FPlayerpublic boolean canFlyAtLocation()
canFlyAtLocation in interface FPlayerpublic boolean canFlyAtLocation(FLocation location)
canFlyAtLocation in interface FPlayerpublic boolean shouldTakeFallDamage()
shouldTakeFallDamage in interface FPlayerpublic void setTakeFallDamage(boolean fallDamage)
setTakeFallDamage in interface FPlayerpublic boolean isEnteringPassword()
isEnteringPassword in interface FPlayerpublic void setEnteringPassword(boolean toggle,
java.lang.String warp)
setEnteringPassword in interface FPlayerpublic java.lang.String getEnteringWarp()
getEnteringWarp in interface FPlayerpublic void sendMessage(java.lang.String msg)
sendMessage in interface FPlayerpublic void sendMessage(java.util.List<java.lang.String> msgs)
sendMessage in interface FPlayerpublic void sendFancyMessage(mkremins.fanciful.FancyMessage message)
sendFancyMessage in interface FPlayerpublic void sendFancyMessage(java.util.List<mkremins.fanciful.FancyMessage> messages)
sendFancyMessage in interface FPlayerpublic int getMapHeight()
getMapHeight in interface FPlayerpublic void setMapHeight(int height)
setMapHeight in interface FPlayerpublic java.lang.String getNameAndTitle(FPlayer fplayer)
getNameAndTitle in interface FPlayerpublic java.lang.String getChatTag(FPlayer fplayer)
getChatTag in interface FPlayerpublic void clearWarmup()
clearWarmup in interface FPlayerpublic void stopWarmup()
stopWarmup in interface FPlayerpublic boolean isWarmingUp()
isWarmingUp in interface FPlayerpublic WarmUpUtil.Warmup getWarmupType()
getWarmupType in interface FPlayerpublic void addWarmup(WarmUpUtil.Warmup warmup, int taskId)
public boolean checkIfNearbyEnemies()
checkIfNearbyEnemies in interface FPlayerpublic java.lang.Boolean canflyinWilderness()
canflyinWilderness in interface FPlayerpublic java.lang.Boolean canflyinWarzone()
canflyinWarzone in interface FPlayerpublic java.lang.Boolean canflyinSafezone()
canflyinSafezone in interface FPlayerpublic java.lang.Boolean canflyinEnemy()
canflyinEnemy in interface FPlayerpublic java.lang.Boolean canflyinAlly()
canflyinAlly in interface FPlayerpublic java.lang.Boolean canflyinTruce()
canflyinTruce in interface FPlayerpublic java.lang.Boolean canflyinNeutral()
canflyinNeutral in interface FPlayerpublic boolean isInspectMode()
isInspectMode in interface FPlayerpublic void setInspectMode(boolean status)
setInspectMode in interface FPlayerpublic boolean attemptClaim(Faction forFaction, FLocation flocation, boolean notifyFailure)
attemptClaim in interface FPlayerpublic java.lang.String getRolePrefix()
getRolePrefix in interface FPlayer