Class WebEditorRequest
java.lang.Object
me.lucko.luckperms.common.webeditor.WebEditorRequest
Encapsulates a request to the web editor.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbyte[]encode()static WebEditorRequestgenerate(List<PermissionHolder> holders, List<Track> tracks, Sender sender, String cmdLabel, LuckPermsPlugin plugin) Generates a web editor request payload.Map<PermissionHolderIdentifier, List<net.luckperms.api.node.Node>> com.google.gson.JsonObjectstatic voidincludeMatchingGroups(List<? super Group> holders, Predicate<? super Group> filter, LuckPermsPlugin plugin) static voidincludeMatchingUsers(List<? super User> holders, Collection<ConstraintNodeMatcher<net.luckperms.api.node.Node>> matchers, boolean includeOffline, LuckPermsPlugin plugin) static voidincludeMatchingUsers(List<? super User> holders, ConstraintNodeMatcher<net.luckperms.api.node.Node> matcher, boolean includeOffline, LuckPermsPlugin plugin)
-
Field Details
-
MAX_USERS
public static final int MAX_USERS- See Also:
-
-
Method Details
-
getPayload
public com.google.gson.JsonObject getPayload() -
encode
public byte[] encode() -
getHolders
-
getTracks
-
generate
public static WebEditorRequest generate(List<PermissionHolder> holders, List<Track> tracks, Sender sender, String cmdLabel, LuckPermsPlugin plugin) Generates a web editor request payload.- Parameters:
holders- the holders to edittracks- the tracks to editsender- the sender who is creating the sessioncmdLabel- the command label used by LuckPermsplugin- the plugin- Returns:
- a payload
-
includeMatchingGroups
public static void includeMatchingGroups(List<? super Group> holders, Predicate<? super Group> filter, LuckPermsPlugin plugin) -
includeMatchingUsers
public static void includeMatchingUsers(List<? super User> holders, ConstraintNodeMatcher<net.luckperms.api.node.Node> matcher, boolean includeOffline, LuckPermsPlugin plugin) -
includeMatchingUsers
public static void includeMatchingUsers(List<? super User> holders, Collection<ConstraintNodeMatcher<net.luckperms.api.node.Node>> matchers, boolean includeOffline, LuckPermsPlugin plugin)
-