public class Group extends Object implements Comparable<Group>, PermEntity
Modifier and Type | Field and Description |
---|---|
static Comparator<Group> |
RANK_COMPARATOR |
static Comparator<Group> |
WEIGHT_COMPARATOR |
Constructor and Description |
---|
Group(String name,
List<String> inheritances,
List<TimedValue<String>> timedinheritances,
List<String> perms,
List<TimedValue<String>> timedperms,
Map<String,Server> servers,
int rank,
int weight,
String ladder,
boolean isdefault,
String display,
String prefix,
String suffix) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getName, getServers, setName
getDisplay, getPerms, getPrefix, getSuffix, getTimedPerms, setDisplay, setPerms, setPrefix, setSuffix, setTimedPerms
public static final Comparator<Group> RANK_COMPARATOR
public static final Comparator<Group> WEIGHT_COMPARATOR
public Server getServer(String name)
getServer
in interface PermEntity
public boolean hasTimedPermSet(String perm)
hasTimedPermSet
in interface Permable
public boolean isDefault()
public void setIsdefault(boolean isdefault)
public List<TimedValue<Group>> getTimedInheritances()
public List<TimedValue<String>> getTimedInheritancesString()
@Deprecated public boolean has(String perm)
@Deprecated public boolean hasOnServer(String perm, String server)
@Deprecated public boolean hasOnServerInWorld(String perm, String server, String world)
public List<BPPermission> getEffectivePerms(String server, String world)
public List<BPPermission> calcEffectivePerms(String server, String world)
public void invalidateCache()
public List<BPPermission> getPermsWithOrigin(String server, String world)
public int compareTo(Group g)
compareTo
in interface Comparable<Group>
Copyright © 2019. All rights reserved.