ImprovedFactions
Toggle table of contents
2.4.0
jvm
Target filter
jvm
Switch theme
Search in API
Skip to content
ImprovedFactions
ImprovedFactions
/
io.github.toberocat.improvedfactions.database.storage
/
UserSnapshot
User
Snapshot
data
class
UserSnapshot
(
val
uniqueId
:
UUID
,
val
factionId
:
Int
,
val
rankName
:
String
,
val
id
:
Int
=
0
,
val
rankId
:
Int
=
0
,
val
rankPriority
:
Int
=
-1
,
val
permissions
:
Set
<
String
>
=
emptySet()
)
Members
Members & Extensions
Constructors
User
Snapshot
Link copied to clipboard
constructor
(
uniqueId
:
UUID
,
factionId
:
Int
,
rankName
:
String
,
id
:
Int
=
0
,
rankId
:
Int
=
0
,
rankPriority
:
Int
=
-1
,
permissions
:
Set
<
String
>
=
emptySet()
)
Properties
faction
Id
Link copied to clipboard
val
factionId
:
Int
id
Link copied to clipboard
val
id
:
Int
permissions
Link copied to clipboard
val
permissions
:
Set
<
String
>
rank
Id
Link copied to clipboard
val
rankId
:
Int
rank
Name
Link copied to clipboard
val
rankName
:
String
rank
Priority
Link copied to clipboard
val
rankPriority
:
Int
unique
Id
Link copied to clipboard
val
uniqueId
:
UUID
Functions
can
Manage
Link copied to clipboard
fun
UserSnapshot
.
canManage
(
rank
:
RankSnapshot
)
:
Boolean
faction
Link copied to clipboard
fun
UserSnapshot
.
faction
(
)
:
FactionSnapshot
?
has
Permission
Link copied to clipboard
fun
UserSnapshot
.
hasPermission
(
permission
:
String
)
:
Boolean
is
Faction
Owner
Link copied to clipboard
fun
UserSnapshot
.
isFactionOwner
(
)
:
Boolean
is
In
Faction
Link copied to clipboard
fun
UserSnapshot
.
isInFaction
(
)
:
Boolean