Class MemoryFPlayer
- java.lang.Object
-
- com.massivecraft.factions.zcore.persist.MemoryFPlayer
-
- All Implemented Interfaces:
FPlayer
,EconomyParticipator
,RelationParticipator
- Direct Known Subclasses:
JSONFPlayer
public abstract class MemoryFPlayer extends java.lang.Object implements FPlayer
Logged in players always have exactly one FPlayer instance. Logged out players may or may not have an FPlayer instance. They will always have one if they are part of a faction. This is because only players with a faction are saved to disk (in order to not waste disk space). The FPlayer is linked to a minecraft player using the player name. The same instance is always returned for the same player. This means you can use the == operator. No .equals method necessary.
-
-
Field Summary
Fields Modifier and Type Field Description protected Faction
autoClaimFor
protected boolean
autoSafeZoneEnabled
protected boolean
autoWarZoneEnabled
protected ChatMode
chatMode
protected java.util.HashMap<java.lang.String,java.lang.Long>
commandCooldown
protected int
deaths
protected boolean
enteringPassword
protected java.lang.String
enteringPasswordWarp
protected java.lang.String
factionId
protected java.lang.String
id
protected boolean
ignoreAllianceChat
(package private) boolean
inspectMode
boolean
inVault
protected boolean
isAdminBypassing
protected boolean
isAlt
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 long
millisPassed
protected boolean
monitorJoins
protected java.lang.String
name
protected boolean
notificationsEnabled
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 Summary
Constructors Constructor Description MemoryFPlayer()
MemoryFPlayer(MemoryFPlayer other)
MemoryFPlayer(java.lang.String id)
-
Method Summary
Modifier and Type Method 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
commas(double amount)
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
getCooldown(java.lang.String cmd)
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()
long
getLastPowerUpdateTime()
FLocation
getLastStoodAt()
int
getMapHeight()
long
getMillisPassed()
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 factionboolean
hasLoginPvpDisabled()
boolean
hasMoney(int amt)
boolean
hasNotificationsEnabled()
void
heal(int amnt)
boolean
isAdminBypassing()
boolean
isAlt()
boolean
isAutoSafeClaimEnabled()
boolean
isAutoWarClaimEnabled()
boolean
isCooldownEnded(java.lang.String cmd)
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 offboolean
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(TL translation, java.lang.Object... args)
void
msg(java.lang.String str, java.lang.Object... args)
void
onDeath()
abstract void
remove()
void
resetFactionData()
void
resetFactionData(boolean doSpoutUpdate)
void
sendFactionHereMessage(Faction from)
void
sendFancyMessage(java.util.List<mkremins.fanciful.FancyMessage> messages)
void
sendFancyMessage(mkremins.fanciful.FancyMessage message)
void
sendMessage(java.lang.String msg)
void
sendMessage(java.util.List<java.lang.String> msgs)
void
setAlt(boolean alt)
void
setAutoClaimFor(Faction faction)
void
setAutoLeave(boolean willLeave)
void
setChatMode(ChatMode chatMode)
void
setCooldown(java.lang.String cmd, long cooldown)
void
setEnteringPassword(boolean toggle, java.lang.String warp)
void
setFaction(Faction faction, boolean alt)
Sets the faction of the FPlayervoid
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
setNotificationsEnabled(boolean enabled)
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 parametervoid
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
-
-
-
Field Detail
-
inVault
public boolean inVault
-
commandCooldown
protected java.util.HashMap<java.lang.String,java.lang.Long> commandCooldown
-
factionId
protected java.lang.String factionId
-
role
protected Role role
-
title
protected java.lang.String title
-
power
protected double power
-
powerBoost
protected double powerBoost
-
lastPowerUpdateTime
protected long lastPowerUpdateTime
-
millisPassed
protected long millisPassed
-
lastLoginTime
protected long lastLoginTime
-
chatMode
protected ChatMode chatMode
-
ignoreAllianceChat
protected boolean ignoreAllianceChat
-
id
protected java.lang.String id
-
name
protected java.lang.String name
-
monitorJoins
protected boolean monitorJoins
-
spyingChat
protected boolean spyingChat
-
showScoreboard
protected boolean showScoreboard
-
warmup
protected WarmUpUtil.Warmup warmup
-
warmupTask
protected int warmupTask
-
isAdminBypassing
protected boolean isAdminBypassing
-
kills
protected int kills
-
deaths
protected int deaths
-
willAutoLeave
protected boolean willAutoLeave
-
mapHeight
protected int mapHeight
-
isFlying
protected boolean isFlying
-
enteringPassword
protected boolean enteringPassword
-
enteringPasswordWarp
protected java.lang.String enteringPasswordWarp
-
lastStoodAt
protected transient FLocation lastStoodAt
-
mapAutoUpdating
protected transient boolean mapAutoUpdating
-
autoClaimFor
protected transient Faction autoClaimFor
-
autoSafeZoneEnabled
protected transient boolean autoSafeZoneEnabled
-
autoWarZoneEnabled
protected transient boolean autoWarZoneEnabled
-
loginPvpDisabled
protected transient boolean loginPvpDisabled
-
lastFrostwalkerMessage
protected transient long lastFrostwalkerMessage
-
shouldTakeFallDamage
protected transient boolean shouldTakeFallDamage
-
isStealthEnabled
protected boolean isStealthEnabled
-
notificationsEnabled
protected boolean notificationsEnabled
-
isAlt
protected boolean isAlt
-
inspectMode
boolean inspectMode
-
-
Constructor Detail
-
MemoryFPlayer
public MemoryFPlayer()
-
MemoryFPlayer
public MemoryFPlayer(java.lang.String id)
-
MemoryFPlayer
public MemoryFPlayer(MemoryFPlayer other)
-
-
Method Detail
-
isStealthEnabled
public boolean isStealthEnabled()
Description copied from interface:FPlayer
Used to know if stealth is toggled on or off- Specified by:
isStealthEnabled
in interfaceFPlayer
- Returns:
- if stealth mode is on or not.
-
setStealth
public void setStealth(boolean stealth)
Description copied from interface:FPlayer
Toggles the stealth of the FPlayer depending on the parameter- Specified by:
setStealth
in interfaceFPlayer
- Parameters:
stealth
- - toggles stealth
-
login
public void login()
Description copied from interface:FPlayer
Sets the kills and deaths of a player.
-
logout
public void logout()
Description copied from interface:FPlayer
Caches the kills and deaths of a player.
-
getCooldown
public int getCooldown(java.lang.String cmd)
- Specified by:
getCooldown
in interfaceFPlayer
-
setCooldown
public void setCooldown(java.lang.String cmd, long cooldown)
- Specified by:
setCooldown
in interfaceFPlayer
-
isCooldownEnded
public boolean isCooldownEnded(java.lang.String cmd)
- Specified by:
isCooldownEnded
in interfaceFPlayer
-
getFaction
public Faction getFaction()
Description copied from interface:FPlayer
gets the faction of a FPlayer.- Specified by:
getFaction
in interfaceFPlayer
- Returns:
- Faction of the FPlayer.
-
setFaction
public void setFaction(Faction faction, boolean alt)
Description copied from interface:FPlayer
Sets the faction of the FPlayer- Specified by:
setFaction
in interfaceFPlayer
- Parameters:
faction
- faction to set.
-
setNotificationsEnabled
public void setNotificationsEnabled(boolean enabled)
- Specified by:
setNotificationsEnabled
in interfaceFPlayer
-
hasNotificationsEnabled
public boolean hasNotificationsEnabled()
- Specified by:
hasNotificationsEnabled
in interfaceFPlayer
-
getFactionId
public java.lang.String getFactionId()
Description copied from interface:FPlayer
Gets the faction ID of the player.- Specified by:
getFactionId
in interfaceFPlayer
- Returns:
- FactionsID string
-
hasFaction
public boolean hasFaction()
Description copied from interface:FPlayer
Check if a player has a faction- Specified by:
hasFaction
in interfaceFPlayer
- Returns:
- boolean
-
setMonitorJoins
public void setMonitorJoins(boolean monitor)
- Specified by:
setMonitorJoins
in interfaceFPlayer
-
isMonitoringJoins
public boolean isMonitoringJoins()
- Specified by:
isMonitoringJoins
in interfaceFPlayer
-
getPowerBoost
public double getPowerBoost()
- Specified by:
getPowerBoost
in interfaceFPlayer
-
setPowerBoost
public void setPowerBoost(double powerBoost)
- Specified by:
setPowerBoost
in interfaceFPlayer
-
willAutoLeave
public boolean willAutoLeave()
Description copied from interface:FPlayer
Gets autoleave status- Specified by:
willAutoLeave
in interfaceFPlayer
- Returns:
- boolean of the autoleave
-
setAutoLeave
public void setAutoLeave(boolean willLeave)
- Specified by:
setAutoLeave
in interfaceFPlayer
-
getLastFrostwalkerMessage
public long getLastFrostwalkerMessage()
- Specified by:
getLastFrostwalkerMessage
in interfaceFPlayer
-
setLastFrostwalkerMessage
public void setLastFrostwalkerMessage()
- Specified by:
setLastFrostwalkerMessage
in interfaceFPlayer
-
getAutoClaimFor
public Faction getAutoClaimFor()
- Specified by:
getAutoClaimFor
in interfaceFPlayer
-
setAutoClaimFor
public void setAutoClaimFor(Faction faction)
- Specified by:
setAutoClaimFor
in interfaceFPlayer
-
isAutoSafeClaimEnabled
public boolean isAutoSafeClaimEnabled()
- Specified by:
isAutoSafeClaimEnabled
in interfaceFPlayer
-
setIsAutoSafeClaimEnabled
public void setIsAutoSafeClaimEnabled(boolean enabled)
- Specified by:
setIsAutoSafeClaimEnabled
in interfaceFPlayer
-
isAutoWarClaimEnabled
public boolean isAutoWarClaimEnabled()
- Specified by:
isAutoWarClaimEnabled
in interfaceFPlayer
-
setIsAutoWarClaimEnabled
public void setIsAutoWarClaimEnabled(boolean enabled)
- Specified by:
setIsAutoWarClaimEnabled
in interfaceFPlayer
-
isAdminBypassing
public boolean isAdminBypassing()
- Specified by:
isAdminBypassing
in interfaceFPlayer
-
isVanished
public boolean isVanished()
- Specified by:
isVanished
in interfaceFPlayer
-
setIsAdminBypassing
public void setIsAdminBypassing(boolean val)
- Specified by:
setIsAdminBypassing
in interfaceFPlayer
-
getChatMode
public ChatMode getChatMode()
- Specified by:
getChatMode
in interfaceFPlayer
-
setChatMode
public void setChatMode(ChatMode chatMode)
- Specified by:
setChatMode
in interfaceFPlayer
-
isIgnoreAllianceChat
public boolean isIgnoreAllianceChat()
- Specified by:
isIgnoreAllianceChat
in interfaceFPlayer
-
setIgnoreAllianceChat
public void setIgnoreAllianceChat(boolean ignore)
- Specified by:
setIgnoreAllianceChat
in interfaceFPlayer
-
isSpyingChat
public boolean isSpyingChat()
- Specified by:
isSpyingChat
in interfaceFPlayer
-
setSpyingChat
public void setSpyingChat(boolean chatSpying)
- Specified by:
setSpyingChat
in interfaceFPlayer
-
getAccountId
public java.lang.String getAccountId()
- Specified by:
getAccountId
in interfaceEconomyParticipator
- Specified by:
getAccountId
in interfaceFPlayer
-
resetFactionData
public void resetFactionData(boolean doSpoutUpdate)
- Specified by:
resetFactionData
in interfaceFPlayer
-
resetFactionData
public void resetFactionData()
- Specified by:
resetFactionData
in interfaceFPlayer
-
getLastLoginTime
public long getLastLoginTime()
- Specified by:
getLastLoginTime
in interfaceFPlayer
-
setLastLoginTime
public void setLastLoginTime(long lastLoginTime)
- Specified by:
setLastLoginTime
in interfaceFPlayer
-
isMapAutoUpdating
public boolean isMapAutoUpdating()
- Specified by:
isMapAutoUpdating
in interfaceFPlayer
-
setMapAutoUpdating
public void setMapAutoUpdating(boolean mapAutoUpdating)
- Specified by:
setMapAutoUpdating
in interfaceFPlayer
-
hasLoginPvpDisabled
public boolean hasLoginPvpDisabled()
- Specified by:
hasLoginPvpDisabled
in interfaceFPlayer
-
getLastStoodAt
public FLocation getLastStoodAt()
- Specified by:
getLastStoodAt
in interfaceFPlayer
-
setLastStoodAt
public void setLastStoodAt(FLocation flocation)
- Specified by:
setLastStoodAt
in interfaceFPlayer
-
setTitle
public void setTitle(org.bukkit.command.CommandSender sender, java.lang.String title)
-
setName
public void setName(java.lang.String name)
-
getNameAndSomething
public java.lang.String getNameAndSomething(java.lang.String something)
- Specified by:
getNameAndSomething
in interfaceFPlayer
-
getNameAndTitle
public java.lang.String getNameAndTitle()
- Specified by:
getNameAndTitle
in interfaceFPlayer
-
getNameAndTag
public java.lang.String getNameAndTag()
- Specified by:
getNameAndTag
in interfaceFPlayer
-
getNameAndTitle
public java.lang.String getNameAndTitle(Faction faction)
- Specified by:
getNameAndTitle
in interfaceFPlayer
-
getNameAndTitle
public java.lang.String getNameAndTitle(MemoryFPlayer fplayer)
-
getChatTag
public java.lang.String getChatTag()
- Specified by:
getChatTag
in interfaceFPlayer
-
getChatTag
public java.lang.String getChatTag(Faction faction)
- Specified by:
getChatTag
in interfaceFPlayer
-
getChatTag
public java.lang.String getChatTag(MemoryFPlayer fplayer)
-
describeTo
public java.lang.String describeTo(RelationParticipator that, boolean ucfirst)
- Specified by:
describeTo
in interfaceFPlayer
- Specified by:
describeTo
in interfaceRelationParticipator
-
describeTo
public java.lang.String describeTo(RelationParticipator that)
- Specified by:
describeTo
in interfaceFPlayer
- Specified by:
describeTo
in interfaceRelationParticipator
-
getRelationTo
public Relation getRelationTo(RelationParticipator rp)
- Specified by:
getRelationTo
in interfaceFPlayer
- Specified by:
getRelationTo
in interfaceRelationParticipator
-
getRelationTo
public Relation getRelationTo(RelationParticipator rp, boolean ignorePeaceful)
- Specified by:
getRelationTo
in interfaceFPlayer
- Specified by:
getRelationTo
in interfaceRelationParticipator
-
getRelationToLocation
public Relation getRelationToLocation()
- Specified by:
getRelationToLocation
in interfaceFPlayer
-
getColorTo
public org.bukkit.ChatColor getColorTo(RelationParticipator rp)
- Specified by:
getColorTo
in interfaceFPlayer
- Specified by:
getColorTo
in interfaceRelationParticipator
-
alterPower
public void alterPower(double delta)
- Specified by:
alterPower
in interfaceFPlayer
-
getPowerMax
public double getPowerMax()
- Specified by:
getPowerMax
in interfaceFPlayer
-
getPowerMin
public double getPowerMin()
- Specified by:
getPowerMin
in interfaceFPlayer
-
getPowerRounded
public int getPowerRounded()
- Specified by:
getPowerRounded
in interfaceFPlayer
-
getPowerMaxRounded
public int getPowerMaxRounded()
- Specified by:
getPowerMaxRounded
in interfaceFPlayer
-
getPowerMinRounded
public int getPowerMinRounded()
- Specified by:
getPowerMinRounded
in interfaceFPlayer
-
getMillisPassed
public long getMillisPassed()
- Specified by:
getMillisPassed
in interfaceFPlayer
-
getLastPowerUpdateTime
public long getLastPowerUpdateTime()
- Specified by:
getLastPowerUpdateTime
in interfaceFPlayer
-
updatePower
public void updatePower()
- Specified by:
updatePower
in interfaceFPlayer
-
losePowerFromBeingOffline
public void losePowerFromBeingOffline()
- Specified by:
losePowerFromBeingOffline
in interfaceFPlayer
-
isInOwnTerritory
public boolean isInOwnTerritory()
- Specified by:
isInOwnTerritory
in interfaceFPlayer
-
isInOthersTerritory
public boolean isInOthersTerritory()
- Specified by:
isInOthersTerritory
in interfaceFPlayer
-
isInAllyTerritory
public boolean isInAllyTerritory()
- Specified by:
isInAllyTerritory
in interfaceFPlayer
-
isInNeutralTerritory
public boolean isInNeutralTerritory()
- Specified by:
isInNeutralTerritory
in interfaceFPlayer
-
isInEnemyTerritory
public boolean isInEnemyTerritory()
- Specified by:
isInEnemyTerritory
in interfaceFPlayer
-
sendFactionHereMessage
public void sendFactionHereMessage(Faction from)
- Specified by:
sendFactionHereMessage
in interfaceFPlayer
-
showInfoBoard
public boolean showInfoBoard(Faction toShow)
Check if the scoreboard should be shown. Simple method to be used by above method.- Parameters:
toShow
- Faction to be shown.- Returns:
- true if should show, otherwise false.
-
showScoreboard
public boolean showScoreboard()
- Specified by:
showScoreboard
in interfaceFPlayer
-
setShowScoreboard
public void setShowScoreboard(boolean show)
- Specified by:
setShowScoreboard
in interfaceFPlayer
-
canClaimForFaction
public boolean canClaimForFaction(Faction forFaction)
- Specified by:
canClaimForFaction
in interfaceFPlayer
-
canClaimForFactionAtLocation
public boolean canClaimForFactionAtLocation(Faction forFaction, org.bukkit.Location location, boolean notifyFailure)
- Specified by:
canClaimForFactionAtLocation
in interfaceFPlayer
-
canClaimForFactionAtLocation
public boolean canClaimForFactionAtLocation(Faction forFaction, FLocation flocation, boolean notifyFailure)
- Specified by:
canClaimForFactionAtLocation
in interfaceFPlayer
-
attemptClaim
public boolean attemptClaim(Faction forFaction, org.bukkit.Location location, boolean notifyFailure)
- Specified by:
attemptClaim
in interfaceFPlayer
-
shouldBeSaved
public boolean shouldBeSaved()
-
msg
public void msg(java.lang.String str, java.lang.Object... args)
- Specified by:
msg
in interfaceEconomyParticipator
- Specified by:
msg
in interfaceFPlayer
-
msg
public void msg(TL translation, java.lang.Object... args)
- Specified by:
msg
in interfaceEconomyParticipator
-
isOnlineAndVisibleTo
public boolean isOnlineAndVisibleTo(org.bukkit.entity.Player player)
- Specified by:
isOnlineAndVisibleTo
in interfaceFPlayer
-
setFFlying
public void setFFlying(boolean fly, boolean damage)
- Specified by:
setFFlying
in interfaceFPlayer
-
setInVault
public void setInVault(boolean status)
- Specified by:
setInVault
in interfaceFPlayer
-
canFlyAtLocation
public boolean canFlyAtLocation()
- Specified by:
canFlyAtLocation
in interfaceFPlayer
-
canFlyAtLocation
public boolean canFlyAtLocation(FLocation location)
- Specified by:
canFlyAtLocation
in interfaceFPlayer
-
shouldTakeFallDamage
public boolean shouldTakeFallDamage()
- Specified by:
shouldTakeFallDamage
in interfaceFPlayer
-
setTakeFallDamage
public void setTakeFallDamage(boolean fallDamage)
- Specified by:
setTakeFallDamage
in interfaceFPlayer
-
isEnteringPassword
public boolean isEnteringPassword()
- Specified by:
isEnteringPassword
in interfaceFPlayer
-
setEnteringPassword
public void setEnteringPassword(boolean toggle, java.lang.String warp)
- Specified by:
setEnteringPassword
in interfaceFPlayer
-
getEnteringWarp
public java.lang.String getEnteringWarp()
- Specified by:
getEnteringWarp
in interfaceFPlayer
-
sendMessage
public void sendMessage(java.lang.String msg)
- Specified by:
sendMessage
in interfaceFPlayer
-
sendMessage
public void sendMessage(java.util.List<java.lang.String> msgs)
- Specified by:
sendMessage
in interfaceFPlayer
-
sendFancyMessage
public void sendFancyMessage(mkremins.fanciful.FancyMessage message)
- Specified by:
sendFancyMessage
in interfaceFPlayer
-
sendFancyMessage
public void sendFancyMessage(java.util.List<mkremins.fanciful.FancyMessage> messages)
- Specified by:
sendFancyMessage
in interfaceFPlayer
-
getMapHeight
public int getMapHeight()
- Specified by:
getMapHeight
in interfaceFPlayer
-
setMapHeight
public void setMapHeight(int height)
- Specified by:
setMapHeight
in interfaceFPlayer
-
getNameAndTitle
public java.lang.String getNameAndTitle(FPlayer fplayer)
- Specified by:
getNameAndTitle
in interfaceFPlayer
-
getChatTag
public java.lang.String getChatTag(FPlayer fplayer)
- Specified by:
getChatTag
in interfaceFPlayer
-
clearWarmup
public void clearWarmup()
- Specified by:
clearWarmup
in interfaceFPlayer
-
stopWarmup
public void stopWarmup()
- Specified by:
stopWarmup
in interfaceFPlayer
-
isWarmingUp
public boolean isWarmingUp()
- Specified by:
isWarmingUp
in interfaceFPlayer
-
getWarmupType
public WarmUpUtil.Warmup getWarmupType()
- Specified by:
getWarmupType
in interfaceFPlayer
-
addWarmup
public void addWarmup(WarmUpUtil.Warmup warmup, int taskId)
-
checkIfNearbyEnemies
public boolean checkIfNearbyEnemies()
- Specified by:
checkIfNearbyEnemies
in interfaceFPlayer
-
canflyinWilderness
public java.lang.Boolean canflyinWilderness()
- Specified by:
canflyinWilderness
in interfaceFPlayer
-
canflyinWarzone
public java.lang.Boolean canflyinWarzone()
- Specified by:
canflyinWarzone
in interfaceFPlayer
-
canflyinSafezone
public java.lang.Boolean canflyinSafezone()
- Specified by:
canflyinSafezone
in interfaceFPlayer
-
canflyinEnemy
public java.lang.Boolean canflyinEnemy()
- Specified by:
canflyinEnemy
in interfaceFPlayer
-
canflyinAlly
public java.lang.Boolean canflyinAlly()
- Specified by:
canflyinAlly
in interfaceFPlayer
-
canflyinTruce
public java.lang.Boolean canflyinTruce()
- Specified by:
canflyinTruce
in interfaceFPlayer
-
canflyinNeutral
public java.lang.Boolean canflyinNeutral()
- Specified by:
canflyinNeutral
in interfaceFPlayer
-
isInspectMode
public boolean isInspectMode()
- Specified by:
isInspectMode
in interfaceFPlayer
-
setInspectMode
public void setInspectMode(boolean status)
- Specified by:
setInspectMode
in interfaceFPlayer
-
attemptClaim
public boolean attemptClaim(Faction forFaction, FLocation flocation, boolean notifyFailure)
- Specified by:
attemptClaim
in interfaceFPlayer
-
getRolePrefix
public java.lang.String getRolePrefix()
- Specified by:
getRolePrefix
in interfaceFPlayer
-
commas
public java.lang.String commas(double amount)
-
-