Package com.massivecraft.factions
Interface Faction
-
- All Superinterfaces:
EconomyParticipator
,RelationParticipator
- All Known Implementing Classes:
JSONFaction
,MemoryFaction
public interface Faction extends EconomyParticipator
-
-
Method Summary
Modifier and Type Method Description boolean
addAltPlayer(FPlayer fplayer)
void
addAnnouncement(FPlayer fPlayer, java.lang.String msg)
boolean
addFPlayer(FPlayer fplayer)
void
addRule(java.lang.String rule)
void
addTnt(int amt)
void
altInvite(FPlayer fplayer)
boolean
altInvited(FPlayer fplayer)
void
ban(FPlayer target, FPlayer banner)
void
checkPerms()
void
clearAllClaimOwnership()
void
clearClaimOwnership(FLocation loc)
void
clearClaimOwnership(FPlayer player)
void
clearRules()
void
clearWarps()
void
confirmValidHome()
void
deinvite(FPlayer fplayer)
void
deinviteAllAlts()
void
deinviteAlt(FPlayer alt)
java.lang.String
describeTo(RelationParticipator that)
java.lang.String
describeTo(RelationParticipator that, boolean ucfirst)
void
disband(org.bukkit.entity.Player disbander)
void
disband(org.bukkit.entity.Player disbander, FactionDisbandEvent.PlayerDisbandReason reason)
boolean
doesLocationHaveOwnersSet(FLocation loc)
Access
getAccess(FPlayer player, PermissableAction permissableAction)
Access
getAccess(Permissable permissable, PermissableAction permissableAction)
java.lang.String
getAccountId()
java.util.Set<FLocation>
getAllClaims()
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.ItemStack
getBanner()
int
getBufferCheckMinutes()
java.lang.String
getBufferNotifyChannelId()
org.bukkit.Location
getCheckpoint()
java.util.Map<java.lang.Long,java.lang.String>
getChecks()
org.bukkit.inventory.Inventory
getChestInventory()
java.util.Map<FLocation,java.util.Set<java.lang.String>>
getClaimOwnership()
org.bukkit.ChatColor
getColorTo(RelationParticipator rp)
java.lang.String
getComparisonTag()
java.util.List<java.lang.String>
getCompletedMissions()
int
getCountOfClaimsWithOwners()
int
getDeaths()
Role
getDefaultRole()
java.lang.String
getDescription()
java.lang.String
getDiscord()
java.lang.String
getFactionChatChannelId()
java.lang.String
getFocused()
long
getFoundedDate()
FPlayer
getFPlayerAdmin()
FPlayer
getFPlayerLeader()
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.String
getGuildId()
org.bukkit.Location
getHome()
java.lang.String
getId()
java.util.Set<java.lang.String>
getInvites()
int
getKills()
int
getLandRounded()
int
getLandRoundedInWorld(java.lang.String worldName)
int
getMaxVaults()
java.lang.String
getMemberRoleId()
java.util.Map<java.lang.String,Mission>
getMissions()
java.lang.String
getNotifyFormat()
java.util.ArrayList<org.bukkit.entity.Player>
getOnlinePlayers()
boolean
getOpen()
java.util.Set<java.lang.String>
getOwnerList(FLocation loc)
java.lang.String
getOwnerListString(FLocation loc)
java.lang.String
getPaypal()
boolean
getPeacefulExplosionsEnabled()
java.lang.Integer
getPermanentPower()
java.util.Map<Permissable,java.util.Map<PermissableAction,Access>>
getPermissions()
java.util.Map<java.util.UUID,java.lang.Integer>
getPlayerBufferCheckCount()
java.util.Map<java.util.UUID,java.lang.Integer>
getPlayerWallCheckCount()
int
getPoints()
double
getPower()
double
getPowerBoost()
double
getPowerMax()
int
getPowerMaxRounded()
int
getPowerRounded()
double
getReinforcedArmor()
int
getRelationCount(Relation relation)
Relation
getRelationTo(RelationParticipator rp)
Relation
getRelationTo(RelationParticipator rp, boolean ignorePeaceful)
Relation
getRelationWish(Faction otherFaction)
java.lang.String
getRule(int index)
java.util.HashMap<java.lang.Integer,java.lang.String>
getRulesMap()
int
getSize()
int
getStrikes()
java.lang.String
getTag()
java.lang.String
getTag(Faction otherFaction)
java.lang.String
getTag(FPlayer otherFplayer)
java.lang.String
getTag(java.lang.String prefix)
int
getTnt()
int
getTntBankLimit()
int
getUpgrade(UpgradeType upgrade)
org.bukkit.Location
getVault()
int
getWallCheckMinutes()
java.lang.String
getWallNotifyChannelId()
LazyLocation
getWarp(java.lang.String name)
java.util.concurrent.ConcurrentHashMap<java.lang.String,LazyLocation>
getWarps()
int
getWarpsLimit()
java.lang.String
getWeeWooChannelId()
java.lang.String
getWeeWooFormat()
boolean
hasHome()
boolean
hasLandInflation()
boolean
hasPermanentPower()
boolean
hasPlayersOnline()
boolean
hasWarpPassword(java.lang.String warp)
void
invite(FPlayer fplayer)
boolean
isBanned(FPlayer player)
boolean
isInvited(FPlayer fplayer)
boolean
isNone()
Deprecated.boolean
isNormal()
boolean
isPeaceful()
boolean
isPermanent()
boolean
isPlayerFreeType()
boolean
isPlayerInOwnerList(FPlayer player, FLocation loc)
boolean
isPowerFrozen()
boolean
isSafeZone()
boolean
isSystemFaction()
boolean
isWarp(java.lang.String name)
boolean
isWarpPassword(java.lang.String warp, java.lang.String password)
boolean
isWarZone()
boolean
isWeeWoo()
boolean
isWilderness()
void
memberLoggedOff()
void
msg(java.lang.String message, java.lang.Object... args)
boolean
noExplosionsInTerritory()
boolean
noMonstersInTerritory()
boolean
noPvPInTerritory()
void
paypalSet(java.lang.String paypal)
boolean
playerHasOwnershipRights(FPlayer fplayer, FLocation loc)
void
promoteNewLeader()
void
promoteNewLeader(boolean autoLeave)
void
refreshFPlayers()
void
remove()
boolean
removeAltPlayer(FPlayer fplayer)
void
removeAnnouncements(FPlayer fPlayer)
boolean
removeFPlayer(FPlayer fplayer)
void
removePlayerAsOwner(FPlayer player, FLocation loc)
void
removeRule(int index)
boolean
removeWarp(java.lang.String name)
void
resetPerms()
void
sendMessage(java.lang.String message)
void
sendMessage(java.util.List<java.lang.String> messages)
void
sendUnreadAnnouncements(FPlayer fPlayer)
void
setBannerPattern(org.bukkit.inventory.ItemStack banner)
void
setBufferCheckMinutes(int minutes)
void
setBufferNotifyChannelId(java.lang.String channelId)
void
setCheckpoint(org.bukkit.Location location)
void
setChestSize(int chestSize)
void
setDefaultPerms()
void
setDefaultRole(Role role)
void
setDescription(java.lang.String value)
void
setDiscord(java.lang.String link)
void
setFactionChatChannelId(java.lang.String channelId)
void
setFocused(java.lang.String setFocused)
void
setFoundedDate(long newDate)
void
setGuildId(java.lang.String id)
void
setHome(org.bukkit.Location home)
void
setId(java.lang.String id)
void
setLastDeath(long time)
void
setMaxVaults(int value)
void
setMemberRoleId(java.lang.String roleId)
void
setNotifyFormat(java.lang.String format)
void
setOpen(boolean isOpen)
void
setPeaceful(boolean isPeaceful)
void
setPeacefulExplosionsEnabled(boolean val)
void
setPermanent(boolean isPermanent)
void
setPermanentPower(java.lang.Integer permanentPower)
boolean
setPermission(Permissable permissable, PermissableAction permissableAction, Access access)
void
setPlayerAsOwner(FPlayer player, FLocation loc)
void
setPoints(int points)
void
setPowerBoost(double powerBoost)
void
setReinforcedArmor(double percent)
void
setRelationWish(Faction otherFaction, Relation relation)
void
setStrikes(int strikes)
void
setTag(java.lang.String str)
void
setTntBankLimit(int limit)
void
setUpgrade(UpgradeType upgrade, int level)
void
setVault(org.bukkit.Location vaultLocation)
void
setWallCheckMinutes(int minutes)
void
setWallNotifyChannelId(java.lang.String channelId)
void
setWarp(java.lang.String name, LazyLocation loc)
void
setWarpPassword(java.lang.String warp, java.lang.String password)
void
setWarpsLimit(int limit)
void
setWeeWoo(boolean weeWoo)
void
setWeeWooChannelId(java.lang.String channelId)
void
setWeeWooFormat(java.lang.String format)
void
takeTnt(int amt)
void
unban(FPlayer player)
-
Methods inherited from interface com.massivecraft.factions.iface.EconomyParticipator
msg
-
-
-
-
Method Detail
-
getMemberRoleId
java.lang.String getMemberRoleId()
-
setMemberRoleId
void setMemberRoleId(java.lang.String roleId)
-
getGuildId
java.lang.String getGuildId()
-
setGuildId
void setGuildId(java.lang.String id)
-
getWallNotifyChannelId
java.lang.String getWallNotifyChannelId()
-
setWallNotifyChannelId
void setWallNotifyChannelId(java.lang.String channelId)
-
getBufferNotifyChannelId
java.lang.String getBufferNotifyChannelId()
-
setBufferNotifyChannelId
void setBufferNotifyChannelId(java.lang.String channelId)
-
getWeeWooChannelId
java.lang.String getWeeWooChannelId()
-
setWeeWooChannelId
void setWeeWooChannelId(java.lang.String channelId)
-
getNotifyFormat
java.lang.String getNotifyFormat()
-
setNotifyFormat
void setNotifyFormat(java.lang.String format)
-
getWeeWooFormat
java.lang.String getWeeWooFormat()
-
setWeeWooFormat
void setWeeWooFormat(java.lang.String format)
-
getFactionChatChannelId
java.lang.String getFactionChatChannelId()
-
setFactionChatChannelId
void setFactionChatChannelId(java.lang.String channelId)
-
getDiscord
java.lang.String getDiscord()
-
setDiscord
void setDiscord(java.lang.String link)
-
checkPerms
void checkPerms()
-
getReinforcedArmor
double getReinforcedArmor()
-
setReinforcedArmor
void setReinforcedArmor(double percent)
-
getWarpsLimit
int getWarpsLimit()
-
setWarpsLimit
void setWarpsLimit(int limit)
-
getTntBankLimit
int getTntBankLimit()
-
setTntBankLimit
void setTntBankLimit(int limit)
-
getWallCheckMinutes
int getWallCheckMinutes()
-
setWallCheckMinutes
void setWallCheckMinutes(int minutes)
-
getBufferCheckMinutes
int getBufferCheckMinutes()
-
setBufferCheckMinutes
void setBufferCheckMinutes(int minutes)
-
getChecks
java.util.Map<java.lang.Long,java.lang.String> getChecks()
-
getPlayerBufferCheckCount
java.util.Map<java.util.UUID,java.lang.Integer> getPlayerBufferCheckCount()
-
getPlayerWallCheckCount
java.util.Map<java.util.UUID,java.lang.Integer> getPlayerWallCheckCount()
-
isWeeWoo
boolean isWeeWoo()
-
setWeeWoo
void setWeeWoo(boolean weeWoo)
-
altInvited
boolean altInvited(FPlayer fplayer)
-
getMissions
java.util.Map<java.lang.String,Mission> getMissions()
-
getCompletedMissions
java.util.List<java.lang.String> getCompletedMissions()
-
deinviteAlt
void deinviteAlt(FPlayer alt)
-
deinviteAllAlts
void deinviteAllAlts()
-
altInvite
void altInvite(FPlayer fplayer)
-
addAltPlayer
boolean addAltPlayer(FPlayer fplayer)
-
removeAltPlayer
boolean removeAltPlayer(FPlayer fplayer)
-
getAltPlayers
java.util.Set<FPlayer> getAltPlayers()
-
getAnnouncements
java.util.HashMap<java.lang.String,java.util.List<java.lang.String>> getAnnouncements()
-
getWarps
java.util.concurrent.ConcurrentHashMap<java.lang.String,LazyLocation> getWarps()
-
getWarp
LazyLocation getWarp(java.lang.String name)
-
setWarp
void setWarp(java.lang.String name, LazyLocation loc)
-
isWarp
boolean isWarp(java.lang.String name)
-
hasWarpPassword
boolean hasWarpPassword(java.lang.String warp)
-
isWarpPassword
boolean isWarpPassword(java.lang.String warp, java.lang.String password)
-
setWarpPassword
void setWarpPassword(java.lang.String warp, java.lang.String password)
-
removeWarp
boolean removeWarp(java.lang.String name)
-
clearWarps
void clearWarps()
-
getMaxVaults
int getMaxVaults()
-
setMaxVaults
void setMaxVaults(int value)
-
addAnnouncement
void addAnnouncement(FPlayer fPlayer, java.lang.String msg)
-
sendUnreadAnnouncements
void sendUnreadAnnouncements(FPlayer fPlayer)
-
removeAnnouncements
void removeAnnouncements(FPlayer fPlayer)
-
getInvites
java.util.Set<java.lang.String> getInvites()
-
getFocused
java.lang.String getFocused()
-
setFocused
void setFocused(java.lang.String setFocused)
-
getId
java.lang.String getId()
-
setId
void setId(java.lang.String id)
-
invite
void invite(FPlayer fplayer)
-
deinvite
void deinvite(FPlayer fplayer)
-
setUpgrade
void setUpgrade(UpgradeType upgrade, int level)
-
getUpgrade
int getUpgrade(UpgradeType upgrade)
-
isInvited
boolean isInvited(FPlayer fplayer)
-
getPoints
int getPoints()
-
setPoints
void setPoints(int points)
-
getStrikes
int getStrikes()
-
setStrikes
void setStrikes(int strikes)
-
unban
void unban(FPlayer player)
-
isBanned
boolean isBanned(FPlayer player)
-
getBannedPlayers
java.util.Set<BanInfo> getBannedPlayers()
-
getRulesMap
java.util.HashMap<java.lang.Integer,java.lang.String> getRulesMap()
-
addRule
void addRule(java.lang.String rule)
-
removeRule
void removeRule(int index)
-
clearRules
void clearRules()
-
getCheckpoint
org.bukkit.Location getCheckpoint()
-
setCheckpoint
void setCheckpoint(org.bukkit.Location location)
-
addTnt
void addTnt(int amt)
-
takeTnt
void takeTnt(int amt)
-
getVault
org.bukkit.Location getVault()
-
setVault
void setVault(org.bukkit.Location vaultLocation)
-
getChestInventory
org.bukkit.inventory.Inventory getChestInventory()
-
setChestSize
void setChestSize(int chestSize)
-
setBannerPattern
void setBannerPattern(org.bukkit.inventory.ItemStack banner)
-
getBanner
org.bukkit.inventory.ItemStack getBanner()
-
getTnt
int getTnt()
-
getRule
java.lang.String getRule(int index)
-
getOpen
boolean getOpen()
-
setOpen
void setOpen(boolean isOpen)
-
isPeaceful
boolean isPeaceful()
-
setPeaceful
void setPeaceful(boolean isPeaceful)
-
getPeacefulExplosionsEnabled
boolean getPeacefulExplosionsEnabled()
-
setPeacefulExplosionsEnabled
void setPeacefulExplosionsEnabled(boolean val)
-
noExplosionsInTerritory
boolean noExplosionsInTerritory()
-
isPermanent
boolean isPermanent()
-
setPermanent
void setPermanent(boolean isPermanent)
-
getTag
java.lang.String getTag()
-
setTag
void setTag(java.lang.String str)
-
getTag
java.lang.String getTag(java.lang.String prefix)
-
getTag
java.lang.String getTag(Faction otherFaction)
-
getTag
java.lang.String getTag(FPlayer otherFplayer)
-
getComparisonTag
java.lang.String getComparisonTag()
-
getDescription
java.lang.String getDescription()
-
setDescription
void setDescription(java.lang.String value)
-
hasHome
boolean hasHome()
-
getHome
org.bukkit.Location getHome()
-
setHome
void setHome(org.bukkit.Location home)
-
getFoundedDate
long getFoundedDate()
-
setFoundedDate
void setFoundedDate(long newDate)
-
confirmValidHome
void confirmValidHome()
-
getAccountId
java.lang.String getAccountId()
- Specified by:
getAccountId
in interfaceEconomyParticipator
-
getPermanentPower
java.lang.Integer getPermanentPower()
-
setPermanentPower
void setPermanentPower(java.lang.Integer permanentPower)
-
hasPermanentPower
boolean hasPermanentPower()
-
getPowerBoost
double getPowerBoost()
-
setPowerBoost
void setPowerBoost(double powerBoost)
-
noPvPInTerritory
boolean noPvPInTerritory()
-
noMonstersInTerritory
boolean noMonstersInTerritory()
-
isNormal
boolean isNormal()
-
isSystemFaction
boolean isSystemFaction()
-
isNone
@Deprecated boolean isNone()
Deprecated.
-
isWilderness
boolean isWilderness()
-
isSafeZone
boolean isSafeZone()
-
isWarZone
boolean isWarZone()
-
isPlayerFreeType
boolean isPlayerFreeType()
-
isPowerFrozen
boolean isPowerFrozen()
-
setLastDeath
void setLastDeath(long time)
-
getKills
int getKills()
-
getDeaths
int getDeaths()
-
getAccess
Access getAccess(Permissable permissable, PermissableAction permissableAction)
-
getAccess
Access getAccess(FPlayer player, PermissableAction permissableAction)
-
setPermission
boolean setPermission(Permissable permissable, PermissableAction permissableAction, Access access)
-
resetPerms
void resetPerms()
-
setDefaultPerms
void setDefaultPerms()
-
disband
void disband(org.bukkit.entity.Player disbander)
-
disband
void disband(org.bukkit.entity.Player disbander, FactionDisbandEvent.PlayerDisbandReason reason)
-
getPermissions
java.util.Map<Permissable,java.util.Map<PermissableAction,Access>> getPermissions()
-
describeTo
java.lang.String describeTo(RelationParticipator that, boolean ucfirst)
- Specified by:
describeTo
in interfaceRelationParticipator
-
describeTo
java.lang.String describeTo(RelationParticipator that)
- Specified by:
describeTo
in interfaceRelationParticipator
-
getRelationTo
Relation getRelationTo(RelationParticipator rp)
- Specified by:
getRelationTo
in interfaceRelationParticipator
-
getRelationTo
Relation getRelationTo(RelationParticipator rp, boolean ignorePeaceful)
- Specified by:
getRelationTo
in interfaceRelationParticipator
-
getColorTo
org.bukkit.ChatColor getColorTo(RelationParticipator rp)
- Specified by:
getColorTo
in interfaceRelationParticipator
-
getRelationCount
int getRelationCount(Relation relation)
-
getPower
double getPower()
-
getPowerMax
double getPowerMax()
-
getPowerRounded
int getPowerRounded()
-
getPowerMaxRounded
int getPowerMaxRounded()
-
getLandRounded
int getLandRounded()
-
getLandRoundedInWorld
int getLandRoundedInWorld(java.lang.String worldName)
-
hasLandInflation
boolean hasLandInflation()
-
refreshFPlayers
void refreshFPlayers()
-
addFPlayer
boolean addFPlayer(FPlayer fplayer)
-
removeFPlayer
boolean removeFPlayer(FPlayer fplayer)
-
getSize
int getSize()
-
getFPlayers
java.util.Set<FPlayer> getFPlayers()
-
getFPlayersWhereOnline
java.util.Set<FPlayer> getFPlayersWhereOnline(boolean online)
-
getFPlayersWhereOnline
java.util.Set<FPlayer> getFPlayersWhereOnline(boolean online, FPlayer viewer)
-
getFPlayerAdmin
FPlayer getFPlayerAdmin()
-
getFPlayerLeader
FPlayer getFPlayerLeader()
-
getOnlinePlayers
java.util.ArrayList<org.bukkit.entity.Player> getOnlinePlayers()
-
hasPlayersOnline
boolean hasPlayersOnline()
-
memberLoggedOff
void memberLoggedOff()
-
promoteNewLeader
void promoteNewLeader()
-
promoteNewLeader
void promoteNewLeader(boolean autoLeave)
-
getDefaultRole
Role getDefaultRole()
-
setDefaultRole
void setDefaultRole(Role role)
-
msg
void msg(java.lang.String message, java.lang.Object... args)
- Specified by:
msg
in interfaceEconomyParticipator
-
sendMessage
void sendMessage(java.lang.String message)
-
sendMessage
void sendMessage(java.util.List<java.lang.String> messages)
-
getClaimOwnership
java.util.Map<FLocation,java.util.Set<java.lang.String>> getClaimOwnership()
-
clearAllClaimOwnership
void clearAllClaimOwnership()
-
clearClaimOwnership
void clearClaimOwnership(FLocation loc)
-
clearClaimOwnership
void clearClaimOwnership(FPlayer player)
-
getCountOfClaimsWithOwners
int getCountOfClaimsWithOwners()
-
doesLocationHaveOwnersSet
boolean doesLocationHaveOwnersSet(FLocation loc)
-
getOwnerList
java.util.Set<java.lang.String> getOwnerList(FLocation loc)
-
getOwnerListString
java.lang.String getOwnerListString(FLocation loc)
-
remove
void remove()
-
getAllClaims
java.util.Set<FLocation> getAllClaims()
-
getPaypal
java.lang.String getPaypal()
-
paypalSet
void paypalSet(java.lang.String paypal)
-
-