Class MemoryFaction
- java.lang.Object
-
- com.massivecraft.factions.zcore.persist.MemoryFaction
-
- All Implemented Interfaces:
Faction,EconomyParticipator,RelationParticipator
- Direct Known Subclasses:
JSONFaction
public abstract class MemoryFaction extends java.lang.Object implements Faction, EconomyParticipator
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Set<java.lang.String>altinvitesprotected java.util.Set<FPlayer>altsprotected java.util.HashMap<java.lang.String,java.util.List<java.lang.String>>announcements(package private) java.util.Map<java.lang.String,java.lang.Object>bannerSerializedprotected java.util.Set<BanInfo>bansorg.bukkit.Locationcheckpoint(package private) org.bukkit.inventory.Inventorychestprotected java.util.Map<FLocation,java.util.Set<java.lang.String>>claimOwnershipprotected RoledefaultRoleprotected java.lang.Stringdescriptionprotected java.lang.Stringdiscordprotected longfoundedDateprotected java.util.Set<FPlayer>fplayersprotected LazyLocationhomeprotected java.lang.Stringidprotected java.util.Set<java.lang.String>invitesprotected longlastPlayerLoggedOffTimeprotected intmaxVaultsprotected doublemoneyprotected booleanopenprotected java.lang.Stringpaypalprotected booleanpeacefulprotected booleanpeacefulExplosionsEnabledprotected booleanpermanentprotected java.lang.IntegerpermanentPowerprotected java.util.Map<Permissable,java.util.Map<PermissableAction,Access>>permissionsprotected java.lang.Stringplayerprotected doublepowerBoostprotected java.util.Map<java.lang.String,Relation>relationWishjava.util.HashMap<java.lang.Integer,java.lang.String>rulesprotected java.lang.Stringtaginttntjava.util.HashMap<java.lang.String,java.lang.Integer>upgradesLazyLocationvaultprotected java.util.concurrent.ConcurrentHashMap<java.lang.String,java.lang.String>warpPasswordsprotected java.util.concurrent.ConcurrentHashMap<java.lang.String,LazyLocation>warps
-
Constructor Summary
Constructors Constructor Description MemoryFaction()MemoryFaction(MemoryFaction old)MemoryFaction(java.lang.String id)
-
Method Summary
Modifier and Type Method Description booleanaddAltPlayer(FPlayer fplayer)voidaddAnnouncement(FPlayer fPlayer, java.lang.String msg)booleanaddFPlayer(FPlayer fplayer)voidaddRule(java.lang.String rule)voidaddTnt(int amt)voidaltInvite(FPlayer fplayer)booleanaltInvited(FPlayer fplayer)voidban(FPlayer target, FPlayer banner)voidcheckPerms()voidclearAllClaimOwnership()voidclearClaimOwnership(FLocation loc)voidclearClaimOwnership(FPlayer player)voidclearRules()voidclearWarps()voidconfirmValidHome()voiddeinvite(FPlayer fplayer)voiddeinviteAllAlts()voiddeinviteAlt(FPlayer fplayer)java.lang.StringdescribeTo(RelationParticipator that)java.lang.StringdescribeTo(RelationParticipator that, boolean ucfirst)voiddisband(org.bukkit.entity.Player disbander)voiddisband(org.bukkit.entity.Player disbander, FactionDisbandEvent.PlayerDisbandReason reason)booleandoesLocationHaveOwnersSet(FLocation loc)AccessgetAccess(FPlayer player, PermissableAction permissableAction)Get the Access of a player.AccessgetAccess(Permissable permissable, PermissableAction permissableAction)java.lang.StringgetAccountId()java.util.Set<FLocation>getAllClaims()java.util.Set<java.lang.String>getAltInvites()java.util.Set<FPlayer>getAltPlayers()java.util.HashMap<java.lang.String,java.util.List<java.lang.String>>getAnnouncements()java.util.Set<BanInfo>getBannedPlayers()org.bukkit.inventory.ItemStackgetBanner()intgetBufferCheckMinutes()java.lang.StringgetBufferNotifyChannelId()org.bukkit.LocationgetCheckpoint()java.util.Map<java.lang.Long,java.lang.String>getChecks()org.bukkit.inventory.InventorygetChestInventory()java.util.Map<FLocation,java.util.Set<java.lang.String>>getClaimOwnership()org.bukkit.ChatColorgetColorTo(RelationParticipator rp)java.lang.StringgetComparisonTag()java.util.List<java.lang.String>getCompletedMissions()intgetCountOfClaimsWithOwners()intgetDeaths()RolegetDefaultRole()java.lang.StringgetDescription()java.lang.StringgetDiscord()java.lang.StringgetFactionChatChannelId()java.lang.StringgetFocused()longgetFoundedDate()FPlayergetFPlayerAdmin()FPlayergetFPlayerLeader()java.util.Set<FPlayer>getFPlayers()java.util.Set<FPlayer>getFPlayersWhereOnline(boolean online)java.util.Set<FPlayer>getFPlayersWhereOnline(boolean online, FPlayer viewer)java.util.ArrayList<FPlayer>getFPlayersWhereRole(Role role)java.lang.StringgetGuildId()org.bukkit.LocationgetHome()java.lang.StringgetId()java.util.Set<java.lang.String>getInvites()intgetKills()intgetLandRounded()intgetLandRoundedInWorld(java.lang.String worldName)longgetLastDeath()intgetMaxVaults()java.lang.StringgetMemberRoleId()java.util.Map<java.lang.String,Mission>getMissions()java.lang.StringgetNotifyFormat()java.util.ArrayList<org.bukkit.entity.Player>getOnlinePlayers()booleangetOpen()java.util.Set<java.lang.String>getOwnerList(FLocation loc)java.lang.StringgetOwnerListString(FLocation loc)java.lang.StringgetPaypal()booleangetPeacefulExplosionsEnabled()java.lang.IntegergetPermanentPower()java.util.Map<Permissable,java.util.Map<PermissableAction,Access>>getPermissions()Read only map of Permissions.java.util.Map<java.util.UUID,java.lang.Integer>getPlayerBufferCheckCount()java.util.Map<java.util.UUID,java.lang.Integer>getPlayerWallCheckCount()intgetPoints()doublegetPower()doublegetPowerBoost()doublegetPowerMax()intgetPowerMaxRounded()intgetPowerRounded()doublegetReinforcedArmor()intgetRelationCount(Relation relation)RelationgetRelationTo(RelationParticipator rp)RelationgetRelationTo(RelationParticipator rp, boolean ignorePeaceful)RelationgetRelationWish(Faction otherFaction)java.lang.StringgetRule(int index)java.util.HashMap<java.lang.Integer,java.lang.String>getRulesMap()intgetSize()intgetStrikes()java.lang.StringgetTag()java.lang.StringgetTag(Faction otherFaction)java.lang.StringgetTag(FPlayer otherFplayer)java.lang.StringgetTag(java.lang.String prefix)intgetTnt()intgetTntBankLimit()intgetUpgrade(UpgradeType upgrade)org.bukkit.LocationgetVault()intgetWallCheckMinutes()java.lang.StringgetWallNotifyChannelId()LazyLocationgetWarp(java.lang.String name)java.util.concurrent.ConcurrentHashMap<java.lang.String,LazyLocation>getWarps()intgetWarpsLimit()java.lang.StringgetWeeWooChannelId()java.lang.StringgetWeeWooFormat()booleanhasHome()booleanhasLandInflation()booleanhasPermanentPower()booleanhasPlayersOnline()booleanhasWarpPassword(java.lang.String warp)voidinvite(FPlayer fplayer)booleanisBanned(FPlayer player)booleanisInvited(FPlayer fplayer)booleanisNone()booleanisNormal()booleanisPeaceful()booleanisPermanent()booleanisPlayerFreeType()booleanisPlayerInOwnerList(FPlayer player, FLocation loc)booleanisPowerFrozen()booleanisSafeZone()booleanisSystemFaction()booleanisWarp(java.lang.String name)booleanisWarpPassword(java.lang.String warp, java.lang.String password)booleanisWarZone()booleanisWeeWoo()booleanisWilderness()voidmemberLoggedOff()voidmsg(TL translation, java.lang.Object... args)voidmsg(java.lang.String message, java.lang.Object... args)booleannoExplosionsInTerritory()booleannoMonstersInTerritory()booleannoPvPInTerritory()voidpaypalSet(java.lang.String paypal)booleanplayerHasOwnershipRights(FPlayer fplayer, FLocation loc)voidpromoteNewLeader()voidpromoteNewLeader(boolean autoLeave)voidrefreshFPlayers()voidremove()booleanremoveAltPlayer(FPlayer fplayer)voidremoveAnnouncements(FPlayer fPlayer)booleanremoveFPlayer(FPlayer fplayer)voidremovePlayerAsOwner(FPlayer player, FLocation loc)voidremoveRule(int index)booleanremoveWarp(java.lang.String name)voidresetPerms()voidsendMessage(java.lang.String message)voidsendMessage(java.util.List<java.lang.String> messages)voidsendUnreadAnnouncements(FPlayer fPlayer)voidsetBannerPattern(org.bukkit.inventory.ItemStack banner)voidsetBufferCheckMinutes(int bufferCheckMinutes)voidsetBufferNotifyChannelId(java.lang.String bufferNotifyChannelId)voidsetCheckpoint(org.bukkit.Location location)voidsetChestSize(int chestSize)voidsetDefaultPerms()voidsetDefaultRole(Role role)voidsetDescription(java.lang.String value)voidsetDiscord(java.lang.String link)voidsetFactionChatChannelId(java.lang.String factionChatChannelId)voidsetFocused(java.lang.String fp)voidsetFoundedDate(long newDate)voidsetGuildId(java.lang.String guildId)voidsetHome(org.bukkit.Location home)voidsetId(java.lang.String id)voidsetLastDeath(long time)voidsetMaxVaults(int value)voidsetMemberRoleId(java.lang.String memberRoleId)voidsetNotifyFormat(java.lang.String notifyFormat)voidsetOpen(boolean isOpen)voidsetPeaceful(boolean isPeaceful)voidsetPeacefulExplosionsEnabled(boolean val)voidsetPermanent(boolean isPermanent)voidsetPermanentPower(java.lang.Integer permanentPower)booleansetPermission(Permissable permissable, PermissableAction permissableAction, Access access)voidsetPlayerAsOwner(FPlayer player, FLocation loc)voidsetPoints(int points)voidsetPowerBoost(double powerBoost)voidsetReinforcedArmor(double newPercent)voidsetRelationWish(Faction otherFaction, Relation relation)voidsetRule(int index, java.lang.String rule)voidsetStrikes(int strikes)voidsetTag(java.lang.String str)voidsetTntBankLimit(int newLimit)voidsetUpgrade(UpgradeType upgrade, int level)voidsetVault(org.bukkit.Location vaultLocation)voidsetWallCheckMinutes(int wallCheckMinutes)voidsetWallNotifyChannelId(java.lang.String wallNotifyChannelId)voidsetWarp(java.lang.String name, LazyLocation loc)voidsetWarpPassword(java.lang.String warp, java.lang.String password)voidsetWarpsLimit(int warpLimit)voidsetWeeWoo(boolean weeWoo)voidsetWeeWooChannelId(java.lang.String weeWooChannelId)voidsetWeeWooFormat(java.lang.String weeWooFormat)voidtakeTnt(int amt)voidunban(FPlayer player)
-
-
-
Field Detail
-
rules
public java.util.HashMap<java.lang.Integer,java.lang.String> rules
-
tnt
public int tnt
-
checkpoint
public org.bukkit.Location checkpoint
-
vault
public LazyLocation vault
-
upgrades
public java.util.HashMap<java.lang.String,java.lang.Integer> upgrades
-
id
protected java.lang.String id
-
peacefulExplosionsEnabled
protected boolean peacefulExplosionsEnabled
-
permanent
protected boolean permanent
-
tag
protected java.lang.String tag
-
description
protected java.lang.String description
-
open
protected boolean open
-
peaceful
protected boolean peaceful
-
permanentPower
protected java.lang.Integer permanentPower
-
home
protected LazyLocation home
-
foundedDate
protected long foundedDate
-
lastPlayerLoggedOffTime
protected transient long lastPlayerLoggedOffTime
-
money
protected double money
-
powerBoost
protected double powerBoost
-
paypal
protected java.lang.String paypal
-
relationWish
protected java.util.Map<java.lang.String,Relation> relationWish
-
claimOwnership
protected java.util.Map<FLocation,java.util.Set<java.lang.String>> claimOwnership
-
fplayers
protected transient java.util.Set<FPlayer> fplayers
-
alts
protected transient java.util.Set<FPlayer> alts
-
invites
protected java.util.Set<java.lang.String> invites
-
altinvites
protected java.util.Set<java.lang.String> altinvites
-
announcements
protected java.util.HashMap<java.lang.String,java.util.List<java.lang.String>> announcements
-
warps
protected java.util.concurrent.ConcurrentHashMap<java.lang.String,LazyLocation> warps
-
warpPasswords
protected java.util.concurrent.ConcurrentHashMap<java.lang.String,java.lang.String> warpPasswords
-
maxVaults
protected int maxVaults
-
defaultRole
protected Role defaultRole
-
permissions
protected java.util.Map<Permissable,java.util.Map<PermissableAction,Access>> permissions
-
bans
protected java.util.Set<BanInfo> bans
-
player
protected java.lang.String player
-
chest
org.bukkit.inventory.Inventory chest
-
bannerSerialized
java.util.Map<java.lang.String,java.lang.Object> bannerSerialized
-
discord
protected java.lang.String discord
-
-
Constructor Detail
-
MemoryFaction
public MemoryFaction()
-
MemoryFaction
public MemoryFaction(java.lang.String id)
-
MemoryFaction
public MemoryFaction(MemoryFaction old)
-
-
Method Detail
-
getStrikes
public int getStrikes()
- Specified by:
getStrikesin interfaceFaction
-
setStrikes
public void setStrikes(int strikes)
- Specified by:
setStrikesin interfaceFaction
-
getAnnouncements
public java.util.HashMap<java.lang.String,java.util.List<java.lang.String>> getAnnouncements()
- Specified by:
getAnnouncementsin interfaceFaction
-
addAnnouncement
public void addAnnouncement(FPlayer fPlayer, java.lang.String msg)
- Specified by:
addAnnouncementin interfaceFaction
-
sendUnreadAnnouncements
public void sendUnreadAnnouncements(FPlayer fPlayer)
- Specified by:
sendUnreadAnnouncementsin interfaceFaction
-
removeAnnouncements
public void removeAnnouncements(FPlayer fPlayer)
- Specified by:
removeAnnouncementsin interfaceFaction
-
getWarps
public java.util.concurrent.ConcurrentHashMap<java.lang.String,LazyLocation> getWarps()
-
getWarp
public LazyLocation getWarp(java.lang.String name)
-
setWarp
public void setWarp(java.lang.String name, LazyLocation loc)
-
removeWarp
public boolean removeWarp(java.lang.String name)
- Specified by:
removeWarpin interfaceFaction
-
isWarpPassword
public boolean isWarpPassword(java.lang.String warp, java.lang.String password)- Specified by:
isWarpPasswordin interfaceFaction
-
getDiscord
public java.lang.String getDiscord()
- Specified by:
getDiscordin interfaceFaction
-
setDiscord
public void setDiscord(java.lang.String link)
- Specified by:
setDiscordin interfaceFaction
-
paypalSet
public void paypalSet(java.lang.String paypal)
-
hasWarpPassword
public boolean hasWarpPassword(java.lang.String warp)
- Specified by:
hasWarpPasswordin interfaceFaction
-
setWarpPassword
public void setWarpPassword(java.lang.String warp, java.lang.String password)- Specified by:
setWarpPasswordin interfaceFaction
-
clearWarps
public void clearWarps()
- Specified by:
clearWarpsin interfaceFaction
-
getMaxVaults
public int getMaxVaults()
- Specified by:
getMaxVaultsin interfaceFaction
-
setMaxVaults
public void setMaxVaults(int value)
- Specified by:
setMaxVaultsin interfaceFaction
-
getFocused
public java.lang.String getFocused()
- Specified by:
getFocusedin interfaceFaction
-
setFocused
public void setFocused(java.lang.String fp)
- Specified by:
setFocusedin interfaceFaction
-
getInvites
public java.util.Set<java.lang.String> getInvites()
- Specified by:
getInvitesin interfaceFaction
-
getAltInvites
public java.util.Set<java.lang.String> getAltInvites()
-
deinviteAlt
public void deinviteAlt(FPlayer fplayer)
- Specified by:
deinviteAltin interfaceFaction
-
deinviteAllAlts
public void deinviteAllAlts()
- Specified by:
deinviteAllAltsin interfaceFaction
-
altInvited
public boolean altInvited(FPlayer fplayer)
- Specified by:
altInvitedin interfaceFaction
-
disband
public void disband(org.bukkit.entity.Player disbander)
-
disband
public void disband(org.bukkit.entity.Player disbander, FactionDisbandEvent.PlayerDisbandReason reason)
-
getBannedPlayers
public java.util.Set<BanInfo> getBannedPlayers()
- Specified by:
getBannedPlayersin interfaceFaction
-
getRulesMap
public java.util.HashMap<java.lang.Integer,java.lang.String> getRulesMap()
- Specified by:
getRulesMapin interfaceFaction
-
setRule
public void setRule(int index, java.lang.String rule)
-
removeRule
public void removeRule(int index)
- Specified by:
removeRulein interfaceFaction
-
setVault
public void setVault(org.bukkit.Location vaultLocation)
-
getUpgrade
public int getUpgrade(UpgradeType upgrade)
- Specified by:
getUpgradein interfaceFaction
-
getChestInventory
public org.bukkit.inventory.Inventory getChestInventory()
- Specified by:
getChestInventoryin interfaceFaction
-
setChestSize
public void setChestSize(int chestSize)
- Specified by:
setChestSizein interfaceFaction
-
setBannerPattern
public void setBannerPattern(org.bukkit.inventory.ItemStack banner)
- Specified by:
setBannerPatternin interfaceFaction
-
getWarpsLimit
public int getWarpsLimit()
- Specified by:
getWarpsLimitin interfaceFaction
-
setWarpsLimit
public void setWarpsLimit(int warpLimit)
- Specified by:
setWarpsLimitin interfaceFaction
-
getTntBankLimit
public int getTntBankLimit()
- Specified by:
getTntBankLimitin interfaceFaction
-
setTntBankLimit
public void setTntBankLimit(int newLimit)
- Specified by:
setTntBankLimitin interfaceFaction
-
getReinforcedArmor
public double getReinforcedArmor()
- Specified by:
getReinforcedArmorin interfaceFaction
-
setReinforcedArmor
public void setReinforcedArmor(double newPercent)
- Specified by:
setReinforcedArmorin interfaceFaction
-
getBanner
public org.bukkit.inventory.ItemStack getBanner()
-
setUpgrade
public void setUpgrade(UpgradeType upgrade, int level)
- Specified by:
setUpgradein interfaceFaction
-
getWallCheckMinutes
public int getWallCheckMinutes()
- Specified by:
getWallCheckMinutesin interfaceFaction
-
setWallCheckMinutes
public void setWallCheckMinutes(int wallCheckMinutes)
- Specified by:
setWallCheckMinutesin interfaceFaction
-
getBufferCheckMinutes
public int getBufferCheckMinutes()
- Specified by:
getBufferCheckMinutesin interfaceFaction
-
setBufferCheckMinutes
public void setBufferCheckMinutes(int bufferCheckMinutes)
- Specified by:
setBufferCheckMinutesin interfaceFaction
-
getChecks
public java.util.Map<java.lang.Long,java.lang.String> getChecks()
-
getPlayerBufferCheckCount
public java.util.Map<java.util.UUID,java.lang.Integer> getPlayerBufferCheckCount()
- Specified by:
getPlayerBufferCheckCountin interfaceFaction
-
getPlayerWallCheckCount
public java.util.Map<java.util.UUID,java.lang.Integer> getPlayerWallCheckCount()
- Specified by:
getPlayerWallCheckCountin interfaceFaction
-
getGuildId
public java.lang.String getGuildId()
- Specified by:
getGuildIdin interfaceFaction
-
setGuildId
public void setGuildId(java.lang.String guildId)
- Specified by:
setGuildIdin interfaceFaction
-
getMemberRoleId
public java.lang.String getMemberRoleId()
- Specified by:
getMemberRoleIdin interfaceFaction
-
getFactionChatChannelId
public java.lang.String getFactionChatChannelId()
- Specified by:
getFactionChatChannelIdin interfaceFaction
-
getWallNotifyChannelId
public java.lang.String getWallNotifyChannelId()
- Specified by:
getWallNotifyChannelIdin interfaceFaction
-
setWallNotifyChannelId
public void setWallNotifyChannelId(java.lang.String wallNotifyChannelId)
- Specified by:
setWallNotifyChannelIdin interfaceFaction
-
getBufferNotifyChannelId
public java.lang.String getBufferNotifyChannelId()
- Specified by:
getBufferNotifyChannelIdin interfaceFaction
-
setBufferNotifyChannelId
public void setBufferNotifyChannelId(java.lang.String bufferNotifyChannelId)
- Specified by:
setBufferNotifyChannelIdin interfaceFaction
-
getWeeWooChannelId
public java.lang.String getWeeWooChannelId()
- Specified by:
getWeeWooChannelIdin interfaceFaction
-
setWeeWooChannelId
public void setWeeWooChannelId(java.lang.String weeWooChannelId)
- Specified by:
setWeeWooChannelIdin interfaceFaction
-
getNotifyFormat
public java.lang.String getNotifyFormat()
- Specified by:
getNotifyFormatin interfaceFaction
-
setNotifyFormat
public void setNotifyFormat(java.lang.String notifyFormat)
- Specified by:
setNotifyFormatin interfaceFaction
-
getWeeWooFormat
public java.lang.String getWeeWooFormat()
- Specified by:
getWeeWooFormatin interfaceFaction
-
setWeeWooFormat
public void setWeeWooFormat(java.lang.String weeWooFormat)
- Specified by:
setWeeWooFormatin interfaceFaction
-
setFactionChatChannelId
public void setFactionChatChannelId(java.lang.String factionChatChannelId)
- Specified by:
setFactionChatChannelIdin interfaceFaction
-
setMemberRoleId
public void setMemberRoleId(java.lang.String memberRoleId)
- Specified by:
setMemberRoleIdin interfaceFaction
-
getCheckpoint
public org.bukkit.Location getCheckpoint()
- Specified by:
getCheckpointin interfaceFaction
-
setCheckpoint
public void setCheckpoint(org.bukkit.Location location)
- Specified by:
setCheckpointin interfaceFaction
-
clearRules
public void clearRules()
- Specified by:
clearRulesin interfaceFaction
-
isPeaceful
public boolean isPeaceful()
- Specified by:
isPeacefulin interfaceFaction
-
setPeaceful
public void setPeaceful(boolean isPeaceful)
- Specified by:
setPeacefulin interfaceFaction
-
getPeacefulExplosionsEnabled
public boolean getPeacefulExplosionsEnabled()
- Specified by:
getPeacefulExplosionsEnabledin interfaceFaction
-
setPeacefulExplosionsEnabled
public void setPeacefulExplosionsEnabled(boolean val)
- Specified by:
setPeacefulExplosionsEnabledin interfaceFaction
-
noExplosionsInTerritory
public boolean noExplosionsInTerritory()
- Specified by:
noExplosionsInTerritoryin interfaceFaction
-
isPermanent
public boolean isPermanent()
- Specified by:
isPermanentin interfaceFaction
-
setPermanent
public void setPermanent(boolean isPermanent)
- Specified by:
setPermanentin interfaceFaction
-
checkPerms
public void checkPerms()
- Specified by:
checkPermsin interfaceFaction
-
getTag
public java.lang.String getTag(java.lang.String prefix)
-
getTag
public java.lang.String getTag(Faction otherFaction)
-
getTag
public java.lang.String getTag(FPlayer otherFplayer)
-
getComparisonTag
public java.lang.String getComparisonTag()
- Specified by:
getComparisonTagin interfaceFaction
-
getDescription
public java.lang.String getDescription()
- Specified by:
getDescriptionin interfaceFaction
-
setDescription
public void setDescription(java.lang.String value)
- Specified by:
setDescriptionin interfaceFaction
-
getFoundedDate
public long getFoundedDate()
- Specified by:
getFoundedDatein interfaceFaction
-
setFoundedDate
public void setFoundedDate(long newDate)
- Specified by:
setFoundedDatein interfaceFaction
-
confirmValidHome
public void confirmValidHome()
- Specified by:
confirmValidHomein interfaceFaction
-
getAccountId
public java.lang.String getAccountId()
- Specified by:
getAccountIdin interfaceEconomyParticipator- Specified by:
getAccountIdin interfaceFaction
-
getPermanentPower
public java.lang.Integer getPermanentPower()
- Specified by:
getPermanentPowerin interfaceFaction
-
setPermanentPower
public void setPermanentPower(java.lang.Integer permanentPower)
- Specified by:
setPermanentPowerin interfaceFaction
-
hasPermanentPower
public boolean hasPermanentPower()
- Specified by:
hasPermanentPowerin interfaceFaction
-
getPowerBoost
public double getPowerBoost()
- Specified by:
getPowerBoostin interfaceFaction
-
setPowerBoost
public void setPowerBoost(double powerBoost)
- Specified by:
setPowerBoostin interfaceFaction
-
isPowerFrozen
public boolean isPowerFrozen()
- Specified by:
isPowerFrozenin interfaceFaction
-
getLastDeath
public long getLastDeath()
-
setLastDeath
public void setLastDeath(long time)
- Specified by:
setLastDeathin interfaceFaction
-
getAccess
public Access getAccess(Permissable permissable, PermissableAction permissableAction)
-
getAccess
public Access getAccess(FPlayer player, PermissableAction permissableAction)
Get the Access of a player. Will use player's Role if they are a faction member. Otherwise, uses their Relation.
-
setPermission
public boolean setPermission(Permissable permissable, PermissableAction permissableAction, Access access)
- Specified by:
setPermissionin interfaceFaction
-
resetPerms
public void resetPerms()
- Specified by:
resetPermsin interfaceFaction
-
setDefaultPerms
public void setDefaultPerms()
- Specified by:
setDefaultPermsin interfaceFaction
-
getPermissions
public java.util.Map<Permissable,java.util.Map<PermissableAction,Access>> getPermissions()
Read only map of Permissions.- Specified by:
getPermissionsin interfaceFaction- Returns:
-
getDefaultRole
public Role getDefaultRole()
- Specified by:
getDefaultRolein interfaceFaction
-
setDefaultRole
public void setDefaultRole(Role role)
- Specified by:
setDefaultRolein interfaceFaction
-
noPvPInTerritory
public boolean noPvPInTerritory()
- Specified by:
noPvPInTerritoryin interfaceFaction
-
noMonstersInTerritory
public boolean noMonstersInTerritory()
- Specified by:
noMonstersInTerritoryin interfaceFaction
-
isWilderness
public boolean isWilderness()
- Specified by:
isWildernessin interfaceFaction
-
isSafeZone
public boolean isSafeZone()
- Specified by:
isSafeZonein interfaceFaction
-
isSystemFaction
public boolean isSystemFaction()
- Specified by:
isSystemFactionin interfaceFaction
-
isPlayerFreeType
public boolean isPlayerFreeType()
- Specified by:
isPlayerFreeTypein interfaceFaction
-
describeTo
public java.lang.String describeTo(RelationParticipator that, boolean ucfirst)
- Specified by:
describeToin interfaceFaction- Specified by:
describeToin interfaceRelationParticipator
-
describeTo
public java.lang.String describeTo(RelationParticipator that)
- Specified by:
describeToin interfaceFaction- Specified by:
describeToin interfaceRelationParticipator
-
getRelationTo
public Relation getRelationTo(RelationParticipator rp)
- Specified by:
getRelationToin interfaceFaction- Specified by:
getRelationToin interfaceRelationParticipator
-
getRelationTo
public Relation getRelationTo(RelationParticipator rp, boolean ignorePeaceful)
- Specified by:
getRelationToin interfaceFaction- Specified by:
getRelationToin interfaceRelationParticipator
-
getColorTo
public org.bukkit.ChatColor getColorTo(RelationParticipator rp)
- Specified by:
getColorToin interfaceFaction- Specified by:
getColorToin interfaceRelationParticipator
-
getRelationWish
public Relation getRelationWish(Faction otherFaction)
- Specified by:
getRelationWishin interfaceFaction
-
setRelationWish
public void setRelationWish(Faction otherFaction, Relation relation)
- Specified by:
setRelationWishin interfaceFaction
-
getRelationCount
public int getRelationCount(Relation relation)
- Specified by:
getRelationCountin interfaceFaction
-
getPowerMax
public double getPowerMax()
- Specified by:
getPowerMaxin interfaceFaction
-
getPowerRounded
public int getPowerRounded()
- Specified by:
getPowerRoundedin interfaceFaction
-
getPowerMaxRounded
public int getPowerMaxRounded()
- Specified by:
getPowerMaxRoundedin interfaceFaction
-
getLandRounded
public int getLandRounded()
- Specified by:
getLandRoundedin interfaceFaction
-
getLandRoundedInWorld
public int getLandRoundedInWorld(java.lang.String worldName)
- Specified by:
getLandRoundedInWorldin interfaceFaction
-
hasLandInflation
public boolean hasLandInflation()
- Specified by:
hasLandInflationin interfaceFaction
-
refreshFPlayers
public void refreshFPlayers()
- Specified by:
refreshFPlayersin interfaceFaction
-
addFPlayer
public boolean addFPlayer(FPlayer fplayer)
- Specified by:
addFPlayerin interfaceFaction
-
removeFPlayer
public boolean removeFPlayer(FPlayer fplayer)
- Specified by:
removeFPlayerin interfaceFaction
-
addAltPlayer
public boolean addAltPlayer(FPlayer fplayer)
- Specified by:
addAltPlayerin interfaceFaction
-
removeAltPlayer
public boolean removeAltPlayer(FPlayer fplayer)
- Specified by:
removeAltPlayerin interfaceFaction
-
getFPlayers
public java.util.Set<FPlayer> getFPlayers()
- Specified by:
getFPlayersin interfaceFaction
-
getAltPlayers
public java.util.Set<FPlayer> getAltPlayers()
- Specified by:
getAltPlayersin interfaceFaction
-
getFPlayersWhereOnline
public java.util.Set<FPlayer> getFPlayersWhereOnline(boolean online)
- Specified by:
getFPlayersWhereOnlinein interfaceFaction
-
getFPlayersWhereOnline
public java.util.Set<FPlayer> getFPlayersWhereOnline(boolean online, FPlayer viewer)
- Specified by:
getFPlayersWhereOnlinein interfaceFaction
-
getFPlayerAdmin
public FPlayer getFPlayerAdmin()
- Specified by:
getFPlayerAdminin interfaceFaction
-
getFPlayerLeader
public FPlayer getFPlayerLeader()
- Specified by:
getFPlayerLeaderin interfaceFaction
-
getFPlayersWhereRole
public java.util.ArrayList<FPlayer> getFPlayersWhereRole(Role role)
- Specified by:
getFPlayersWhereRolein interfaceFaction
-
getOnlinePlayers
public java.util.ArrayList<org.bukkit.entity.Player> getOnlinePlayers()
- Specified by:
getOnlinePlayersin interfaceFaction
-
hasPlayersOnline
public boolean hasPlayersOnline()
- Specified by:
hasPlayersOnlinein interfaceFaction
-
memberLoggedOff
public void memberLoggedOff()
- Specified by:
memberLoggedOffin interfaceFaction
-
promoteNewLeader
public void promoteNewLeader()
- Specified by:
promoteNewLeaderin interfaceFaction
-
promoteNewLeader
public void promoteNewLeader(boolean autoLeave)
- Specified by:
promoteNewLeaderin interfaceFaction
-
msg
public void msg(java.lang.String message, java.lang.Object... args)- Specified by:
msgin interfaceEconomyParticipator- Specified by:
msgin interfaceFaction
-
msg
public void msg(TL translation, java.lang.Object... args)
- Specified by:
msgin interfaceEconomyParticipator
-
sendMessage
public void sendMessage(java.lang.String message)
- Specified by:
sendMessagein interfaceFaction
-
sendMessage
public void sendMessage(java.util.List<java.lang.String> messages)
- Specified by:
sendMessagein interfaceFaction
-
getClaimOwnership
public java.util.Map<FLocation,java.util.Set<java.lang.String>> getClaimOwnership()
- Specified by:
getClaimOwnershipin interfaceFaction
-
getMissions
public java.util.Map<java.lang.String,Mission> getMissions()
- Specified by:
getMissionsin interfaceFaction
-
getCompletedMissions
public java.util.List<java.lang.String> getCompletedMissions()
- Specified by:
getCompletedMissionsin interfaceFaction
-
clearAllClaimOwnership
public void clearAllClaimOwnership()
- Specified by:
clearAllClaimOwnershipin interfaceFaction
-
clearClaimOwnership
public void clearClaimOwnership(FLocation loc)
- Specified by:
clearClaimOwnershipin interfaceFaction
-
clearClaimOwnership
public void clearClaimOwnership(FPlayer player)
- Specified by:
clearClaimOwnershipin interfaceFaction
-
getCountOfClaimsWithOwners
public int getCountOfClaimsWithOwners()
- Specified by:
getCountOfClaimsWithOwnersin interfaceFaction
-
doesLocationHaveOwnersSet
public boolean doesLocationHaveOwnersSet(FLocation loc)
- Specified by:
doesLocationHaveOwnersSetin interfaceFaction
-
isPlayerInOwnerList
public boolean isPlayerInOwnerList(FPlayer player, FLocation loc)
- Specified by:
isPlayerInOwnerListin interfaceFaction
-
setPlayerAsOwner
public void setPlayerAsOwner(FPlayer player, FLocation loc)
- Specified by:
setPlayerAsOwnerin interfaceFaction
-
removePlayerAsOwner
public void removePlayerAsOwner(FPlayer player, FLocation loc)
- Specified by:
removePlayerAsOwnerin interfaceFaction
-
getOwnerList
public java.util.Set<java.lang.String> getOwnerList(FLocation loc)
- Specified by:
getOwnerListin interfaceFaction
-
getOwnerListString
public java.lang.String getOwnerListString(FLocation loc)
- Specified by:
getOwnerListStringin interfaceFaction
-
playerHasOwnershipRights
public boolean playerHasOwnershipRights(FPlayer fplayer, FLocation loc)
- Specified by:
playerHasOwnershipRightsin interfaceFaction
-
getAllClaims
public java.util.Set<FLocation> getAllClaims()
- Specified by:
getAllClaimsin interfaceFaction
-
-