Package dev.kitteh.factions.data
Class MemoryFaction.Zone
java.lang.Object
dev.kitteh.factions.data.MemoryFaction.Zone
- All Implemented Interfaces:
Faction.Zone
- Enclosing class:
MemoryFaction
-
Method Summary
Modifier and TypeMethodDescriptionbooleancanPlayerManage(FPlayer fPlayer) Gets if the given player can manage this zone, meaning they have the ZONE permission for specifically this zone (if not overridden).net.kyori.adventure.text.Componentgreeting()Gets the zone's greeting.voidSets the zone's greeting in MiniMessage format.@Nullable StringGets the zone's raw MiniMessage greeting.intid()Gets the zone's internal ID.name()Gets the zone's name.voidSets the zone's name.Gets the zone's permissions.
-
Method Details
-
id
public int id()Description copied from interface:Faction.ZoneGets the zone's internal ID.- Specified by:
idin interfaceFaction.Zone- Returns:
- zone id
-
name
Description copied from interface:Faction.ZoneGets the zone's name.- Specified by:
namein interfaceFaction.Zone- Returns:
- zone name
-
name
Description copied from interface:Faction.ZoneSets the zone's name.- Specified by:
namein interfaceFaction.Zone- Parameters:
name- new name
-
greeting
public net.kyori.adventure.text.Component greeting()Description copied from interface:Faction.ZoneGets the zone's greeting.- Specified by:
greetingin interfaceFaction.Zone- Returns:
- greeting
-
greetingString
Description copied from interface:Faction.ZoneGets the zone's raw MiniMessage greeting.- Specified by:
greetingStringin interfaceFaction.Zone- Returns:
- MiniMessage greeting or null if the zone uses the main zone's greeting
-
greeting
Description copied from interface:Faction.ZoneSets the zone's greeting in MiniMessage format. Takes the 'tag' placeholder to inject the faction tag. If null, will default to the main zone's greeting.- Specified by:
greetingin interfaceFaction.Zone- Parameters:
greeting- new greeting
-
permissions
Description copied from interface:Faction.ZoneGets the zone's permissions.- Specified by:
permissionsin interfaceFaction.Zone- Returns:
- zone permissions
-
canPlayerManage
Description copied from interface:Faction.ZoneGets if the given player can manage this zone, meaning they have the ZONE permission for specifically this zone (if not overridden).- Specified by:
canPlayerManagein interfaceFaction.Zone- Parameters:
fPlayer- player- Returns:
- true if can manage
-