(self["webpackChunkluckperms_web"]=self["webpackChunkluckperms_web"]||[]).push([[419],{2738:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return l}});var s=function(){var e=this;e._self._c;return e._m(0)},a=[function(){var e=this,t=e._self._c;return t("section",[t("h2",{attrs:{id:"intro",tabindex:"-1"}},[e._v("Intro "),t("a",{staticClass:"header-anchor",attrs:{href:"#intro"}},[e._v("🔗")])]),t("p",[e._v("Whilst the basics of LuckPerms are fairly simple, you can leverage a number of features and internal rules to setup an advanced permission system.")]),t("h2",{attrs:{id:"server-and-world-specific-permissions",tabindex:"-1"}},[e._v("Server and World specific permissions "),t("a",{staticClass:"header-anchor",attrs:{href:"#server-and-world-specific-permissions"}},[e._v("🔗")])]),t("p",[e._v("LuckPerms is designed for multi-server networks. You can define permissions that only apply on certain servers and in certain worlds.")]),t("h4",{attrs:{id:"some-important-config-options",tabindex:"-1"}},[e._v("Some important config options: "),t("a",{staticClass:"header-anchor",attrs:{href:"#some-important-config-options"}},[e._v("🔗")])]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs language-yml"}},[t("span",{pre:!0,attrs:{class:"hljs-comment"}},[e._v("# The name of the server, used for server specific permissions. Set to 'global' to disable.")]),e._v("\n"),t("span",{pre:!0,attrs:{class:"hljs-attr"}},[e._v("server:")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-string"}},[e._v("global")]),e._v("\n")])]),t("p",[e._v("This is the name of the server. If you want to set server specific permissions, you need to name your server by changing this option. Servers in your network can share the same name if you like.")]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs language-yml"}},[t("span",{pre:!0,attrs:{class:"hljs-comment"}},[e._v("# If users on this server should have their global permissions/groups applied.")]),e._v("\n"),t("span",{pre:!0,attrs:{class:"hljs-attr"}},[e._v("include-global:")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-literal"}},[e._v("true")]),e._v("\n")])]),t("p",[e._v("The include global option is also important.")]),t("p",[e._v("Permissions in LuckPerms are either server specific (they only apply on certain servers) or global (they apply on all servers).")]),t("p",[e._v("By setting the above option to "),t("strong",[e._v("false")]),e._v(", only permissions that are explicitly set on that server will be applied. Global (or non-server-specific) permissions will not apply.")]),t("p",[e._v("By changing these two options, you can setup super flexible & powerful per-server permissions and groups.")]),t("h3",{attrs:{id:"examples",tabindex:"-1"}},[e._v("Examples "),t("a",{staticClass:"header-anchor",attrs:{href:"#examples"}},[e._v("🔗")])]),t("h4",{attrs:{id:"example-1",tabindex:"-1"}},[e._v("Example 1 "),t("a",{staticClass:"header-anchor",attrs:{href:"#example-1"}},[e._v("🔗")])]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs language-yml"}},[t("span",{pre:!0,attrs:{class:"hljs-attr"}},[e._v("server:")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-string"}},[e._v("global")]),e._v("\n"),t("span",{pre:!0,attrs:{class:"hljs-attr"}},[e._v("include-global:")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-literal"}},[e._v("true")]),e._v("\n")])]),t("ul",[t("li",[e._v("/luckperms user Luck set minecraft.command.gamemode true "),t("strong",[e._v("WILL APPLY")])]),t("li",[e._v("/luckperms user Luck set minecraft.command.gamemode true factions "),t("strong",[e._v("WILL NOT APPLY")]),e._v(' while not on the server "factions"')])]),t("h4",{attrs:{id:"example-2",tabindex:"-1"}},[e._v("Example 2 "),t("a",{staticClass:"header-anchor",attrs:{href:"#example-2"}},[e._v("🔗")])]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs language-yml"}},[t("span",{pre:!0,attrs:{class:"hljs-attr"}},[e._v("server:")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-string"}},[e._v("lobby")]),e._v("\n"),t("span",{pre:!0,attrs:{class:"hljs-attr"}},[e._v("include-global:")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-literal"}},[e._v("true")]),e._v("\n")])]),t("ul",[t("li",[e._v("/luckperms user Luck set minecraft.command.gamemode true "),t("strong",[e._v("WILL APPLY")])]),t("li",[e._v("/luckperms user Luck set minecraft.command.gamemode true lobby "),t("strong",[e._v("WILL APPLY")])])]),t("h4",{attrs:{id:"example-3",tabindex:"-1"}},[e._v("Example 3 "),t("a",{staticClass:"header-anchor",attrs:{href:"#example-3"}},[e._v("🔗")])]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs language-yml"}},[t("span",{pre:!0,attrs:{class:"hljs-attr"}},[e._v("server:")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-string"}},[e._v("bungeecord")]),e._v("\n"),t("span",{pre:!0,attrs:{class:"hljs-attr"}},[e._v("include-global:")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-literal"}},[e._v("false")]),e._v("\n")])]),t("ul",[t("li",[e._v("/luckperms user Luck set minecraft.command.gamemode true "),t("strong",[e._v("WILL NOT APPLY")])]),t("li",[e._v("/luckperms user Luck set bungeecord.command.alert true bungeecord "),t("strong",[e._v("WILL APPLY")])])]),t("h4",{attrs:{id:"example-4",tabindex:"-1"}},[e._v("Example 4 "),t("a",{staticClass:"header-anchor",attrs:{href:"#example-4"}},[e._v("🔗")])]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs language-yml"}},[t("span",{pre:!0,attrs:{class:"hljs-attr"}},[e._v("server:")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-string"}},[e._v("global")]),e._v("\n"),t("span",{pre:!0,attrs:{class:"hljs-attr"}},[e._v("include-global:")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-literal"}},[e._v("false")]),e._v("\n")])]),t("p",[t("strong",[e._v("NO PERMISSIONS WILL APPLY")])]),t("p",[e._v("If no server is defined, and global permissions are not being included, then nothing will be applying.")]),t("h2",{attrs:{id:"permission-calculation",tabindex:"-1"}},[e._v("Permission Calculation "),t("a",{staticClass:"header-anchor",attrs:{href:"#permission-calculation"}},[e._v("🔗")])]),t("h3",{attrs:{id:"permissions-are-calculated-based-on-a-priority-system-as-follows",tabindex:"-1"}},[e._v("Permissions are calculated based on a priority system as follows. "),t("a",{staticClass:"header-anchor",attrs:{href:"#permissions-are-calculated-based-on-a-priority-system-as-follows"}},[e._v("🔗")])]),t("ul",[t("li",[t("strong",[e._v("Server specific permissions will override generic/global permissions.")])])]),t("p",[e._v('Example: if a user has a global "fly.use" permission, and then has a negated "fly.use" permission on the "factions" server, the server specific permission will override the globally defined one, and the user will be granted the negated node (provided they\'re on that server).')]),t("ul",[t("li",[t("strong",[e._v("World specific permissions will override generic permissions.")])])]),t("p",[e._v('Example: if a user has a global "fly.use" permission, and then has a negated "fly.use" permission in the "world_nether" world, the world specific permission will override the globally defined one, and the user will be granted the negated node (provided they\'re in that world, of course.).')]),t("ul",[t("li",[t("strong",[e._v("Temporary permissions will override non-temporary permissions.")])])]),t("p",[e._v('Example: if a user has a false permission set for "test.node", and a temporary true permission set for "test.node", the temporary permission will override the permanent one, and the user will be granted the true node for the duration defined for that temporary permission.')]),t("ul",[t("li",[t("strong",[e._v("Wildcard/regex permissions will be overridden by normal permissions")])])]),t("p",[e._v('Example: if a user has a true permission set for "luckperms.*", and a false permission set for "luckperms.something", the non-wildcard permission will override the wildcard, and "luckperms.something" will be set to false, despite the wildcard.')]),t("ul",[t("li",[t("strong",[e._v("Temporary permissions will override other temporary permissions with a longer expiry time")])])]),t("p",[e._v('Example: if a user has a temporary true permission set for "fly.use" that expires in 1 day, and a temporary false permission set for "fly.use" that expires in 1 hour, the temporary permission expiring in 1 hour will override the one expiring in 1 day, and the negative node will take precedence for the duration of 1 hour.')]),t("ul",[t("li",[t("strong",[e._v("More specific wildcards override less specific ones")])])]),t("p",[e._v('Example: if a user has "luckperms.*" set to true, but "luckperms.user.*" set to false, all of the user permissions will be set to false, despite the more generic wildcard for "luckperms.*".')]),t("ul",[t("li",[t("strong",[e._v("Inherited permissions will be overridden by an objects own permissions.")])])]),t("p",[e._v('Example: A user is a member of the default group, which grants "some.thing.perm", but the users own permissions has "some.thing.perm" set to false. The inherited permission will be overridden by the users own permissions, and the user will be granted the negative node.')]),t("h2",{attrs:{id:"temporary-permissions",tabindex:"-1"}},[e._v("Temporary Permissions "),t("a",{staticClass:"header-anchor",attrs:{href:"#temporary-permissions"}},[e._v("🔗")])]),t("p",[e._v("Temporary permissions are audited once every 3 seconds, to check if they have expired. This check happens regardless of the sync interval setting. This means that you can safely set temporary permissions to expire after a matter of seconds, and they will be removed on-time.")]),t("h2",{attrs:{id:"shorthand-permissions",tabindex:"-1"}},[e._v("Shorthand Permissions "),t("a",{staticClass:"header-anchor",attrs:{href:"#shorthand-permissions"}},[e._v("🔗")])]),t("p",[e._v("LuckPerms has it's own system (although it's quite similar to PermissionsEx 😛) that allows you to set permissions in a shorthand format.")]),t("h3",{attrs:{id:"examples-1",tabindex:"-1"}},[e._v("Examples "),t("a",{staticClass:"header-anchor",attrs:{href:"#examples-1"}},[e._v("🔗")])]),t("h4",{attrs:{id:"example-1-1",tabindex:"-1"}},[e._v("Example 1 "),t("a",{staticClass:"header-anchor",attrs:{href:"#example-1-1"}},[e._v("🔗")])]),t("p",[e._v("Using the LuckPerms permission nodes as an example, say for instance, you wanted to let a user set and unset permissions for both groups and users.")]),t("p",[e._v("Without shorthand, you would have to apply 4 nodes.")]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs"}},[e._v("luckperms.user.setpermission\nluckperms.user.unsetpermission\nluckperms."),t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("group")]),e._v(".setpermission\nluckperms."),t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("group")]),e._v(".unsetpermission\n")])]),t("p",[e._v("However, with shorthand, you can just apply the following node:")]),t("p",[t("code",{pre:!0},[e._v("luckperms.{user,group}.{setpermission,unsetpermission}")])]),t("p",[e._v("You use curly brackets to define part of a node as a shorthand group, and then use the comma character "),t("code",{pre:!0},[e._v(",")]),e._v(" to separate entries.")]),t("h4",{attrs:{id:"example-2-1",tabindex:"-1"}},[e._v("Example 2 "),t("a",{staticClass:"header-anchor",attrs:{href:"#example-2-1"}},[e._v("🔗")])]),t("p",[e._v("You can use the "),t("code",{pre:!0},[e._v("-")]),e._v(" character to create character ranges. Without shorthand, you would have to apply 4 nodes.")]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs"}},[e._v("coolkits.kit.a\ncoolkits.kit.b\ncoolkits.kit.c\ncoolkits.kit.d\n")])]),t("p",[e._v("However, with shorthand, you can just apply the following node:")]),t("p",[t("code",{pre:!0},[e._v("coolkits.kit.{a-d}")])]),t("h4",{attrs:{id:"example-3-1",tabindex:"-1"}},[e._v("Example 3 "),t("a",{staticClass:"header-anchor",attrs:{href:"#example-3-1"}},[e._v("🔗")])]),t("p",[e._v("You can use the "),t("code",{pre:!0},[e._v("-")]),e._v(" character to create number ranges. Without shorthand, you would have to apply 4 nodes.")]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs"}},[e._v("prisonmines.teleport.1\nprisonmines.teleport.2\nprisonmines.teleport.3\nprisonmines.teleport.4\n")])]),t("p",[e._v("However, with shorthand, you can just apply the following node:")]),t("p",[t("code",{pre:!0},[e._v("prisonmines.teleport.{1-4}")])]),t("h2",{attrs:{id:"regex",tabindex:"-1"}},[e._v("Regex "),t("a",{staticClass:"header-anchor",attrs:{href:"#regex"}},[e._v("🔗")])]),t("p",[e._v("LuckPerms has support for regex when defining permission nodes.")]),t("p",[e._v('Whenever regex is used, it MUST be prefixed with "R=", so LuckPerms knows to treat it as regex, and not as a normal string.')]),t("p",[e._v("For example, if you wanted a user to be able to create both groups and tracks, you would normally just add the two permission nodes. However with regex, you can just add one. "),t("code",{pre:!0},[e._v("luckperms\\.create.*")]),e._v(" Remember to escape any characters (including dots) as the entire node will be parsed.")])])}],o=r(845),i={},n=(0,o.A)(i,s,a,!1,null,null,null),l=n.exports},5482:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return l}});var s=function(){var e=this;e._self._c;return e._m(0)},a=[function(){var e=this,t=e._self._c;return t("section",[t("p",[e._v("This page documents the "),t("a",{attrs:{href:"Configuration#argument-based-command-permissions"}},[t("code",{pre:!0},[e._v("argument-based-command-permissions")])]),e._v(" configuration option.")]),t("p",[t("strong",[e._v("For any of the following permissions to work, you must first enable "),t("a",{attrs:{href:"Configuration#argument-based-command-permissions"}},[t("code",{pre:!0},[e._v("argument-based-command-permissions: true")])]),e._v(" in your "),t("a",{attrs:{href:"Configuration#argument-based-command-permissions"}},[e._v("config.yml")])]),e._v("!")]),t("p",[e._v("When this option is enabled, LuckPerms will run extra permission checks when a player tries to modify or view permission data.")]),t("p",[e._v("These permissions allow for finer control over what changes a player is able to do, including preventing them from granting specific groups, or making changes in certain contexts.")]),t("p",[e._v("The extra checks can be broken down into 3 sections.")]),t("h3",{attrs:{id:"contents",tabindex:"-1"}},[e._v("Contents "),t("a",{staticClass:"header-anchor",attrs:{href:"#contents"}},[e._v("🔗")])]),t("ul",[t("li",[t("a",{attrs:{href:"#checks-when-a-player-modifiesviews-themselves-or-other-users"}},[t("strong",[e._v("Checks when a player modifies/views themselves or other users")])]),t("ul",[t("li",[t("a",{attrs:{href:"#modify-self"}},[e._v("Modify self")])]),t("li",[t("a",{attrs:{href:"#modify-another-player"}},[e._v("Modify another player")])]),t("li",[t("a",{attrs:{href:"#view-self"}},[e._v("View self")])]),t("li",[t("a",{attrs:{href:"#view-another-player"}},[e._v("View another player")])])])]),t("li",[t("a",{attrs:{href:"#checks-when-a-player-modifiesviews-a-group"}},[t("strong",[e._v("Checks when a player modifies/views a group")])]),t("ul",[t("li",[t("a",{attrs:{href:"#modify-a-group"}},[e._v("Modify a group")])]),t("li",[t("a",{attrs:{href:"#view-a-group"}},[e._v("View a group")])])])]),t("li",[t("a",{attrs:{href:"#checks-when-a-player-makes-changes-in-a-specific-context"}},[t("strong",[e._v("Checks when a player makes changes in a specific context")])]),t("ul",[t("li",[t("a",{attrs:{href:"#change-in-the-global-context"}},[e._v("Change in the global context")])]),t("li",[t("a",{attrs:{href:"#change-in-a-specific-set-of-contexts"}},[e._v("Change in a specific set of contexts")])])])]),t("li",[t("a",{attrs:{href:"#checks-when-a-player-makes-changes-with-a-set-of-specific-arguments"}},[t("strong",[e._v("Checks when a player makes changes with a set of specific arguments")])])])]),t("h2",{attrs:{id:"checks-when-a-player-modifiesviews-themselves-or-other-users",tabindex:"-1"}},[e._v("Checks when a player modifies/views themselves or other users "),t("a",{staticClass:"header-anchor",attrs:{href:"#checks-when-a-player-modifiesviews-themselves-or-other-users"}},[e._v("🔗")])]),t("h3",{attrs:{id:"modify-self",tabindex:"-1"}},[e._v("Modify self "),t("a",{staticClass:"header-anchor",attrs:{href:"#modify-self"}},[e._v("🔗")])]),t("p",[e._v("When a player tries to use a command to modify themselves, LuckPerms will first check for "),t("code",{pre:!0},[e._v("[base command permission].modify.self")]),e._v(". If this returns true, the action is will be allowed. If it returns false, the action will not be allowed.")]),t("p",[e._v("If the player does not have a value set for the check (in other words, it's undefined), LuckPerms will then check for "),t("code",{pre:!0},[e._v("luckperms.modify.user.self")]),e._v(" to obtain a result. If neither checks return true, the action is not allowed.")]),t("h4",{attrs:{id:"example",tabindex:"-1"}},[e._v("Example "),t("a",{staticClass:"header-anchor",attrs:{href:"#example"}},[e._v("🔗")])]),t("p",[e._v("For example, if I run "),t("code",{pre:!0},[e._v("/lp user Luck clear")]),e._v(", LuckPerms will check for the following permissions in this order.")]),t("ul",[t("li",[t("code",{pre:!0},[e._v("luckperms.user.clear")])]),t("li",[t("code",{pre:!0},[e._v("luckperms.user.clear.modify.self")]),e._v(" (if this check returns true, the next permission will not be checked)")]),t("li",[t("code",{pre:!0},[e._v("luckperms.modify.user.self")])])]),t("p",[e._v("If any of the checks return false, the action will not be allowed.")]),t("h3",{attrs:{id:"modify-another-player",tabindex:"-1"}},[e._v("Modify another player "),t("a",{staticClass:"header-anchor",attrs:{href:"#modify-another-player"}},[e._v("🔗")])]),t("p",[e._v("When a player tries to use a command to modify another user, LuckPerms will first check for "),t("code",{pre:!0},[e._v("[base command permission].modify.others")]),e._v(". If this returns true, the action is will be allowed. If it returns false, the action will not be allowed.")]),t("p",[e._v("If the player does not have a value set for the check (in other words, it's undefined), LuckPerms will then check for "),t("code",{pre:!0},[e._v("luckperms.modify.user.others")]),e._v(" to obtain a result. If neither checks return true, the action is not allowed.")]),t("h4",{attrs:{id:"example-1",tabindex:"-1"}},[e._v("Example "),t("a",{staticClass:"header-anchor",attrs:{href:"#example-1"}},[e._v("🔗")])]),t("p",[e._v("For example, if I run "),t("code",{pre:!0},[e._v("/lp user Notch clear")]),e._v(", LuckPerms will check for the following permissions in this order.")]),t("ul",[t("li",[t("code",{pre:!0},[e._v("luckperms.user.clear")])]),t("li",[t("code",{pre:!0},[e._v("luckperms.user.clear.modify.others")]),e._v(" (if this check returns true/false, the next permission will not be checked)")]),t("li",[t("code",{pre:!0},[e._v("luckperms.modify.user.others")])])]),t("p",[e._v("If any of the checks return false, the action will not be allowed.")]),t("h3",{attrs:{id:"view-self",tabindex:"-1"}},[e._v("View self "),t("a",{staticClass:"header-anchor",attrs:{href:"#view-self"}},[e._v("🔗")])]),t("p",[e._v("When a player tries to use a command to view data about themselves, LuckPerms will first check for "),t("code",{pre:!0},[e._v("[base command permission].view.self")]),e._v(". If this returns true, the action is will be allowed. If it returns false, the action will not be allowed.")]),t("p",[e._v("If the player does not have a value set for the check (in other words, it's undefined), LuckPerms will then check for "),t("code",{pre:!0},[e._v("luckperms.view.user.self")]),e._v(" to obtain a result. If neither checks return true, the action is not allowed.")]),t("h4",{attrs:{id:"example-2",tabindex:"-1"}},[e._v("Example "),t("a",{staticClass:"header-anchor",attrs:{href:"#example-2"}},[e._v("🔗")])]),t("p",[e._v("For example, if I run "),t("code",{pre:!0},[e._v("/lp user Luck permission info")]),e._v(", LuckPerms will check for the following permissions in this order.")]),t("ul",[t("li",[t("code",{pre:!0},[e._v("luckperms.user.permission.info")])]),t("li",[t("code",{pre:!0},[e._v("luckperms.user.permission.info.view.self")]),e._v(" (if this check returns true/false, the next permission will not be checked)")]),t("li",[t("code",{pre:!0},[e._v("luckperms.view.user.self")])])]),t("p",[e._v("If any of the checks return false, the action will not be allowed.")]),t("h3",{attrs:{id:"view-another-player",tabindex:"-1"}},[e._v("View another player "),t("a",{staticClass:"header-anchor",attrs:{href:"#view-another-player"}},[e._v("🔗")])]),t("p",[e._v("When a player tries to use a command to view data about another user, LuckPerms will first check for "),t("code",{pre:!0},[e._v("[base command permission].view.others")]),e._v(". If this returns true, the action is will be allowed. If it returns false, the action will not be allowed.")]),t("p",[e._v("If the player does not have a value set for the check (in other words, it's undefined), LuckPerms will then check for "),t("code",{pre:!0},[e._v("luckperms.view.user.others")]),e._v(" to obtain a result. If neither checks return true, the action is not allowed.")]),t("h4",{attrs:{id:"example-3",tabindex:"-1"}},[e._v("Example "),t("a",{staticClass:"header-anchor",attrs:{href:"#example-3"}},[e._v("🔗")])]),t("p",[e._v("For example, if I run "),t("code",{pre:!0},[e._v("/lp user Notch permission info")]),e._v(", LuckPerms will check for the following permissions in this order.")]),t("ul",[t("li",[t("code",{pre:!0},[e._v("luckperms.user.permission.info")])]),t("li",[t("code",{pre:!0},[e._v("luckperms.user.permission.info.view.others")]),e._v(" (if this check returns true/false, the next permission will not be checked)")]),t("li",[t("code",{pre:!0},[e._v("luckperms.view.user.others")])])]),t("p",[e._v("If any of the checks return false, the action will not be allowed.")]),t("h2",{attrs:{id:"checks-when-a-player-modifiesviews-a-group",tabindex:"-1"}},[e._v("Checks when a player modifies/views a group "),t("a",{staticClass:"header-anchor",attrs:{href:"#checks-when-a-player-modifiesviews-a-group"}},[e._v("🔗")])]),t("h3",{attrs:{id:"modify-a-group",tabindex:"-1"}},[e._v("Modify a group "),t("a",{staticClass:"header-anchor",attrs:{href:"#modify-a-group"}},[e._v("🔗")])]),t("p",[e._v("When a player tries to use a command to modify a group, LuckPerms will first check for "),t("code",{pre:!0},[e._v("[base command permission].modify.[group name]")]),e._v(". If this returns true, the action is will be allowed. If it returns false, the action will not be allowed.")]),t("p",[e._v("If the player does not have a value set for the check (in other words, it's undefined), LuckPerms will then check for "),t("code",{pre:!0},[e._v("luckperms.modify.group.[group name]")]),e._v(" to obtain a result. If neither checks return true, the action is not allowed.")]),t("h4",{attrs:{id:"example-4",tabindex:"-1"}},[e._v("Example "),t("a",{staticClass:"header-anchor",attrs:{href:"#example-4"}},[e._v("🔗")])]),t("p",[e._v("For example, if I run "),t("code",{pre:!0},[e._v("/lp group admin clear")]),e._v(", LuckPerms will check for the following permissions in this order.")]),t("ul",[t("li",[t("code",{pre:!0},[e._v("luckperms.group.clear")])]),t("li",[t("code",{pre:!0},[e._v("luckperms.group.clear.modify.admin")]),e._v(" (if this check returns true/false, the next permission will not be checked)")]),t("li",[t("code",{pre:!0},[e._v("luckperms.modify.group.admin")])])]),t("p",[e._v("If any of the checks return false, the action will not be allowed.")]),t("h3",{attrs:{id:"view-a-group",tabindex:"-1"}},[e._v("View a group "),t("a",{staticClass:"header-anchor",attrs:{href:"#view-a-group"}},[e._v("🔗")])]),t("p",[e._v("When a player tries to use a command to view data about a group, LuckPerms will first check for "),t("code",{pre:!0},[e._v("[base command permission].view.[group name]")]),e._v(". If this returns true, the action is will be allowed. If it returns false, the action will not be allowed.")]),t("p",[e._v("If the player does not have a value set for the check (in other words, it's undefined), LuckPerms will then check for "),t("code",{pre:!0},[e._v("luckperms.view.group.[group name]")]),e._v(" to obtain a result. If neither checks return true, the action is not allowed.")]),t("h4",{attrs:{id:"example-5",tabindex:"-1"}},[e._v("Example "),t("a",{staticClass:"header-anchor",attrs:{href:"#example-5"}},[e._v("🔗")])]),t("p",[e._v("For example, if I run "),t("code",{pre:!0},[e._v("/lp group admin permission info")]),e._v(", LuckPerms will check for the following permissions in this order.")]),t("ul",[t("li",[t("code",{pre:!0},[e._v("luckperms.group.permission.info")])]),t("li",[t("code",{pre:!0},[e._v("luckperms.group.permission.info.view.admin")]),e._v(" (if this check returns true/false, the next permission will not be checked)")]),t("li",[t("code",{pre:!0},[e._v("luckperms.view.group.admin")])])]),t("p",[e._v("If any of the checks return false, the action will not be allowed.")]),t("h2",{attrs:{id:"checks-when-a-player-makes-changes-in-a-specific-context",tabindex:"-1"}},[e._v("Checks when a player makes changes in a specific context "),t("a",{staticClass:"header-anchor",attrs:{href:"#checks-when-a-player-makes-changes-in-a-specific-context"}},[e._v("🔗")])]),t("p",[e._v("When a player tries to use a command to make a change to data, where the data being modified is contextual (can be applied in specific servers/worlds/contexts), LuckPerms will check for extra permissions.")]),t("h3",{attrs:{id:"change-in-the-global-context",tabindex:"-1"}},[e._v("Change in the global context "),t("a",{staticClass:"header-anchor",attrs:{href:"#change-in-the-global-context"}},[e._v("🔗")])]),t("p",[e._v("If the change is being made in the global context, LuckPerms will first check for "),t("code",{pre:!0},[e._v("[base command permission].usecontext.global")]),e._v(". If this returns true, the action is will be allowed. If it returns false, the action will not be allowed.")]),t("p",[e._v("If the player does not have a value set for the check (in other words, it's undefined), LuckPerms will then check for "),t("code",{pre:!0},[e._v("luckperms.usecontext.global")]),e._v(" to obtain a result. If neither checks return true, the action is not allowed.")]),t("h4",{attrs:{id:"example-6",tabindex:"-1"}},[e._v("Example "),t("a",{staticClass:"header-anchor",attrs:{href:"#example-6"}},[e._v("🔗")])]),t("p",[e._v("For example, if I run "),t("code",{pre:!0},[e._v("/lp group admin permission set test.node true")]),e._v(", LuckPerms will check for the following permissions in this order.")]),t("ul",[t("li",[t("code",{pre:!0},[e._v("luckperms.group.permission.set")])]),t("li",[t("code",{pre:!0},[e._v("luckperms.group.permission.set.usecontext.global")]),e._v(" (if this check returns true/false, the next permission will not be checked)")]),t("li",[t("code",{pre:!0},[e._v("luckperms.usecontext.global")])])]),t("p",[e._v("If any of the checks return false, the action will not be allowed.")]),t("h3",{attrs:{id:"change-in-a-specific-set-of-contexts",tabindex:"-1"}},[e._v("Change in a specific set of contexts "),t("a",{staticClass:"header-anchor",attrs:{href:"#change-in-a-specific-set-of-contexts"}},[e._v("🔗")])]),t("p",[e._v("If the change is not being made in the global context, LuckPerms will check the following for each context being used.")]),t("p",[e._v("It will first check for "),t("code",{pre:!0},[e._v("[base command permission].usecontext.[context key].[context value]")]),e._v(". If this returns true, the action is will be allowed. If it returns false, the action will not be allowed.")]),t("p",[e._v("If the player does not have a value set for the check (in other words, it's undefined), LuckPerms will then check for "),t("code",{pre:!0},[e._v("luckperms.usecontext.[context key].[context value]")]),e._v(" to obtain a result. If neither checks return true, the action is not allowed.")]),t("h4",{attrs:{id:"example-7",tabindex:"-1"}},[e._v("Example "),t("a",{staticClass:"header-anchor",attrs:{href:"#example-7"}},[e._v("🔗")])]),t("p",[e._v("For example, if I run "),t("code",{pre:!0},[e._v("/lp group admin permission set test.node true server=factions world=nether")]),e._v(", LuckPerms will check for the following permissions in this order.")]),t("ul",[t("li",[t("code",{pre:!0},[e._v("luckperms.group.permission.set")])]),t("li",[t("code",{pre:!0},[e._v("luckperms.group.permission.set.usecontext.server.factions")]),e._v(" (if this check returns true/false, the next permission will not be checked)")]),t("li",[t("code",{pre:!0},[e._v("luckperms.usecontext.server.factions")])]),t("li",[t("code",{pre:!0},[e._v("luckperms.group.permission.set.usecontext.world.nether")]),e._v(" (if this check returns true/false, the next permission will not be checked)")]),t("li",[t("code",{pre:!0},[e._v("luckperms.usecontext.world.nether")])])]),t("p",[e._v("If any of the checks return false, the action will not be allowed.")]),t("h2",{attrs:{id:"checks-when-a-player-makes-changes-with-a-set-of-specific-arguments",tabindex:"-1"}},[e._v("Checks when a player makes changes with a set of specific arguments "),t("a",{staticClass:"header-anchor",attrs:{href:"#checks-when-a-player-makes-changes-with-a-set-of-specific-arguments"}},[e._v("🔗")])]),t("p",[e._v("These checks are made for some commands, and are based upon the arguments passed to the command.")]),t("p",[e._v("For example, the "),t("code",{pre:!0},[e._v("parent add")]),e._v(" command will check for an extra permission depending on which parent is being added.")]),t("p",[e._v("If I run "),t("code",{pre:!0},[e._v("/lp user Luck parent add admin")]),e._v(", among the other permissions being checked for, LuckPerms will also check for "),t("code",{pre:!0},[e._v("luckperms.user.parent.add.admin")]),e._v(". This allows you to give players access to a certain command, but only using certain arguments.")]),t("p",[e._v("The arguments which are checked are outlined below.")]),t("table",[t("thead",[t("tr",[t("th",[e._v("Command")]),t("th",[e._v("Extra argument checks")])])]),t("tbody",[t("tr",[t("td",[e._v("permission set")]),t("td",[e._v("node")])]),t("tr",[t("td",[e._v("permission unset")]),t("td",[e._v("node")])]),t("tr",[t("td",[e._v("parent add")]),t("td",[e._v("group")])]),t("tr",[t("td",[e._v("parent set")]),t("td",[e._v("group")])]),t("tr",[t("td",[e._v("parent settrack")]),t("td",[e._v("group.track")])]),t("tr",[t("td",[e._v("parent remove")]),t("td",[e._v("group")])]),t("tr",[t("td",[e._v("parent cleartrack")]),t("td",[e._v("track")])]),t("tr",[t("td",[e._v("meta set")]),t("td",[e._v("key")])]),t("tr",[t("td",[e._v("meta unset")]),t("td",[e._v("key")])]),t("tr",[t("td",[e._v("promote")]),t("td",[e._v("track.next-group")])]),t("tr",[t("td",[e._v("demote")]),t("td",[e._v("track.old-group")])])])]),t("h2",{attrs:{id:"promote-other-players-but-not-to-or-past-their-own-level-on-a-track",tabindex:"-1"}},[e._v("Promote other players but not to or past their own level on a track "),t("a",{staticClass:"header-anchor",attrs:{href:"#promote-other-players-but-not-to-or-past-their-own-level-on-a-track"}},[e._v("🔗")])]),t("p",[e._v("This is a very common question, and quite simple to set up. All you need to do is add these permissions:")]),t("h3",{attrs:{id:"for-sponge-and-spigot",tabindex:"-1"}},[e._v("For Sponge and Spigot: "),t("a",{staticClass:"header-anchor",attrs:{href:"#for-sponge-and-spigot"}},[e._v("🔗")])]),t("table",[t("thead",[t("tr",[t("th",[e._v("Permission")]),t("th",[e._v("Value")])])]),t("tbody",[t("tr",[t("td",[t("code",{pre:!0},[e._v("luckperms.user.promote")])]),t("td",[e._v("true")])]),t("tr",[t("td",[t("code",{pre:!0},[e._v("luckperms.user.promote.*")]),e._v(" <--- This is only needed on Sponge")]),t("td",[e._v("false")])]),t("tr",[t("td",[t("code",{pre:!0},[e._v("luckperms.user.promote.modify.others")])]),t("td",[e._v("true")])]),t("tr",[t("td",[t("code",{pre:!0},[e._v("luckperms.user.promote..*")])]),t("td",[e._v("true")])]),t("tr",[t("td",[t("code",{pre:!0},[e._v("luckperms.user.promote..<{all,groups,they,cannot,promote,to,or,past}>")])]),t("td",[e._v("false")])])])]),t("p",[e._v("For the final node, you add all groups in the track they cannot promote to or past, separated by a "),t("code",{pre:!0},[e._v(",")]),e._v(" and all contained within {}. For example, you could set "),t("code",{pre:!0},[e._v("luckperms.user.promote.staff.{admin,owner}")]),e._v(" to prevent them from promoting to or past admin on the staff track.")]),t("p",[e._v("Additionally, if you want the group/user to be able to promote using global context (without requiring certain contextual conditions), you need to add the node "),t("code",{pre:!0},[e._v("luckperms.usecontext.global")]),e._v(".")])])}],o=r(845),i={},n=(0,o.A)(i,s,a,!1,null,null,null),l=n.exports},6452:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return l}});var s=function(){var e=this;e._self._c;return e._m(0)},a=[function(){var e=this,t=e._self._c;return t("section",[t("p",[e._v("LuckPerms provides a command to help perform bulk permission modifications with ease. This command should be used with care, as it can easily corrupt or break your setup if used in the wrong way.")]),t("p",[e._v("It may be wise to take a backup of your permission data before using the command, either by making a copy of your database / files, or by using the export command.")]),t("p",[e._v("The commands design is basically stripped back SQL syntax. This means the data passed into the command can be converted directly to an SQL query, or used to modify data in YAML or JSON storage files. Those who have experience with SQL may find it easier to write queries directly into their database server instead of using this command.")]),t("p",[e._v("These commands are "),t("strong",[e._v("only available from the console")]),e._v('. This is because they have the potential to cause a great deal of damage to your servers data. You are asked to type a confirmation code before the action is processed, in order to prevent users from "sudoing" the console and gaining access to these commands.')]),t("p",[e._v("The command usage is as follows...")]),t("h2",{attrs:{id:"lp-bulkupdate-data-type-action-action-field-action-value-constraint",tabindex:"-1"}},[t("code",{pre:!0},[e._v("/lp bulkupdate [action field] [action value] [constraint...]")]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#lp-bulkupdate-data-type-action-action-field-action-value-constraint"}},[e._v("🔗")])]),t("p",[e._v("A bit daunting at first, I know. To break it down...")]),t("table",[t("thead",[t("tr",[t("th",[e._v("Argument")]),t("th",[e._v("Description")])])]),t("tbody",[t("tr",[t("td",[t("code",{pre:!0},[e._v("data type")])]),t("td",[e._v('the type of data being changed. (can be "all", "users" or "groups")')])]),t("tr",[t("td",[t("code",{pre:!0},[e._v("action")])]),t("td",[e._v('the action to perform on the data. (can be "update" or "delete")')])]),t("tr",[t("td",[t("code",{pre:!0},[e._v("action field")])]),t("td",[e._v('the field to act upon. only required for update actions. (can be "permission", "server" or "world")')])]),t("tr",[t("td",[t("code",{pre:!0},[e._v("action value")])]),t("td",[e._v("the value to replace with. only required for update actions")])]),t("tr",[t("td",[t("code",{pre:!0},[e._v("constraint")])]),t("td",[e._v("the constraints required for the update")])])])]),t("p",[e._v("The "),t("code",{pre:!0},[e._v("data type")]),e._v(" is the simple bit. It simply tells LuckPerms what data should be affected by the update. Either just users, just groups, or users and groups.")]),t("p",[e._v("The "),t("code",{pre:!0},[e._v("action")]),e._v(' is what will be done to the data. It can either be "update" or "delete". Delete simply means that any records which match the constraints will be deleted. Update will replace any values that match with another value.')]),t("p",[e._v("The "),t("code",{pre:!0},[e._v("action field")]),e._v(" and "),t("code",{pre:!0},[e._v("action value")]),e._v(' arguments are optional because they only apply to the "update" action. The field is what will be updated, and the value is the replacement value for the field.')]),t("p",[e._v("The "),t("code",{pre:!0},[e._v("constraints")]),e._v(" argument relates to the limitations of the update. Only the permissions (or entries) which match the constraints will be affected.")]),t("h3",{attrs:{id:"constraints",tabindex:"-1"}},[e._v("Constraints "),t("a",{staticClass:"header-anchor",attrs:{href:"#constraints"}},[e._v("🔗")])]),t("p",[e._v("Constraints are split into 3 parts. The "),t("code",{pre:!0},[e._v("field")]),e._v(", the "),t("code",{pre:!0},[e._v("comparison")]),e._v(" and the "),t("code",{pre:!0},[e._v("value")]),e._v(".")]),t("p",[e._v("The available "),t("code",{pre:!0},[e._v("fields")]),e._v(" are "),t("code",{pre:!0},[e._v("permission")]),e._v(", "),t("code",{pre:!0},[e._v("server")]),e._v(" and "),t("code",{pre:!0},[e._v("world")]),e._v('. Permission is just the permission node being stored in the file (remember that everything, even group memberships and prefixes are stored as permissions "under the hood"). The server and world fields relate to the server/world where the permission will apply. They are set to "global" if the permission doesn\'t have a value for either of them.')]),t("p",[e._v("The "),t("code",{pre:!0},[e._v("value")]),e._v(" part of the constraint is just the expected value of the field, with respect to the comparison being used.")]),t("p",[e._v("There are 4 different comparisons available.")]),t("table",[t("thead",[t("tr",[t("th",[e._v("Comparison Symbol")]),t("th",[e._v("Comparison Name")]),t("th",[e._v("Description")])])]),t("tbody",[t("tr",[t("td",[t("code",{pre:!0},[e._v("==")])]),t("td",[e._v("Equal to")]),t("td",[e._v("If the two values are the same. (ignores case)")])]),t("tr",[t("td",[t("code",{pre:!0},[e._v("!=")])]),t("td",[e._v("Not equal to")]),t("td",[e._v("If the two values are not the same. (ignores case)")])]),t("tr",[t("td",[t("code",{pre:!0},[e._v("~~")])]),t("td",[e._v("Similar to")]),t("td",[e._v('If the two values are "similar". Uses SQL\'s '),t("code",{pre:!0},[e._v("LIKE")]),e._v(" syntax.")])]),t("tr",[t("td",[t("code",{pre:!0},[e._v("!~")])]),t("td",[e._v("Not similar to")]),t("td",[e._v('If the two values are not "similar". Uses SQL\'s '),t("code",{pre:!0},[e._v("LIKE")]),e._v(" syntax.")])])])]),t("p",[e._v('More information about the syntax used by "similar" can be found '),t("a",{attrs:{href:"https://www.w3schools.com/sql/sql_like.asp"}},[e._v("here")]),e._v(" and "),t("a",{attrs:{href:"https://www.tutorialspoint.com/sql/sql-like-clause.htm"}},[e._v("here")]),e._v(".")]),t("p",[e._v("The basic idea is that:")]),t("ul",[t("li",[t("code",{pre:!0},[e._v("%")]),e._v(" - The percent sign represents zero, one, or multiple characters")]),t("li",[t("code",{pre:!0},[e._v("_")]),e._v(" - The underscore represents a single character")])]),t("h5",{attrs:{id:"some-examples",tabindex:"-1"}},[e._v("Some examples "),t("a",{staticClass:"header-anchor",attrs:{href:"#some-examples"}},[e._v("🔗")])]),t("ul",[t("li",[t("code",{pre:!0},[e._v("server ~~ hub_")]),e._v(' will match server values "hub1", "hub2", "hub3" etc')]),t("li",[t("code",{pre:!0},[e._v("permission !~ group.%")]),e._v(" will match any permission which isn't a group")]),t("li",[t("code",{pre:!0},[e._v("world == nether")]),e._v(' will match world values exactly equal to "nether"')])]),t("p",[e._v("When constraints are defined in commands, the entire constraint must be wrapped with "),t("code",{pre:!0},[e._v('" "')]),e._v(" quotes.")]),t("p",[e._v("If you are wanting to remove a specific context from a permission or group that has been assigned with a specific world or server context, you can simply just set the world and/or context to "),t("code",{pre:!0},[e._v("global")]),e._v(" which will essentially remove the context making that permission and/or group global again.")]),t("h3",{attrs:{id:"command-examples",tabindex:"-1"}},[e._v("Command Examples "),t("a",{staticClass:"header-anchor",attrs:{href:"#command-examples"}},[e._v("🔗")])]),t("h4",{attrs:{id:"lp-bulkupdate-all-update-permission-groupmod-permission--groupmoderator",tabindex:"-1"}},[t("code",{pre:!0},[e._v('/lp bulkupdate all update permission group.mod "permission == group.moderator"')]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#lp-bulkupdate-all-update-permission-groupmod-permission--groupmoderator"}},[e._v("🔗")])]),t("p",[e._v('Will update all entries, and replace any occurrence of the "group.moderator" permission with "group.mod". (effectively renaming the group)')]),t("h4",{attrs:{id:"lp-bulkupdate-users-delete-server--hub-world--nether",tabindex:"-1"}},[t("code",{pre:!0},[e._v('/lp bulkupdate users delete "server ~~ hub%" "world == nether"')]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#lp-bulkupdate-users-delete-server--hub-world--nether"}},[e._v("🔗")])]),t("p",[e._v('Will delete any permission assigned to a user where the server starts with "hub" and the world is equal to "nether".')]),t("h4",{attrs:{id:"lp-bulkupdate-all-delete-permission--essentialsfly",tabindex:"-1"}},[t("code",{pre:!0},[e._v('/lp bulkupdate all delete "permission == essentials.fly"')]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#lp-bulkupdate-all-delete-permission--essentialsfly"}},[e._v("🔗")])]),t("p",[e._v('Will delete any permission entry where the permission is equal to "essentials.fly"')]),t("h4",{attrs:{id:"lp-bulkupdate-all-delete-permission--groupvip",tabindex:"-1"}},[t("code",{pre:!0},[e._v('/lp bulkupdate all delete "permission == group.vip"')]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#lp-bulkupdate-all-delete-permission--groupvip"}},[e._v("🔗")])]),t("p",[e._v("Will delete all memberships of the VIP group.")]),t("h4",{attrs:{id:"lp-bulkupdate-all-update-server-global-server--factions",tabindex:"-1"}},[t("code",{pre:!0},[e._v('/lp bulkupdate all update server global "server == factions"')]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#lp-bulkupdate-all-update-server-global-server--factions"}},[e._v("🔗")])]),t("p",[e._v('Will change any server entries from "factions" to "global"')]),t("h4",{attrs:{id:"lp-bulkupdate-all-update-permission-essentialsban-permission--essentialsmute-server--survival",tabindex:"-1"}},[t("code",{pre:!0},[e._v('/lp bulkupdate all update permission essentials.ban "permission == essentials.mute" "server == survival"')]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#lp-bulkupdate-all-update-permission-essentialsban-permission--essentialsmute-server--survival"}},[e._v("🔗")])]),t("p",[e._v('Will change any permission entries for "essentials.mute" to "essentials.ban" set on the "survival" server')]),t("h4",{attrs:{id:"lp-bulkupdate-all-update-server-global-permission--groupmod-server--survival",tabindex:"-1"}},[t("code",{pre:!0},[e._v('/lp bulkupdate all update server global "permission == group.mod" "server == survival"')]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#lp-bulkupdate-all-update-server-global-permission--groupmod-server--survival"}},[e._v("🔗")])]),t("p",[e._v("Will change all memberships of the MOD group to use the global context (Essentially removing the context)")])])}],o=r(845),i={},n=(0,o.A)(i,s,a,!1,null,null,null),l=n.exports},718:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return l}});var s=function(){var e=this;e._self._c;return e._m(0)},a=[function(){var e=this,t=e._self._c;return t("section",[t("p",[e._v("Command usage is printed to the console/chat whenever invalid arguments are provided. "),t("strong",[e._v("Simply typing /lp")]),e._v(" will list all commands a user has permission to use.")]),t("p",[e._v("If the only thing returned when you type a command is the plugin version, you do not have permission to use any of the commands. You need to use the server console to "),t("a",{attrs:{href:"Usage#granting-full-access-to-modify-permissions"}},[e._v("give yourself access to LuckPerms commands first")]),e._v(".")]),t("h3",{attrs:{id:"aliases",tabindex:"-1"}},[e._v("Aliases "),t("a",{staticClass:"header-anchor",attrs:{href:"#aliases"}},[e._v("🔗")])]),t("p",[e._v("A list of aliases for each platform are listed below. Each command works in exactly the same manner, so you can use whichever you prefer.")]),t("table",[t("thead",[t("tr",[t("th",[e._v("Bukkit / Sponge / Fabric / Forge / Nukkit")]),t("th",[e._v("BungeeCord")]),t("th",[e._v("Velocity")])])]),t("tbody",[t("tr",[t("td",[t("code",{pre:!0},[e._v("/lp")])]),t("td",[t("code",{pre:!0},[e._v("/lpb")])]),t("td",[t("code",{pre:!0},[e._v("/lpv")])])]),t("tr",[t("td",[t("code",{pre:!0},[e._v("/luckperms")])]),t("td",[t("code",{pre:!0},[e._v("/luckpermsbungee")])]),t("td",[t("code",{pre:!0},[e._v("/luckpermsvelocity")])])]),t("tr",[t("td",[t("code",{pre:!0},[e._v("/permissions")]),e._v(" ("),t("em",[e._v("deprecated")]),e._v(")")]),t("td"),t("td")]),t("tr",[t("td",[t("code",{pre:!0},[e._v("/perms")]),e._v(" ("),t("em",[e._v("deprecated")]),e._v(")")]),t("td"),t("td")]),t("tr",[t("td",[t("code",{pre:!0},[e._v("/perm")]),e._v(" ("),t("em",[e._v("deprecated")]),e._v(")")]),t("td"),t("td")])])]),t("p",[t("strong",[t("code",{pre:!0},[e._v("Important:")])]),e._v(" The command aliases are different on BungeeCord and Velocity. This is so you can choose where the command is executed. If the aliases were the same, you would never be able to control LuckPerms on a backend server as the command would always be handled by the proxy!")]),t("p",[e._v("If you are using Bukkit/Spigot, by default, all users with OP have access to LuckPerms commands. You can change this in the config.")]),t("h1",{attrs:{id:"overview",tabindex:"-1"}},[e._v("Overview "),t("a",{staticClass:"header-anchor",attrs:{href:"#overview"}},[e._v("🔗")])]),t("h4",{attrs:{id:"arguments-key",tabindex:"-1"}},[e._v("Arguments Key: "),t("a",{staticClass:"header-anchor",attrs:{href:"#arguments-key"}},[e._v("🔗")])]),t("ul",[t("li",[t("code",{pre:!0},[e._v("")]),e._v(" - you "),t("em",[e._v("must")]),e._v(" specify this argument when running the command")]),t("li",[t("code",{pre:!0},[e._v("[optional]")]),e._v(" - you do not need to specify this argument. a default will be used if not given.")])]),t("p",[e._v("If you want to include spaces in arguments, you must escape the argument with quotes. "),t("code",{pre:!0},[e._v('" "')])]),t("p",[e._v("The alias used below ("),t("code",{pre:!0},[e._v("/lp")]),e._v(") can be exchanged for any of the ones listed in the aliases section above.")]),t("h3",{attrs:{id:"general-commands",tabindex:"-1"}},[e._v("General commands "),t("a",{staticClass:"header-anchor",attrs:{href:"#general-commands"}},[e._v("🔗")])]),t("p",[e._v("General commands used to operate LuckPerms functions.")]),t("ul",[t("li",[t("a",{attrs:{href:"General-Commands#lp"}},[e._v("/lp")])]),t("li",[t("a",{attrs:{href:"General-Commands#lp-sync"}},[e._v("/lp "),t("code",{pre:!0},[e._v("sync")])])]),t("li",[t("a",{attrs:{href:"General-Commands#lp-info"}},[e._v("/lp "),t("code",{pre:!0},[e._v("info")])])]),t("li",[t("a",{attrs:{href:"General-Commands#lp-editor-type"}},[e._v("/lp "),t("code",{pre:!0},[e._v("editor")])])]),t("li",[t("a",{attrs:{href:"General-Commands#lp-verbose-onrecordoffupload-filter"}},[e._v("/lp "),t("code",{pre:!0},[e._v("verbose")]),e._v(" [filter]")])]),t("li",[t("a",{attrs:{href:"General-Commands#lp-tree-scope-player"}},[e._v("/lp "),t("code",{pre:!0},[e._v("tree")]),e._v(" [scope] [player]")])]),t("li",[t("a",{attrs:{href:"General-Commands#lp-search-comparison-permission"}},[e._v("/lp "),t("code",{pre:!0},[e._v("search")]),e._v(" [comparison] ")])]),t("li",[t("a",{attrs:{href:"General-Commands#lp-networksync"}},[e._v("/lp "),t("code",{pre:!0},[e._v("networksync")])])]),t("li",[t("a",{attrs:{href:"General-Commands#lp-import-filecode---upload---replace"}},[e._v("/lp "),t("code",{pre:!0},[e._v("import")]),e._v(" [--replace]")])]),t("li",[t("a",{attrs:{href:"General-Commands#lp-export-file--upload"}},[e._v("/lp "),t("code",{pre:!0},[e._v("export")]),e._v(" [--upload]")])]),t("li",[t("a",{attrs:{href:"General-Commands#lp-reloadconfig"}},[e._v("/lp "),t("code",{pre:!0},[e._v("reloadconfig")])])]),t("li",[t("a",{attrs:{href:"General-Commands#lp-bulkupdate-data-type-action-action-field-action-value-constraints"}},[e._v("/lp "),t("code",{pre:!0},[e._v("bulkupdate")])])]),t("li",[t("a",{attrs:{href:"General-Commands#lp-translations"}},[e._v("/lp "),t("code",{pre:!0},[e._v("translations")])])]),t("li",[t("a",{attrs:{href:"General-Commands#lp-creategroup-name-weight-displayname"}},[e._v("/lp "),t("code",{pre:!0},[e._v("creategroup")]),e._v(" [weight] [displayname]")])]),t("li",[t("a",{attrs:{href:"General-Commands#lp-deletegroup-name"}},[e._v("/lp "),t("code",{pre:!0},[e._v("deletegroup")]),e._v(" ")])]),t("li",[t("a",{attrs:{href:"General-Commands#lp-listgroups"}},[e._v("/lp "),t("code",{pre:!0},[e._v("listgroups")])])]),t("li",[t("a",{attrs:{href:"General-Commands#lp-createtrack-name"}},[e._v("/lp "),t("code",{pre:!0},[e._v("createtrack")]),e._v(" ")])]),t("li",[t("a",{attrs:{href:"General-Commands#lp-deletetrack-name"}},[e._v("/lp "),t("code",{pre:!0},[e._v("deletetrack")]),e._v(" ")])]),t("li",[t("a",{attrs:{href:"General-Commands#lp-listtracks"}},[e._v("/lp "),t("code",{pre:!0},[e._v("listtracks")])])])]),t("h3",{attrs:{id:"user-commands",tabindex:"-1"}},[e._v("User commands "),t("a",{staticClass:"header-anchor",attrs:{href:"#user-commands"}},[e._v("🔗")])]),t("p",[e._v("Commands used to view or modify a specific user.")]),t("p",[e._v("Formed of "),t("code",{pre:!0},[e._v("/lp user ...")]),e._v(" - where "),t("code",{pre:!0},[e._v("")]),e._v(" is the username or uuid of the user being queried / modified.")]),t("ul",[t("li",[t("a",{attrs:{href:"User-Commands#lp-user-user-info"}},[e._v("/lp user "),t("code",{pre:!0},[e._v("info")])])]),t("li",[t("a",{attrs:{href:"Permission-Commands"}},[e._v("/lp user "),t("code",{pre:!0},[e._v("permission")])])]),t("li",[t("a",{attrs:{href:"Parent-Commands"}},[e._v("/lp user "),t("code",{pre:!0},[e._v("parent")])])]),t("li",[t("a",{attrs:{href:"Meta-Commands"}},[e._v("/lp user "),t("code",{pre:!0},[e._v("meta")])])]),t("li",[t("a",{attrs:{href:"User-Commands#lp-user-user-editor"}},[e._v("/lp user "),t("code",{pre:!0},[e._v("editor")])])]),t("li",[t("a",{attrs:{href:"User-Commands#lp-user-user-promote-track-context"}},[e._v("/lp user "),t("code",{pre:!0},[e._v("promote")]),e._v(" [context...]")])]),t("li",[t("a",{attrs:{href:"User-Commands#lp-user-user-demote-track-context"}},[e._v("/lp user "),t("code",{pre:!0},[e._v("demote")]),e._v(" [context...]")])]),t("li",[t("a",{attrs:{href:"User-Commands#lp-user-user-showtracks"}},[e._v("/lp user "),t("code",{pre:!0},[e._v("showtracks")])])]),t("li",[t("a",{attrs:{href:"User-Commands#lp-user-user-clear-context"}},[e._v("/lp user "),t("code",{pre:!0},[e._v("clear")]),e._v(" [context...]")])]),t("li",[t("a",{attrs:{href:"User-Commands#lp-user-user-clone-user"}},[e._v("/lp user "),t("code",{pre:!0},[e._v("clone")]),e._v(" ")])])]),t("h3",{attrs:{id:"group-commands",tabindex:"-1"}},[e._v("Group commands "),t("a",{staticClass:"header-anchor",attrs:{href:"#group-commands"}},[e._v("🔗")])]),t("p",[e._v("Commands used to view or modify a specific group.")]),t("p",[e._v("Formed of "),t("code",{pre:!0},[e._v("/lp group ...")]),e._v(" - where "),t("code",{pre:!0},[e._v("")]),e._v(" is the name of the group being queried / modified.")]),t("ul",[t("li",[t("a",{attrs:{href:"Group-Commands#lp-group-group-info"}},[e._v("/lp group "),t("code",{pre:!0},[e._v("info")])])]),t("li",[t("a",{attrs:{href:"Permission-Commands"}},[e._v("/lp group "),t("code",{pre:!0},[e._v("permission")])])]),t("li",[t("a",{attrs:{href:"Parent-Commands"}},[e._v("/lp group "),t("code",{pre:!0},[e._v("parent")])])]),t("li",[t("a",{attrs:{href:"Meta-Commands"}},[e._v("/lp group "),t("code",{pre:!0},[e._v("meta")])])]),t("li",[t("a",{attrs:{href:"Group-Commands#lp-group-group-editor"}},[e._v("/lp group "),t("code",{pre:!0},[e._v("editor")])])]),t("li",[t("a",{attrs:{href:"Group-Commands#lp-group-group-listmembers-page"}},[e._v("/lp group "),t("code",{pre:!0},[e._v("listmembers")]),e._v(" [page]")])]),t("li",[t("a",{attrs:{href:"Group-Commands#lp-group-group-setweight-weight"}},[e._v("/lp group "),t("code",{pre:!0},[e._v("setweight")]),e._v(" ")])]),t("li",[t("a",{attrs:{href:"Group-Commands#lp-group-group-setdisplayname-name"}},[e._v("/lp group "),t("code",{pre:!0},[e._v("setdisplayname")]),e._v(" ")])]),t("li",[t("a",{attrs:{href:"Group-Commands#lp-group-group-showtracks"}},[e._v("/lp group "),t("code",{pre:!0},[e._v("showtracks")])])]),t("li",[t("a",{attrs:{href:"Group-Commands#lp-group-group-clear-context"}},[e._v("/lp group "),t("code",{pre:!0},[e._v("clear")]),e._v(" [context...]")])]),t("li",[t("a",{attrs:{href:"Group-Commands#lp-group-group-rename-new-name"}},[e._v("/lp group "),t("code",{pre:!0},[e._v("rename")]),e._v(" ")])]),t("li",[t("a",{attrs:{href:"Group-Commands#lp-group-group-clone-new-name"}},[e._v("/lp group "),t("code",{pre:!0},[e._v("clone")]),e._v(" ")])])]),t("h3",{attrs:{id:"permission-commands",tabindex:"-1"}},[e._v("Permission commands "),t("a",{staticClass:"header-anchor",attrs:{href:"#permission-commands"}},[e._v("🔗")])]),t("p",[e._v("Commands used to view or modify the permissions data of a specific user or group.")]),t("p",[e._v("Formed of either "),t("code",{pre:!0},[e._v("/lp user permission ...")]),e._v(" or "),t("code",{pre:!0},[e._v("/lp group permission ...")])]),t("ul",[t("li",[t("a",{attrs:{href:"Permission-Commands#lp-usergroup-usergroup-permission-info"}},[t("code",{pre:!0},[e._v("info")])])]),t("li",[t("a",{attrs:{href:"Permission-Commands#lp-usergroup-usergroup-permission-set-node-truefalse-context"}},[t("code",{pre:!0},[e._v("set")]),e._v(" [context...]")])]),t("li",[t("a",{attrs:{href:"Permission-Commands#lp-usergroup-usergroup-permission-unset-node-context"}},[t("code",{pre:!0},[e._v("unset")]),e._v(" [context...]")])]),t("li",[t("a",{attrs:{href:"Permission-Commands#lp-usergroup-usergroup-permission-settemp-node-truefalse-duration-temporary-modifier-context"}},[t("code",{pre:!0},[e._v("settemp")]),e._v(" [temporary modifier] [context...]")])]),t("li",[t("a",{attrs:{href:"Permission-Commands#lp-usergroup-usergroup-permission-unsettemp-node-duration-context"}},[t("code",{pre:!0},[e._v("unsettemp")]),e._v(" [duration] [context...]")])]),t("li",[t("a",{attrs:{href:"Permission-Commands#lp-usergroup-usergroup-permission-check-node"}},[t("code",{pre:!0},[e._v("check")]),e._v(" ")])]),t("li",[t("a",{attrs:{href:"Permission-Commands#lp-usergroup-usergroup-permission-clear-context"}},[t("code",{pre:!0},[e._v("clear")]),e._v(" [context...]")])])]),t("h3",{attrs:{id:"parent-commands",tabindex:"-1"}},[e._v("Parent commands "),t("a",{staticClass:"header-anchor",attrs:{href:"#parent-commands"}},[e._v("🔗")])]),t("p",[e._v("Commands used to view or modify the inheritance properties (parents) of a specific user or group.")]),t("p",[e._v("Formed of either "),t("code",{pre:!0},[e._v("/lp user parent ...")]),e._v(" or "),t("code",{pre:!0},[e._v("/lp group parent ...")])]),t("ul",[t("li",[t("a",{attrs:{href:"Parent-Commands#lp-usergroup-usergroup-parent-info"}},[t("code",{pre:!0},[e._v("info")])])]),t("li",[t("a",{attrs:{href:"Parent-Commands#lp-usergroup-usergroup-parent-set-group-context"}},[t("code",{pre:!0},[e._v("set")]),e._v(" [context...]")])]),t("li",[t("a",{attrs:{href:"Parent-Commands#lp-usergroup-usergroup-parent-add-group-context"}},[t("code",{pre:!0},[e._v("add")]),e._v(" [context...]")])]),t("li",[t("a",{attrs:{href:"Parent-Commands#lp-usergroup-usergroup-parent-remove-group-context"}},[t("code",{pre:!0},[e._v("remove")]),e._v(" [context...]")])]),t("li",[t("a",{attrs:{href:"Parent-Commands#lp-usergroup-usergroup-parent-settrack-track-group-context"}},[t("code",{pre:!0},[e._v("settrack")]),e._v(" [context...]")])]),t("li",[t("a",{attrs:{href:"Parent-Commands#lp-usergroup-usergroup-parent-addtemp-group-duration-temporary-modifier-context"}},[t("code",{pre:!0},[e._v("addtemp")]),e._v(" [temporary modifier] [context...]")])]),t("li",[t("a",{attrs:{href:"Parent-Commands#lp-usergroup-usergroup-parent-removetemp-group-duration-context"}},[t("code",{pre:!0},[e._v("removetemp")]),e._v(" [duration] [context...]")])]),t("li",[t("a",{attrs:{href:"Parent-Commands#lp-usergroup-usergroup-parent-clear-context"}},[t("code",{pre:!0},[e._v("clear")]),e._v(" [context...]")])]),t("li",[t("a",{attrs:{href:"Parent-Commands#lp-usergroup-usergroup-parent-cleartrack-track-context"}},[t("code",{pre:!0},[e._v("cleartrack")]),e._v(" [context...]")])]),t("li",[t("a",{attrs:{href:"Parent-Commands#lp-user-user-parent-switchprimarygroup-group"}},[t("code",{pre:!0},[e._v("switchprimarygroup")]),e._v(" ")])])]),t("h3",{attrs:{id:"meta-commands",tabindex:"-1"}},[e._v("Meta commands "),t("a",{staticClass:"header-anchor",attrs:{href:"#meta-commands"}},[e._v("🔗")])]),t("p",[e._v("Commands used to view or modify the metadata of a specific user or group.")]),t("p",[e._v("Formed of either "),t("code",{pre:!0},[e._v("/lp user meta ...")]),e._v(" or "),t("code",{pre:!0},[e._v("/lp group meta ...")])]),t("ul",[t("li",[t("a",{attrs:{href:"Meta-Commands#lp-usergroup-usergroup-meta-info"}},[t("code",{pre:!0},[e._v("info")])])]),t("li",[t("a",{attrs:{href:"Meta-Commands#lp-usergroup-usergroup-meta-set-key-value-context"}},[t("code",{pre:!0},[e._v("set")]),e._v(" [context...]")])]),t("li",[t("a",{attrs:{href:"Meta-Commands#lp-usergroup-usergroup-meta-unset-key-value-context"}},[t("code",{pre:!0},[e._v("unset")]),e._v(" [context...]")])]),t("li",[t("a",{attrs:{href:"Meta-Commands#lp-usergroup-usergroup-meta-settemp-key-value-duration-temporary-modifier-context"}},[t("code",{pre:!0},[e._v("settemp")]),e._v(" [temporary modifier] [context...]")])]),t("li",[t("a",{attrs:{href:"Meta-Commands#lp-usergroup-usergroup-meta-unsettemp-key-context"}},[t("code",{pre:!0},[e._v("unsettemp")]),e._v(" [context...]")])]),t("li",[t("a",{attrs:{href:"Meta-Commands#lp-usergroup-usergroup-meta-addprefix-priority-prefix-context"}},[t("code",{pre:!0},[e._v("addprefix")]),e._v(" [context...]")])]),t("li",[t("a",{attrs:{href:"Meta-Commands#lp-usergroup-usergroup-meta-addsuffix-priority-suffix-context"}},[t("code",{pre:!0},[e._v("addsuffix")]),e._v(" [context...]")])]),t("li",[t("a",{attrs:{href:"Meta-Commands#lp-usergroup-usergroup-meta-setprefix-priority-prefix-context"}},[t("code",{pre:!0},[e._v("setprefix")]),e._v(" [priority] [context...]")])]),t("li",[t("a",{attrs:{href:"Meta-Commands#lp-usergroup-usergroup-meta-setsuffix-priority-suffix-context"}},[t("code",{pre:!0},[e._v("setsuffix")]),e._v(" [priority] [context...]")])]),t("li",[t("a",{attrs:{href:"Meta-Commands#lp-usergroup-usergroup-meta-removeprefix-priority-prefix-context"}},[t("code",{pre:!0},[e._v("removeprefix")]),e._v(" [prefix] [context...]")])]),t("li",[t("a",{attrs:{href:"Meta-Commands#lp-usergroup-usergroup-meta-removesuffix-priority-suffix-context"}},[t("code",{pre:!0},[e._v("removesuffix")]),e._v(" [suffix] [context...]")])]),t("li",[t("a",{attrs:{href:"Meta-Commands#lp-usergroup-usergroup-meta-addtempprefix-priority-prefix-duration-temporary-modifier-context"}},[t("code",{pre:!0},[e._v("addtempprefix")]),e._v(" [temporary modifier] [context...]")])]),t("li",[t("a",{attrs:{href:"Meta-Commands#lp-usergroup-usergroup-meta-addtempsuffix-priority-suffix-duration-temporary-modifier-context"}},[t("code",{pre:!0},[e._v("addtempsuffix")]),e._v(" [temporary modifier] [context...]")])]),t("li",[t("a",{attrs:{href:"Meta-Commands#lp-usergroup-usergroup-meta-settempprefix-priority-prefix-duration-temporary-modifier-context"}},[t("code",{pre:!0},[e._v("settempprefix")]),e._v(" [priority] [temporary modifier] [context...]")])]),t("li",[t("a",{attrs:{href:"Meta-Commands#lp-usergroup-usergroup-meta-settempsuffix-priority-suffix-duration-temporary-modifier-context"}},[t("code",{pre:!0},[e._v("settempsuffix")]),e._v(" [priority] [temporary modifier] [context...]")])]),t("li",[t("a",{attrs:{href:"Meta-Commands#lp-usergroup-usergroup-meta-removetempprefix-priority-prefix-context"}},[t("code",{pre:!0},[e._v("removetempprefix")]),e._v(" [prefix] [context...]")])]),t("li",[t("a",{attrs:{href:"Meta-Commands#lp-usergroup-usergroup-meta-removetempsuffix-priority-suffix-context"}},[t("code",{pre:!0},[e._v("removetempsuffix")]),e._v(" [suffix] [context...]")])]),t("li",[t("a",{attrs:{href:"Meta-Commands#lp-usergroup-usergroup-meta-clear-context"}},[t("code",{pre:!0},[e._v("clear")]),e._v(" [context...]")])])]),t("h3",{attrs:{id:"track-commands",tabindex:"-1"}},[e._v("Track commands "),t("a",{staticClass:"header-anchor",attrs:{href:"#track-commands"}},[e._v("🔗")])]),t("p",[e._v("Commands used to view or modify a specific track.")]),t("p",[e._v("Formed of "),t("code",{pre:!0},[e._v("/lp track ...")]),e._v(" - where "),t("code",{pre:!0},[e._v("")]),e._v(" is the name of the track being queried / modified.")]),t("ul",[t("li",[t("a",{attrs:{href:"Track-Commands#lp-track-track-info"}},[e._v("/lp track "),t("code",{pre:!0},[e._v("info")])])]),t("li",[t("a",{attrs:{href:"Track-Commands#lp-track-track-editor"}},[e._v("/lp track "),t("code",{pre:!0},[e._v("editor")])])]),t("li",[t("a",{attrs:{href:"Track-Commands#lp-track-track-append-group"}},[e._v("/lp track "),t("code",{pre:!0},[e._v("append")]),e._v(" ")])]),t("li",[t("a",{attrs:{href:"Track-Commands#lp-track-track-insert-group-position"}},[e._v("/lp track "),t("code",{pre:!0},[e._v("insert")]),e._v(" ")])]),t("li",[t("a",{attrs:{href:"Track-Commands#lp-track-track-remove-group"}},[e._v("/lp track "),t("code",{pre:!0},[e._v("remove")]),e._v(" ")])]),t("li",[t("a",{attrs:{href:"Track-Commands#lp-track-track-clear"}},[e._v("/lp track "),t("code",{pre:!0},[e._v("clear")])])]),t("li",[t("a",{attrs:{href:"Track-Commands#lp-track-track-rename-new-name"}},[e._v("/lp track "),t("code",{pre:!0},[e._v("rename")]),e._v(" ")])]),t("li",[t("a",{attrs:{href:"Track-Commands#lp-track-track-clone-new-name"}},[e._v("/lp track "),t("code",{pre:!0},[e._v("clone")]),e._v(" ")])])]),t("h3",{attrs:{id:"log-commands",tabindex:"-1"}},[e._v("Log commands "),t("a",{staticClass:"header-anchor",attrs:{href:"#log-commands"}},[e._v("🔗")])]),t("p",[e._v("Commands used to view the action log.")]),t("ul",[t("li",[t("a",{attrs:{href:"Log-Commands#lp-log-recent-user-page"}},[e._v("/lp log "),t("code",{pre:!0},[e._v("recent")]),e._v(" [user] [page]")])]),t("li",[t("a",{attrs:{href:"Log-Commands#lp-log-search-query-page"}},[e._v("/lp log "),t("code",{pre:!0},[e._v("search")]),e._v(" [page]")])]),t("li",[t("a",{attrs:{href:"Log-Commands#lp-log-notify-onoff"}},[e._v("/lp log "),t("code",{pre:!0},[e._v("notify")]),e._v(" [on|off]")])]),t("li",[t("a",{attrs:{href:"Log-Commands#lp-log-userhistory-user-page"}},[e._v("/lp log "),t("code",{pre:!0},[e._v("userhistory")]),e._v(" [page]")])]),t("li",[t("a",{attrs:{href:"Log-Commands#lp-log-grouphistory-group-page"}},[e._v("/lp log "),t("code",{pre:!0},[e._v("grouphistory")]),e._v(" [page]")])]),t("li",[t("a",{attrs:{href:"Log-Commands#lp-log-trackhistory-track-page"}},[e._v("/lp log "),t("code",{pre:!0},[e._v("trackhistory")]),e._v(" [page]")])])])])}],o=r(845),i={},n=(0,o.A)(i,s,a,!1,null,null,null),l=n.exports},747:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return l}});var s=function(){var e=this;e._self._c;return e._m(0)},a=[function(){var e=this,t=e._self._c;return t("section",[t("p",[e._v("The main configuration file for LuckPerms can be found at these locations.")]),t("table",[t("thead",[t("tr",[t("th",[e._v("Platform")]),t("th",[e._v("Location")])])]),t("tbody",[t("tr",[t("td",[e._v("Bukkit/Spigot")]),t("td",[t("a",{attrs:{href:"https://github.com/LuckPerms/LuckPerms/blob/master/bukkit/src/main/resources/config.yml"}},[t("code",{pre:!0},[e._v("/plugins/LuckPerms/config.yml")])])])]),t("tr",[t("td",[e._v("BungeeCord")]),t("td",[t("a",{attrs:{href:"https://github.com/LuckPerms/LuckPerms/blob/master/bungee/src/main/resources/config.yml"}},[t("code",{pre:!0},[e._v("/plugins/LuckPerms/config.yml")])])])]),t("tr",[t("td",[e._v("Sponge")]),t("td",[t("a",{attrs:{href:"https://github.com/LuckPerms/LuckPerms/blob/master/sponge/src/main/resources/luckperms.conf"}},[t("code",{pre:!0},[e._v("/config/luckperms/luckperms.conf")])])])]),t("tr",[t("td",[e._v("Fabric")]),t("td",[t("a",{attrs:{href:"https://github.com/LuckPerms/LuckPerms/blob/master/fabric/src/main/resources/luckperms.conf"}},[t("code",{pre:!0},[e._v("/config/luckperms/luckperms.conf")])])])]),t("tr",[t("td",[e._v("Forge")]),t("td",[t("a",{attrs:{href:"https://github.com/LuckPerms/LuckPerms/blob/master/forge/src/main/resources/luckperms.conf"}},[t("code",{pre:!0},[e._v("/config/luckperms/luckperms.conf")])])])]),t("tr",[t("td",[e._v("Nukkit")]),t("td",[t("a",{attrs:{href:"https://github.com/LuckPerms/LuckPerms/blob/master/nukkit/src/main/resources/config.yml"}},[t("code",{pre:!0},[e._v("/plugins/LuckPerms/config.yml")])])])]),t("tr",[t("td",[e._v("Velocity")]),t("td",[t("a",{attrs:{href:"https://github.com/LuckPerms/LuckPerms/blob/master/velocity/src/main/resources/config.yml"}},[t("code",{pre:!0},[e._v("/plugins/luckperms/config.yml")])])])])])]),t("p",[e._v("Links to the default file for each platform are above. Please note that the configuration file does not automatically update when new options are added. The default options are used if nothing is found in the file.")]),t("h1",{attrs:{id:"index",tabindex:"-1"}},[e._v("Index "),t("a",{staticClass:"header-anchor",attrs:{href:"#index"}},[e._v("🔗")])]),t("h3",{attrs:{id:"essential-settings",tabindex:"-1"}},[e._v("Essential Settings "),t("a",{staticClass:"header-anchor",attrs:{href:"#essential-settings"}},[e._v("🔗")])]),t("ul",[t("li",[t("a",{attrs:{href:"#server"}},[t("code",{pre:!0},[e._v("server")])])]),t("li",[t("a",{attrs:{href:"#use-server-uuid-cache"}},[t("code",{pre:!0},[e._v("use-server-uuid-cache")])])])]),t("h3",{attrs:{id:"storage-settings",tabindex:"-1"}},[e._v("Storage Settings "),t("a",{staticClass:"header-anchor",attrs:{href:"#storage-settings"}},[e._v("🔗")])]),t("ul",[t("li",[t("a",{attrs:{href:"#storage-method"}},[t("code",{pre:!0},[e._v("storage-method")])])]),t("li",[t("a",{attrs:{href:"#data"}},[t("code",{pre:!0},[e._v("data")])])]),t("li",[t("a",{attrs:{href:"#pool-settings"}},[t("code",{pre:!0},[e._v("pool-settings")])])]),t("li",[t("a",{attrs:{href:"#split-storage"}},[t("code",{pre:!0},[e._v("split-storage")])])])]),t("h3",{attrs:{id:"update-propagation--messaging-service",tabindex:"-1"}},[e._v("Update Propagation & Messaging Service "),t("a",{staticClass:"header-anchor",attrs:{href:"#update-propagation--messaging-service"}},[e._v("🔗")])]),t("ul",[t("li",[t("a",{attrs:{href:"#sync-minutes"}},[t("code",{pre:!0},[e._v("sync-minutes")])])]),t("li",[t("a",{attrs:{href:"#watch-files"}},[t("code",{pre:!0},[e._v("watch-files")])])]),t("li",[t("a",{attrs:{href:"#messaging-service"}},[t("code",{pre:!0},[e._v("messaging-service")])])]),t("li",[t("a",{attrs:{href:"#auto-push-updates"}},[t("code",{pre:!0},[e._v("auto-push-updates")])])]),t("li",[t("a",{attrs:{href:"#push-log-entries"}},[t("code",{pre:!0},[e._v("push-log-entries")])])]),t("li",[t("a",{attrs:{href:"#broadcast-received-log-entries"}},[t("code",{pre:!0},[e._v("broadcast-received-log-entries")])])]),t("li",[t("a",{attrs:{href:"#redis"}},[t("code",{pre:!0},[e._v("redis")])])]),t("li",[t("a",{attrs:{href:"#rabbitmq"}},[t("code",{pre:!0},[e._v("rabbitmq")])])])]),t("h3",{attrs:{id:"customization-settings",tabindex:"-1"}},[e._v("Customization Settings "),t("a",{staticClass:"header-anchor",attrs:{href:"#customization-settings"}},[e._v("🔗")])]),t("ul",[t("li",[t("a",{attrs:{href:"#temporary-add-behaviour"}},[t("code",{pre:!0},[e._v("temporary-add-behaviour")])])]),t("li",[t("a",{attrs:{href:"#primary-group-calculation"}},[t("code",{pre:!0},[e._v("primary-group-calculation")])])]),t("li",[t("a",{attrs:{href:"#argument-based-command-permissions"}},[t("code",{pre:!0},[e._v("argument-based-command-permissions")])])]),t("li",[t("a",{attrs:{href:"#log-notify"}},[t("code",{pre:!0},[e._v("log-notify")])])]),t("li",[t("a",{attrs:{href:"#meta-formatting"}},[t("code",{pre:!0},[e._v("meta-formatting")])])])]),t("h3",{attrs:{id:"permission-calculation--inheritance",tabindex:"-1"}},[e._v("Permission Calculation & Inheritance "),t("a",{staticClass:"header-anchor",attrs:{href:"#permission-calculation--inheritance"}},[e._v("🔗")])]),t("ul",[t("li",[t("a",{attrs:{href:"#inheritance-traversal-algorithm"}},[t("code",{pre:!0},[e._v("inheritance-traversal-algorithm")])])])]),t("h5",{attrs:{id:"permission-resolution-settings",tabindex:"-1"}},[e._v("Permission resolution settings "),t("a",{staticClass:"header-anchor",attrs:{href:"#permission-resolution-settings"}},[e._v("🔗")])]),t("ul",[t("li",[t("a",{attrs:{href:"#include-global"}},[t("code",{pre:!0},[e._v("include-global")])])]),t("li",[t("a",{attrs:{href:"#include-global-world"}},[t("code",{pre:!0},[e._v("include-global-world")])])]),t("li",[t("a",{attrs:{href:"#apply-global-groups"}},[t("code",{pre:!0},[e._v("apply-global-groups")])])]),t("li",[t("a",{attrs:{href:"#apply-global-world-groups"}},[t("code",{pre:!0},[e._v("apply-global-world-groups")])])])]),t("h5",{attrs:{id:"meta-lookup-settings",tabindex:"-1"}},[e._v("Meta lookup settings "),t("a",{staticClass:"header-anchor",attrs:{href:"#meta-lookup-settings"}},[e._v("🔗")])]),t("ul",[t("li",[t("a",{attrs:{href:"#meta-value-selection-default"}},[t("code",{pre:!0},[e._v("meta-value-selection-default")])])]),t("li",[t("a",{attrs:{href:"#meta-value-selection"}},[t("code",{pre:!0},[e._v("meta-value-selection")])])])]),t("h5",{attrs:{id:"inheritance-settings",tabindex:"-1"}},[e._v("Inheritance settings "),t("a",{staticClass:"header-anchor",attrs:{href:"#inheritance-settings"}},[e._v("🔗")])]),t("ul",[t("li",[t("a",{attrs:{href:"#apply-wildcards"}},[t("code",{pre:!0},[e._v("apply-wildcards")])])]),t("li",[t("a",{attrs:{href:"#apply-regex"}},[t("code",{pre:!0},[e._v("apply-regex")])])]),t("li",[t("a",{attrs:{href:"#apply-shorthand"}},[t("code",{pre:!0},[e._v("apply-shorthand")])])])]),t("h6",{attrs:{id:"bukkit",tabindex:"-1"}},[e._v("Bukkit "),t("a",{staticClass:"header-anchor",attrs:{href:"#bukkit"}},[e._v("🔗")])]),t("ul",[t("li",[t("a",{attrs:{href:"#apply-bukkit-child-permissions"}},[t("code",{pre:!0},[e._v("apply-bukkit-child-permissions")])])]),t("li",[t("a",{attrs:{href:"#apply-bukkit-default-permissions"}},[t("code",{pre:!0},[e._v("apply-bukkit-default-permissions")])])]),t("li",[t("a",{attrs:{href:"#apply-bukkit-attachment-permissions"}},[t("code",{pre:!0},[e._v("apply-bukkit-attachment-permissions")])])])]),t("h6",{attrs:{id:"bungee",tabindex:"-1"}},[e._v("Bungee "),t("a",{staticClass:"header-anchor",attrs:{href:"#bungee"}},[e._v("🔗")])]),t("ul",[t("li",[t("a",{attrs:{href:"#apply-bungee-config-permissions"}},[t("code",{pre:!0},[e._v("apply-bungee-config-permissions")])])])]),t("h6",{attrs:{id:"sponge",tabindex:"-1"}},[e._v("Sponge "),t("a",{staticClass:"header-anchor",attrs:{href:"#sponge"}},[e._v("🔗")])]),t("ul",[t("li",[t("a",{attrs:{href:"#apply-sponge-implicit-wildcards"}},[t("code",{pre:!0},[e._v("apply-sponge-implicit-wildcards")])])]),t("li",[t("a",{attrs:{href:"#apply-sponge-default-subjects"}},[t("code",{pre:!0},[e._v("apply-sponge-default-subjects")])])])]),t("h5",{attrs:{id:"extra-settings",tabindex:"-1"}},[e._v("Extra settings "),t("a",{staticClass:"header-anchor",attrs:{href:"#extra-settings"}},[e._v("🔗")])]),t("ul",[t("li",[t("a",{attrs:{href:"#world-rewrite"}},[t("code",{pre:!0},[e._v("world-rewrite")])])]),t("li",[t("a",{attrs:{href:"#group-weight"}},[t("code",{pre:!0},[e._v("group-weight")])])])]),t("h3",{attrs:{id:"fine-tuning-options",tabindex:"-1"}},[e._v("Fine Tuning Options "),t("a",{staticClass:"header-anchor",attrs:{href:"#fine-tuning-options"}},[e._v("🔗")])]),t("h5",{attrs:{id:"server-operator--vault-bukkit-version-only",tabindex:"-1"}},[e._v("Server Operator / Vault (Bukkit version only) "),t("a",{staticClass:"header-anchor",attrs:{href:"#server-operator--vault-bukkit-version-only"}},[e._v("🔗")])]),t("ul",[t("li",[t("a",{attrs:{href:"#enable-ops"}},[t("code",{pre:!0},[e._v("enable-ops")])])]),t("li",[t("a",{attrs:{href:"#auto-op"}},[t("code",{pre:!0},[e._v("auto-op")])])]),t("li",[t("a",{attrs:{href:"#commands-allow-op"}},[t("code",{pre:!0},[e._v("commands-allow-op")])])]),t("li",[t("a",{attrs:{href:"#use-vault-server"}},[t("code",{pre:!0},[e._v("use-vault-server")])])]),t("li",[t("a",{attrs:{href:"#vault-server"}},[t("code",{pre:!0},[e._v("vault-server")])])]),t("li",[t("a",{attrs:{href:"#vault-include-global"}},[t("code",{pre:!0},[e._v("vault-include-global")])])]),t("li",[t("a",{attrs:{href:"#vault-ignore-world"}},[t("code",{pre:!0},[e._v("vault-ignore-world")])])]),t("li",[t("a",{attrs:{href:"#vault-debug"}},[t("code",{pre:!0},[e._v("vault-debug")])])])]),t("h3",{attrs:{id:"miscellaneous-settings",tabindex:"-1"}},[e._v("Miscellaneous Settings "),t("a",{staticClass:"header-anchor",attrs:{href:"#miscellaneous-settings"}},[e._v("🔗")])]),t("ul",[t("li",[t("a",{attrs:{href:"#debug-logins"}},[t("code",{pre:!0},[e._v("debug-logins")])])]),t("li",[t("a",{attrs:{href:"#allow-invalid-usernames"}},[t("code",{pre:!0},[e._v("allow-invalid-usernames")])])]),t("li",[t("a",{attrs:{href:"#prevent-primary-group-removal"}},[t("code",{pre:!0},[e._v("prevent-primary-group-removal")])])]),t("li",[t("a",{attrs:{href:"#contextsjson"}},[t("code",{pre:!0},[e._v("contexts.json")])])])]),t("h1",{attrs:{id:"config-sources",tabindex:"-1"}},[e._v("Config Sources "),t("a",{staticClass:"header-anchor",attrs:{href:"#config-sources"}},[e._v("🔗")])]),t("p",[e._v("LuckPerms will attempt to resolve configuration settings from various sources (in the following order).")]),t("ol",[t("li",[t("strong",[e._v("System Properties")])]),t("li",[t("strong",[e._v("Environment Variables")])]),t("li",[t("strong",[e._v("Configuration File")]),e._v(" ("),t("code",{pre:!0},[e._v("config.yml")]),e._v(" or "),t("code",{pre:!0},[e._v("luckperms.conf")]),e._v(", depending on the platform)")]),t("li",[e._v("Fallback to default values")])]),t("h3",{attrs:{id:"system-properties",tabindex:"-1"}},[e._v("System Properties "),t("a",{staticClass:"header-anchor",attrs:{href:"#system-properties"}},[e._v("🔗")])]),t("p",[t("a",{attrs:{href:"https://docs.oracle.com/javase/tutorial/essential/environment/sysprop.html"}},[e._v("System properties")]),e._v(" are a generic way to configure Java applications. They can either be set using a command line flag, or programmatically using the "),t("a",{attrs:{href:"https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/System.html"}},[t("code",{pre:!0},[e._v("java.lang.System")])]),e._v(" API.")]),t("p",[e._v("e.g. To replicate the following YAML from a LuckPerms config.yml with system properties:")]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs language-yaml"}},[t("span",{pre:!0,attrs:{class:"hljs-attr"}},[e._v("server:")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-string"}},[e._v("example")]),e._v("\n\n"),t("span",{pre:!0,attrs:{class:"hljs-attr"}},[e._v("storage-method:")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-string"}},[e._v("mysql")]),e._v("\n"),t("span",{pre:!0,attrs:{class:"hljs-attr"}},[e._v("data:")]),e._v("\n "),t("span",{pre:!0,attrs:{class:"hljs-attr"}},[e._v("address:")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-number"}},[e._v("192.168")]),t("span",{pre:!0,attrs:{class:"hljs-number"}},[e._v(".0")]),t("span",{pre:!0,attrs:{class:"hljs-number"}},[e._v(".100")]),e._v("\n")])]),t("p",[e._v("... start your server with the following arguments:")]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs"}},[t("span",{pre:!0,attrs:{class:"hljs-attribute"}},[e._v("java")]),e._v("\n -Dluckperms.server=example\n -Dluckperms.storage-method=mysql\n -Dluckperms.data.address="),t("span",{pre:!0,attrs:{class:"hljs-number"}},[e._v("192.168.0.100")]),e._v("\n -jar server.jar\n")])]),t("h3",{attrs:{id:"environment-variables",tabindex:"-1"}},[e._v("Environment Variables "),t("a",{staticClass:"header-anchor",attrs:{href:"#environment-variables"}},[e._v("🔗")])]),t("p",[t("a",{attrs:{href:"https://en.wikipedia.org/wiki/Environment_variable"}},[e._v("Environment variables")]),e._v(" are a generic way to configure any application. The way they are defined depends on your setup. An example is given below for unix-like shells, but you can also "),t("a",{attrs:{href:"https://docs.docker.com/engine/reference/commandline/run/#set-environment-variables--e---env---env-file"}},[e._v("easily set them")]),e._v(" if you're running your server in a Docker container, for example.")]),t("p",[e._v("e.g. To replicate the following YAML from a LuckPerms config.yml with environment variables:")]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs language-yaml"}},[t("span",{pre:!0,attrs:{class:"hljs-attr"}},[e._v("server:")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-string"}},[e._v("example")]),e._v("\n\n"),t("span",{pre:!0,attrs:{class:"hljs-attr"}},[e._v("storage-method:")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-string"}},[e._v("mysql")]),e._v("\n"),t("span",{pre:!0,attrs:{class:"hljs-attr"}},[e._v("data:")]),e._v("\n "),t("span",{pre:!0,attrs:{class:"hljs-attr"}},[e._v("address:")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-number"}},[e._v("192.168")]),t("span",{pre:!0,attrs:{class:"hljs-number"}},[e._v(".0")]),t("span",{pre:!0,attrs:{class:"hljs-number"}},[e._v(".100")]),e._v("\n")])]),t("p",[e._v("... start your server like so:")]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs language-bash"}},[t("span",{pre:!0,attrs:{class:"hljs-built_in"}},[e._v("export")]),e._v(" LUCKPERMS_SERVER="),t("span",{pre:!0,attrs:{class:"hljs-string"}},[e._v('"example"')]),e._v("\n"),t("span",{pre:!0,attrs:{class:"hljs-built_in"}},[e._v("export")]),e._v(" LUCKPERMS_STORAGE_METHOD="),t("span",{pre:!0,attrs:{class:"hljs-string"}},[e._v('"mysql"')]),e._v("\n"),t("span",{pre:!0,attrs:{class:"hljs-built_in"}},[e._v("export")]),e._v(" LUCKPERMS_DATA_ADDRESS="),t("span",{pre:!0,attrs:{class:"hljs-string"}},[e._v('"192.168.0.100"')]),e._v("\n\njava -jar server.jar\n")])]),t("h1",{attrs:{id:"descriptions",tabindex:"-1"}},[e._v("Descriptions "),t("a",{staticClass:"header-anchor",attrs:{href:"#descriptions"}},[e._v("🔗")])]),t("h3",{attrs:{id:"server",tabindex:"-1"}},[t("code",{pre:!0},[e._v("server")]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#server"}},[e._v("🔗")])]),t("p",[e._v("The name of the server, used for server specific permissions.")]),t("p",[e._v('If set to "global" this setting is ignored. More details about how server specific permissions are groups work can be found '),t("a",{attrs:{href:"Advanced-Setup"}},[e._v("here")]),e._v(".")]),t("h5",{attrs:{id:"example",tabindex:"-1"}},[e._v("Example "),t("a",{staticClass:"header-anchor",attrs:{href:"#example"}},[e._v("🔗")])]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs language-yaml"}},[t("span",{pre:!0,attrs:{class:"hljs-attr"}},[e._v("server:")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-string"}},[e._v("global")]),e._v("\n")])]),t("hr"),t("h3",{attrs:{id:"use-server-uuid-cache",tabindex:"-1"}},[t("code",{pre:!0},[e._v("use-server-uuid-cache")]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#use-server-uuid-cache"}},[e._v("🔗")])]),t("p",[e._v("If the servers own UUID cache/lookup facility should be used when there is no record for a player in the LuckPerms cache.")]),t("p",[e._v("When this setting is disabled, LP only uses its own cache.")]),t("h5",{attrs:{id:"example-1",tabindex:"-1"}},[e._v("Example "),t("a",{staticClass:"header-anchor",attrs:{href:"#example-1"}},[e._v("🔗")])]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs language-yaml"}},[t("span",{pre:!0,attrs:{class:"hljs-attr"}},[e._v("use-server-uuid-cache:")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-literal"}},[e._v("false")]),e._v("\n")])]),t("hr"),t("h3",{attrs:{id:"storage-method",tabindex:"-1"}},[t("code",{pre:!0},[e._v("storage-method")]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#storage-method"}},[e._v("🔗")])]),t("p",[e._v("Which storage method the plugin should use.")]),t("p",[e._v("See "),t("a",{attrs:{href:"Storage-types"}},[e._v("here")]),e._v(" for a full list of supported types.")]),t("p",[t("strong",[e._v("Accepts:")]),e._v(" "),t("code",{pre:!0},[e._v("mysql")]),e._v(", "),t("code",{pre:!0},[e._v("mariadb")]),e._v(", "),t("code",{pre:!0},[e._v("postgresql")]),e._v(", "),t("code",{pre:!0},[e._v("sqlite")]),e._v(", "),t("code",{pre:!0},[e._v("h2")]),e._v(", "),t("code",{pre:!0},[e._v("json")]),e._v(", "),t("code",{pre:!0},[e._v("yaml")]),e._v(", "),t("code",{pre:!0},[e._v("hocon")]),e._v(", "),t("code",{pre:!0},[e._v("mongodb")])]),t("p",[e._v("If your MySQL server supports it, the "),t("code",{pre:!0},[e._v("mariadb")]),e._v(" option is preferred over "),t("code",{pre:!0},[e._v("mysql")]),e._v(". "),t("code",{pre:!0},[e._v("h2")]),e._v(" is also generally preferred over "),t("code",{pre:!0},[e._v("sqlite")]),e._v(".")]),t("h5",{attrs:{id:"example-2",tabindex:"-1"}},[e._v("Example "),t("a",{staticClass:"header-anchor",attrs:{href:"#example-2"}},[e._v("🔗")])]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs language-yaml"}},[t("span",{pre:!0,attrs:{class:"hljs-attr"}},[e._v("storage-method:")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-string"}},[e._v("h2")]),e._v("\n")])]),t("hr"),t("h3",{attrs:{id:"data",tabindex:"-1"}},[t("code",{pre:!0},[e._v("data")]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#data"}},[e._v("🔗")])]),t("p",[e._v("This section is used for specifying credentials used for storage methods.")]),t("ul",[t("li",[t("strong",[t("code",{pre:!0},[e._v("address")])]),e._v(" - the host to be used for the database. Uses the standard DB engine port by default. If you have a non-default port, specify it here using "),t("code",{pre:!0},[e._v("host:port")]),e._v(".")]),t("li",[t("strong",[t("code",{pre:!0},[e._v("database")])]),e._v(" - the database which should be used by LuckPerms")]),t("li",[t("strong",[t("code",{pre:!0},[e._v("username")])]),e._v(" - the username to be used")]),t("li",[t("strong",[t("code",{pre:!0},[e._v("password")])]),e._v(" - the password to be used. Leave empty to use no authentication.")])]),t("h5",{attrs:{id:"example-3",tabindex:"-1"}},[e._v("Example "),t("a",{staticClass:"header-anchor",attrs:{href:"#example-3"}},[e._v("🔗")])]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs language-yaml"}},[t("span",{pre:!0,attrs:{class:"hljs-attr"}},[e._v("data:")]),e._v("\n "),t("span",{pre:!0,attrs:{class:"hljs-attr"}},[e._v("address:")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-string"}},[e._v("localhost")]),e._v("\n "),t("span",{pre:!0,attrs:{class:"hljs-attr"}},[e._v("database:")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-string"}},[e._v("minecraft")]),e._v("\n "),t("span",{pre:!0,attrs:{class:"hljs-attr"}},[e._v("username:")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-string"}},[e._v("root")]),e._v("\n "),t("span",{pre:!0,attrs:{class:"hljs-attr"}},[e._v("password:")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-string"}},[e._v("''")]),e._v("\n")])]),t("hr"),t("h3",{attrs:{id:"pool-settings",tabindex:"-1"}},[t("code",{pre:!0},[e._v("pool-settings")]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#pool-settings"}},[e._v("🔗")])]),t("p",[e._v("These settings apply to the MySQL connection pool. The default values will be suitable for the majority of users. Do not change these settings unless you know what you're doing!")]),t("p",[e._v("Sets the maximum size of the MySQL connection pool. Basically this value will determine the maximum number of actual connections to the database backend. More information about determining the size of connection pools can be found here:")]),t("p",[e._v("https://github.com/brettwooldridge/HikariCP/wiki/About-Pool-Sizing")]),t("h5",{attrs:{id:"example-4",tabindex:"-1"}},[e._v("Example "),t("a",{staticClass:"header-anchor",attrs:{href:"#example-4"}},[e._v("🔗")])]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs language-yaml"}},[t("span",{pre:!0,attrs:{class:"hljs-attr"}},[e._v("data:")]),e._v("\n "),t("span",{pre:!0,attrs:{class:"hljs-attr"}},[e._v("pool-settings:")]),e._v("\n "),t("span",{pre:!0,attrs:{class:"hljs-attr"}},[e._v("maximum-pool-size:")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-number"}},[e._v("10")]),e._v("\n")])]),t("hr"),t("h3",{attrs:{id:"split-storage",tabindex:"-1"}},[t("code",{pre:!0},[e._v("split-storage")]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#split-storage"}},[e._v("🔗")])]),t("p",[e._v("The split storage section allows you to use multiple storage options for different types of data.")]),t("p",[t("strong",[e._v("The different types of data are:")])]),t("ul",[t("li",[t("strong",[t("code",{pre:!0},[e._v("user")])]),e._v(" - data about users, including their permissions, parents and meta")]),t("li",[t("strong",[t("code",{pre:!0},[e._v("group")])]),e._v(" - data about groups, including their permissions, parents and meta")]),t("li",[t("strong",[t("code",{pre:!0},[e._v("track")])]),e._v(' - data about tracks (or so called "ladders")')]),t("li",[t("strong",[t("code",{pre:!0},[e._v("uuid")])]),e._v(" - a cache of "),t("code",{pre:!0},[e._v("uuid <-- --\x3e username")]),e._v(" used by LuckPerms when usernames are used in the "),t("code",{pre:!0},[e._v("/lp user")]),e._v(" command instead of uuids.")]),t("li",[t("strong",[t("code",{pre:!0},[e._v("log")])]),e._v(" - the action log stored by LuckPerms")])]),t("p",[e._v("The allowed storage types are detailed above.")]),t("h5",{attrs:{id:"example-5",tabindex:"-1"}},[e._v("Example "),t("a",{staticClass:"header-anchor",attrs:{href:"#example-5"}},[e._v("🔗")])]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs language-yaml"}},[t("span",{pre:!0,attrs:{class:"hljs-attr"}},[e._v("split-storage:")]),e._v("\n "),t("span",{pre:!0,attrs:{class:"hljs-attr"}},[e._v("enabled:")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-literal"}},[e._v("true")]),e._v("\n "),t("span",{pre:!0,attrs:{class:"hljs-attr"}},[e._v("methods:")]),e._v("\n "),t("span",{pre:!0,attrs:{class:"hljs-attr"}},[e._v("user:")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-string"}},[e._v("mariadb")]),e._v("\n "),t("span",{pre:!0,attrs:{class:"hljs-attr"}},[e._v("group:")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-string"}},[e._v("yaml")]),e._v("\n "),t("span",{pre:!0,attrs:{class:"hljs-attr"}},[e._v("track:")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-string"}},[e._v("yaml")]),e._v("\n "),t("span",{pre:!0,attrs:{class:"hljs-attr"}},[e._v("uuid:")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-string"}},[e._v("mariadb")]),e._v("\n "),t("span",{pre:!0,attrs:{class:"hljs-attr"}},[e._v("log:")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-string"}},[e._v("mariadb")]),e._v("\n")])]),t("hr"),t("h3",{attrs:{id:"sync-minutes",tabindex:"-1"}},[t("code",{pre:!0},[e._v("sync-minutes")]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#sync-minutes"}},[e._v("🔗")])]),t("p",[e._v("This option controls how frequently LuckPerms will perform a sync task.")]),t("p",[e._v("A sync task will refresh all data from the storage, and ensure that the most up-to-date data is being used by the plugin.")]),t("p",[e._v("This is disabled by default, as most users will not need it. However, if you're using a remote storage type without a messaging service setup, you may wish to set this value to something like 3.")]),t("p",[e._v("Set to -1 to disable the task completely.")]),t("h5",{attrs:{id:"example-6",tabindex:"-1"}},[e._v("Example "),t("a",{staticClass:"header-anchor",attrs:{href:"#example-6"}},[e._v("🔗")])]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs language-yaml"}},[t("span",{pre:!0,attrs:{class:"hljs-attr"}},[e._v("data:")]),e._v("\n "),t("span",{pre:!0,attrs:{class:"hljs-attr"}},[e._v("sync-minutes:")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-number"}},[e._v("3")]),e._v("\n")])]),t("hr"),t("h3",{attrs:{id:"watch-files",tabindex:"-1"}},[t("code",{pre:!0},[e._v("watch-files")]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#watch-files"}},[e._v("🔗")])]),t("p",[e._v("When using a file-based storage type, LuckPerms will monitor the data files for changes, and then schedule automatic updates when changes are detected.")]),t("p",[e._v("If you don't want this to happen, set this option to false.")]),t("h5",{attrs:{id:"example-7",tabindex:"-1"}},[e._v("Example "),t("a",{staticClass:"header-anchor",attrs:{href:"#example-7"}},[e._v("🔗")])]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs language-yaml"}},[t("span",{pre:!0,attrs:{class:"hljs-attr"}},[e._v("watch-files:")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-literal"}},[e._v("true")]),e._v("\n")])]),t("hr"),t("h3",{attrs:{id:"messaging-service",tabindex:"-1"}},[t("code",{pre:!0},[e._v("messaging-service")]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#messaging-service"}},[e._v("🔗")])]),t("p",[e._v("Settings for the messaging service.")]),t("p",[e._v('If enabled and configured, LuckPerms will use the messaging system to inform other connected servers of changes. Use the command "/luckperms networksync" to push changes. Data is NOT stored using this service. It is only used as a messaging platform.')]),t("p",[e._v('If you decide to enable this feature, you should set "sync-minutes" to -1, as there is no need for LuckPerms to poll the database for changes.')]),t("p",[t("strong",[e._v("Available options:")])]),t("ul",[t("li",[t("strong",[t("code",{pre:!0},[e._v("sql")])]),e._v(" - uses the SQL database to form a queue system for communication. Will only work when "),t("code",{pre:!0},[e._v("storage-method")]),e._v(" is set to MySQL or MariaDB. This is chosen by default when the option is set to 'none' and SQL storage is in use. Set to "),t("code",{pre:!0},[e._v("notsql")]),e._v(" to disable this.")]),t("li",[t("strong",[t("code",{pre:!0},[e._v("pluginmsg")])]),e._v(" - uses the plugin messaging channels to communicate. LuckPerms must be installed on your BungeeCord/Velocity proxy & all connected backend servers. This won't work if you have multiple proxies. The option needs to be set on all LP instances. Using "),t("code",{pre:!0},[e._v("sql")]),e._v(" is recommended over this option!")]),t("li",[t("strong",[t("code",{pre:!0},[e._v("lilypad")])]),e._v(" - uses LilyPad's pub sub to push changes. You need to have the LilyPad-Connect plugin installed.")]),t("li",[t("strong",[t("code",{pre:!0},[e._v("redis")])]),e._v(" - uses Redis pub sub to push changes.")]),t("li",[t("strong",[t("code",{pre:!0},[e._v("rabbitmq")])]),e._v(" - uses RabbitMQ pub sub (AMQP) to push changes.")]),t("li",[t("strong",[t("code",{pre:!0},[e._v("none")])]),e._v(" - nothing!")])]),t("h5",{attrs:{id:"example-8",tabindex:"-1"}},[e._v("Example "),t("a",{staticClass:"header-anchor",attrs:{href:"#example-8"}},[e._v("🔗")])]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs language-yaml"}},[t("span",{pre:!0,attrs:{class:"hljs-attr"}},[e._v("messaging-service:")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-string"}},[e._v("none")]),e._v("\n")])]),t("hr"),t("h3",{attrs:{id:"auto-push-updates",tabindex:"-1"}},[t("code",{pre:!0},[e._v("auto-push-updates")]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#auto-push-updates"}},[e._v("🔗")])]),t("p",[e._v("If LuckPerms should automatically push updates after a change has been made with a command.")]),t("h5",{attrs:{id:"example-9",tabindex:"-1"}},[e._v("Example "),t("a",{staticClass:"header-anchor",attrs:{href:"#example-9"}},[e._v("🔗")])]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs language-yaml"}},[t("span",{pre:!0,attrs:{class:"hljs-attr"}},[e._v("auto-push-updates:")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-literal"}},[e._v("true")]),e._v("\n")])]),t("hr"),t("h3",{attrs:{id:"push-log-entries",tabindex:"-1"}},[t("code",{pre:!0},[e._v("push-log-entries")]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#push-log-entries"}},[e._v("🔗")])]),t("p",[e._v("If LuckPerms should push logging entries to connected servers via the messaging service.")]),t("h5",{attrs:{id:"example-10",tabindex:"-1"}},[e._v("Example "),t("a",{staticClass:"header-anchor",attrs:{href:"#example-10"}},[e._v("🔗")])]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs language-yaml"}},[t("span",{pre:!0,attrs:{class:"hljs-attr"}},[e._v("push-log-entries:")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-literal"}},[e._v("true")]),e._v("\n")])]),t("hr"),t("h3",{attrs:{id:"broadcast-received-log-entries",tabindex:"-1"}},[t("code",{pre:!0},[e._v("broadcast-received-log-entries")]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#broadcast-received-log-entries"}},[e._v("🔗")])]),t("p",[e._v("If LuckPerms should broadcast received logging entries to players on this platform.")]),t("p",[e._v("If you have LuckPerms installed on your backend servers as well as a BungeeCord proxy, you should set this option to false on either your backends or your proxies, to avoid players being messaged twice about log entries.")]),t("h5",{attrs:{id:"example-11",tabindex:"-1"}},[e._v("Example "),t("a",{staticClass:"header-anchor",attrs:{href:"#example-11"}},[e._v("🔗")])]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs language-yaml"}},[t("span",{pre:!0,attrs:{class:"hljs-attr"}},[e._v("broadcast-received-log-entries:")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-literal"}},[e._v("true")]),e._v("\n")])]),t("hr"),t("h3",{attrs:{id:"redis",tabindex:"-1"}},[t("code",{pre:!0},[e._v("redis")]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#redis"}},[e._v("🔗")])]),t("p",[e._v("Settings for Redis.")]),t("ul",[t("li",[t("strong",[t("code",{pre:!0},[e._v("address")])]),e._v(" - the host to be used for redis (single node). Uses the standard port by default (6379). If you have a non-default port, specify it here using "),t("code",{pre:!0},[e._v("host:port")]),e._v(".")]),t("li",[t("strong",[t("code",{pre:!0},[e._v("addresses")])]),e._v(" - the hosts to be used for redis (cluster).")]),t("li",[t("strong",[t("code",{pre:!0},[e._v("password")])]),e._v(" - the password to be used. Leave empty to use no authentication.")])]),t("h5",{attrs:{id:"example-12",tabindex:"-1"}},[e._v("Example "),t("a",{staticClass:"header-anchor",attrs:{href:"#example-12"}},[e._v("🔗")])]),t("p",[e._v("For redis single node:")]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs language-yaml"}},[t("span",{pre:!0,attrs:{class:"hljs-attr"}},[e._v("redis:")]),e._v("\n "),t("span",{pre:!0,attrs:{class:"hljs-attr"}},[e._v("enabled:")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-literal"}},[e._v("true")]),e._v("\n "),t("span",{pre:!0,attrs:{class:"hljs-attr"}},[e._v("address:")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-string"}},[e._v("localhost")]),e._v("\n "),t("span",{pre:!0,attrs:{class:"hljs-attr"}},[e._v("password:")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-string"}},[e._v("'passw0rd'")]),e._v("\n")])]),t("p",[e._v("For redis cluster:")]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs language-yaml"}},[t("span",{pre:!0,attrs:{class:"hljs-attr"}},[e._v("redis:")]),e._v("\n "),t("span",{pre:!0,attrs:{class:"hljs-attr"}},[e._v("enabled:")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-literal"}},[e._v("true")]),e._v("\n "),t("span",{pre:!0,attrs:{class:"hljs-attr"}},[e._v("addresses:")]),e._v("\n "),t("span",{pre:!0,attrs:{class:"hljs-bullet"}},[e._v("-")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-string"}},[e._v("redis-node1")]),e._v("\n "),t("span",{pre:!0,attrs:{class:"hljs-bullet"}},[e._v("-")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-string"}},[e._v("redis-node2")]),e._v("\n "),t("span",{pre:!0,attrs:{class:"hljs-attr"}},[e._v("password:")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-string"}},[e._v("'passw0rd'")]),e._v("\n")])]),t("hr"),t("h3",{attrs:{id:"rabbitmq",tabindex:"-1"}},[t("code",{pre:!0},[e._v("rabbitmq")]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#rabbitmq"}},[e._v("🔗")])]),t("p",[e._v("Settings for RabbitMQ (AMQP).")]),t("ul",[t("li",[t("strong",[t("code",{pre:!0},[e._v("address")])]),e._v(" - the host to be used for rabbitmq. Uses the standard AMQP port by default (5672). If you have a non-default port, specify it here using "),t("code",{pre:!0},[e._v("host:port")]),e._v(".")]),t("li",[t("strong",[t("code",{pre:!0},[e._v("vhost")])]),e._v(" - the virtual host to use for LuckPerms. In most cases, this can (and should) be left default. See "),t("a",{attrs:{href:"https://www.rabbitmq.com/vhosts.html"}},[e._v("here")]),e._v(" for more information on virtual hosts.")]),t("li",[t("strong",[t("code",{pre:!0},[e._v("username")])]),e._v(" - the username to be used. Default is guest, which is a user that has all privileges on the / virtual host. See "),t("a",{attrs:{href:"https://www.rabbitmq.com/access-control.html"}},[e._v("here")]),e._v(" for more information on access control.")]),t("li",[t("strong",[t("code",{pre:!0},[e._v("password")])]),e._v(" - the password to be used. Default is guest, which is the password for the guest user (see above)")])]),t("h5",{attrs:{id:"example-13",tabindex:"-1"}},[e._v("Example "),t("a",{staticClass:"header-anchor",attrs:{href:"#example-13"}},[e._v("🔗")])]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs language-yaml"}},[t("span",{pre:!0,attrs:{class:"hljs-attr"}},[e._v("rabbitmq:")]),e._v("\n "),t("span",{pre:!0,attrs:{class:"hljs-attr"}},[e._v("enabled:")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-literal"}},[e._v("true")]),e._v("\n "),t("span",{pre:!0,attrs:{class:"hljs-attr"}},[e._v("address:")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-string"}},[e._v("localhost")]),e._v("\n "),t("span",{pre:!0,attrs:{class:"hljs-attr"}},[e._v("vhost:")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-string"}},[e._v("'/'")]),e._v("\n "),t("span",{pre:!0,attrs:{class:"hljs-attr"}},[e._v("username:")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-string"}},[e._v("'guest'")]),e._v("\n "),t("span",{pre:!0,attrs:{class:"hljs-attr"}},[e._v("password:")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-string"}},[e._v("'guest'")]),e._v("\n")])]),t("hr"),t("h3",{attrs:{id:"temporary-add-behaviour",tabindex:"-1"}},[t("code",{pre:!0},[e._v("temporary-add-behaviour")]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#temporary-add-behaviour"}},[e._v("🔗")])]),t("p",[e._v("Controls how temporary permissions/parents/meta should be accumulated. The default behaviour is "),t("code",{pre:!0},[e._v("deny")]),e._v(".")]),t("ul",[t("li",[t("strong",[t("code",{pre:!0},[e._v("accumulate")])]),e._v(" - the duration of any existing nodes will just be added to the new duration")]),t("li",[t("strong",[t("code",{pre:!0},[e._v("replace")])]),e._v(" - the longest duration will be kept, any others nodes will be forgotten")]),t("li",[t("strong",[t("code",{pre:!0},[e._v("deny")])]),e._v(" - the command will just fail if you try to add a duplicate temporary node")])]),t("h5",{attrs:{id:"example-14",tabindex:"-1"}},[e._v("Example "),t("a",{staticClass:"header-anchor",attrs:{href:"#example-14"}},[e._v("🔗")])]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs language-yaml"}},[t("span",{pre:!0,attrs:{class:"hljs-attr"}},[e._v("temporary-add-behaviour:")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-string"}},[e._v("deny")]),e._v("\n")])]),t("hr"),t("h3",{attrs:{id:"primary-group-calculation",tabindex:"-1"}},[t("code",{pre:!0},[e._v("primary-group-calculation")]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#primary-group-calculation"}},[e._v("🔗")])]),t("p",[e._v('How should LuckPerms determine a users "primary" group. The default is '),t("code",{pre:!0},[e._v("parents-by-weight")]),e._v(".")]),t("ul",[t("li",[t("strong",[t("code",{pre:!0},[e._v("stored")])]),e._v(" - use the value stored against the users record in the file/database")]),t("li",[t("strong",[t("code",{pre:!0},[e._v("parents-by-weight")])]),e._v(" - use the users most highly weighted parent")]),t("li",[t("strong",[t("code",{pre:!0},[e._v("all-parents-by-weight")])]),e._v(" - same as above, but calculates based upon all parents inherited from both directly and indirectly")])]),t("h5",{attrs:{id:"example-15",tabindex:"-1"}},[e._v("Example "),t("a",{staticClass:"header-anchor",attrs:{href:"#example-15"}},[e._v("🔗")])]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs language-yaml"}},[t("span",{pre:!0,attrs:{class:"hljs-attr"}},[e._v("primary-group-calculation:")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-string"}},[e._v("parents-by-weight")]),e._v("\n")])]),t("hr"),t("h3",{attrs:{id:"argument-based-command-permissions",tabindex:"-1"}},[t("code",{pre:!0},[e._v("argument-based-command-permissions")]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#argument-based-command-permissions"}},[e._v("🔗")])]),t("p",[e._v("If LuckPerms should run extra permission checks when a player uses commands to modify permission data.")]),t("p",[e._v("This system is documented in detail "),t("a",{attrs:{href:"Argument-based-command-permissions"}},[e._v("here")]),e._v(".")]),t("h5",{attrs:{id:"example-16",tabindex:"-1"}},[e._v("Example "),t("a",{staticClass:"header-anchor",attrs:{href:"#example-16"}},[e._v("🔗")])]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs language-yaml"}},[t("span",{pre:!0,attrs:{class:"hljs-attr"}},[e._v("argument-based-command-permissions:")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-literal"}},[e._v("true")]),e._v("\n")])]),t("hr"),t("h3",{attrs:{id:"log-notify",tabindex:"-1"}},[t("code",{pre:!0},[e._v("log-notify")]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#log-notify"}},[e._v("🔗")])]),t("p",[e._v("If the plugin should send log notifications to users whenever permissions are modified. Notifications are only sent to those with the appropriate permission to receive the notification.")]),t("p",[e._v("Notifications can also be disabled temporarily in-game using "),t("code",{pre:!0},[e._v("/lp log notify off")])]),t("h5",{attrs:{id:"example-17",tabindex:"-1"}},[e._v("Example "),t("a",{staticClass:"header-anchor",attrs:{href:"#example-17"}},[e._v("🔗")])]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs language-yaml"}},[t("span",{pre:!0,attrs:{class:"hljs-attr"}},[e._v("log-notify:")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-literal"}},[e._v("true")]),e._v("\n")])]),t("hr"),t("h3",{attrs:{id:"meta-formatting",tabindex:"-1"}},[t("code",{pre:!0},[e._v("meta-formatting")]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#meta-formatting"}},[e._v("🔗")])]),t("p",[e._v("How LuckPerms should form prefixes and suffixes.")]),t("p",[e._v("This system is documented in detail "),t("a",{attrs:{href:"Prefix-&-Suffix-Stacking"}},[e._v("here")]),e._v(".")]),t("hr"),t("h3",{attrs:{id:"inheritance-traversal-algorithm",tabindex:"-1"}},[t("code",{pre:!0},[e._v("inheritance-traversal-algorithm")]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#inheritance-traversal-algorithm"}},[e._v("🔗")])]),t("p",[e._v('The algorithm LuckPerms should use when traversing the "inheritance tree".')]),t("ul",[t("li",[t("strong",[t("code",{pre:!0},[e._v("breadth-first")])]),e._v(" - See: https://en.wikipedia.org/wiki/Breadth-first_search")]),t("li",[t("strong",[t("code",{pre:!0},[e._v("depth-first-pre-order")])]),e._v(" - See: https://en.wikipedia.org/wiki/Depth-first_search")]),t("li",[t("strong",[t("code",{pre:!0},[e._v("depth-first-post-order")])]),e._v(" - See: https://en.wikipedia.org/wiki/Depth-first_search")])]),t("h5",{attrs:{id:"example-18",tabindex:"-1"}},[e._v("Example "),t("a",{staticClass:"header-anchor",attrs:{href:"#example-18"}},[e._v("🔗")])]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs language-yaml"}},[t("span",{pre:!0,attrs:{class:"hljs-attr"}},[e._v("inheritance-traversal-algorithm:")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-string"}},[e._v("depth-first-pre-order")]),e._v("\n")])]),t("hr"),t("h3",{attrs:{id:"include-global",tabindex:"-1"}},[t("code",{pre:!0},[e._v("include-global")]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#include-global"}},[e._v("🔗")])]),t("p",[e._v("If players on this server should have their global permissions applied. (permissions that were not set with a specific server).")]),t("p",[e._v('If this option is set to false, only permissions that were specifically set to apply on this server will apply. Do not set to false if the "server" option above is set to global. More details about how server specific permissions are groups work can be found '),t("a",{attrs:{href:"Advanced-Setup"}},[e._v("here")]),e._v(".")]),t("h5",{attrs:{id:"example-19",tabindex:"-1"}},[e._v("Example "),t("a",{staticClass:"header-anchor",attrs:{href:"#example-19"}},[e._v("🔗")])]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs language-yaml"}},[t("span",{pre:!0,attrs:{class:"hljs-attr"}},[e._v("include-global:")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-literal"}},[e._v("true")]),e._v("\n")])]),t("hr"),t("h3",{attrs:{id:"include-global-world",tabindex:"-1"}},[t("code",{pre:!0},[e._v("include-global-world")]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#include-global-world"}},[e._v("🔗")])]),t("p",[e._v("Similar to the option above, except this works with worlds. If set to false, only permissions that are set in specific worlds will be given to users. Any permissions set without a specific world context will not be applied.")]),t("h5",{attrs:{id:"example-20",tabindex:"-1"}},[e._v("Example "),t("a",{staticClass:"header-anchor",attrs:{href:"#example-20"}},[e._v("🔗")])]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs language-yaml"}},[t("span",{pre:!0,attrs:{class:"hljs-attr"}},[e._v("include-global-world:")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-literal"}},[e._v("true")]),e._v("\n")])]),t("hr"),t("h3",{attrs:{id:"apply-global-groups",tabindex:"-1"}},[t("code",{pre:!0},[e._v("apply-global-groups")]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#apply-global-groups"}},[e._v("🔗")])]),t("p",[e._v('This option operates in the same manner as "include-global", except changes the setting for group inheritance.')]),t("p",[e._v('When calculating a players permissions, the plugin will scale the inheritance tree, resolving group memberships recursively. If this setting is set to false, and as a result, a group is not "applied", then none of that groups parents will be considered, and the inheritance lookup will stop at that point.')]),t("p",[e._v("This means that even if a player indirectly inherits a group on a specific server, the group will not be applied if it is inherited through a non-server specific group.")]),t("p",[e._v("For example, with this setting false, and the following setup:")]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs"}},[t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("User")]),e._v(' "Luck" inherits '),t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("from")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("group")]),e._v(' "admin" globally, '),t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("and")]),e._v(" admin inherits "),t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("from")]),e._v(' "default" '),t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("on")]),e._v(" a "),t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("specific")]),e._v(" server.\n")])]),t("p",[e._v("Even though Luck inherits default on the specific server, it will not be applied, because the inheritance lookup stops at admin. The parent groups of admin are therefore never even considered.")]),t("h5",{attrs:{id:"example-21",tabindex:"-1"}},[e._v("Example "),t("a",{staticClass:"header-anchor",attrs:{href:"#example-21"}},[e._v("🔗")])]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs language-yaml"}},[t("span",{pre:!0,attrs:{class:"hljs-attr"}},[e._v("apply-global-groups:")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-literal"}},[e._v("true")]),e._v("\n")])]),t("hr"),t("h3",{attrs:{id:"apply-global-world-groups",tabindex:"-1"}},[t("code",{pre:!0},[e._v("apply-global-world-groups")]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#apply-global-world-groups"}},[e._v("🔗")])]),t("p",[e._v("Similar to the option above, except this works with worlds. If set to false, only groups that are set in specific worlds will be assigned and resolved for users. Any groups set without a specific world context will not be applied.")]),t("h5",{attrs:{id:"example-22",tabindex:"-1"}},[e._v("Example "),t("a",{staticClass:"header-anchor",attrs:{href:"#example-22"}},[e._v("🔗")])]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs language-yaml"}},[t("span",{pre:!0,attrs:{class:"hljs-attr"}},[e._v("apply-global-world-groups:")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-literal"}},[e._v("true")]),e._v("\n")])]),t("hr"),t("h3",{attrs:{id:"meta-value-selection-default",tabindex:"-1"}},[t("code",{pre:!0},[e._v("meta-value-selection-default")]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#meta-value-selection-default"}},[e._v("🔗")])]),t("p",[e._v("Defines how meta values should be selected. The default value is "),t("code",{pre:!0},[e._v("inheritance")]),e._v(".")]),t("ul",[t("li",[t("strong",[t("code",{pre:!0},[e._v("inheritance")])]),e._v(" - Selects the meta value that was inherited first")]),t("li",[t("strong",[t("code",{pre:!0},[e._v("highest-number")])]),e._v(" - Selects the highest numerical meta value")]),t("li",[t("strong",[t("code",{pre:!0},[e._v("lowest-number")])]),e._v(" - Selects the lowest numerical meta value")])]),t("h5",{attrs:{id:"example-23",tabindex:"-1"}},[e._v("Example "),t("a",{staticClass:"header-anchor",attrs:{href:"#example-23"}},[e._v("🔗")])]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs language-yaml"}},[t("span",{pre:!0,attrs:{class:"hljs-attr"}},[e._v("meta-value-selection-default:")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-string"}},[e._v("inheritance")]),e._v("\n")])]),t("hr"),t("h3",{attrs:{id:"meta-value-selection",tabindex:"-1"}},[t("code",{pre:!0},[e._v("meta-value-selection")]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#meta-value-selection"}},[e._v("🔗")])]),t("p",[e._v("Defines how meta values should be selected per key.")]),t("p",[e._v("See the option above for available settings.")]),t("h5",{attrs:{id:"example-24",tabindex:"-1"}},[e._v("Example "),t("a",{staticClass:"header-anchor",attrs:{href:"#example-24"}},[e._v("🔗")])]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs language-yaml"}},[t("span",{pre:!0,attrs:{class:"hljs-attr"}},[e._v("meta-value-selection:")]),e._v("\n "),t("span",{pre:!0,attrs:{class:"hljs-attr"}},[e._v("max-homes:")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-string"}},[e._v("highest-number")]),e._v("\n")])]),t("hr"),t("h3",{attrs:{id:"apply-wildcards",tabindex:"-1"}},[t("code",{pre:!0},[e._v("apply-wildcards")]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#apply-wildcards"}},[e._v("🔗")])]),t("p",[e._v("If the plugin should apply wildcard permissions.")]),t("p",[e._v('If plugin authors do not provide their own wildcard permissions, then enabling this option will allow LuckPerms to parse them instead. Bukkit especially did not endorse this practice, however it has become common among server administrators. On Sponge, this setting control whether "node.part.*" style wildcards will function.')]),t("h5",{attrs:{id:"example-25",tabindex:"-1"}},[e._v("Example "),t("a",{staticClass:"header-anchor",attrs:{href:"#example-25"}},[e._v("🔗")])]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs language-yaml"}},[t("span",{pre:!0,attrs:{class:"hljs-attr"}},[e._v("apply-wildcards:")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-literal"}},[e._v("true")]),e._v("\n")])]),t("hr"),t("h3",{attrs:{id:"apply-regex",tabindex:"-1"}},[t("code",{pre:!0},[e._v("apply-regex")]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#apply-regex"}},[e._v("🔗")])]),t("p",[e._v("If the plugin should parse regex permissions.")]),t("p",[e._v('If set to true, LuckPerms will detect any regex permissions, marked with "r=" at the start of the node, and return all requests matching the node. If you do not have any regex permissions setup, enabling this option will have no impact on performance. More info on this feature can be found '),t("a",{attrs:{href:"Advanced-Setup#regex"}},[e._v("here")]),e._v(".")]),t("h5",{attrs:{id:"example-26",tabindex:"-1"}},[e._v("Example "),t("a",{staticClass:"header-anchor",attrs:{href:"#example-26"}},[e._v("🔗")])]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs language-yaml"}},[t("span",{pre:!0,attrs:{class:"hljs-attr"}},[e._v("apply-regex:")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-literal"}},[e._v("true")]),e._v("\n")])]),t("hr"),t("h3",{attrs:{id:"apply-shorthand",tabindex:"-1"}},[t("code",{pre:!0},[e._v("apply-shorthand")]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#apply-shorthand"}},[e._v("🔗")])]),t("p",[e._v("If the plugin should resolve and apply any shorthand (GLOB style) permissions.")]),t("p",[e._v("More info on this feature can be found "),t("a",{attrs:{href:"Advanced-Setup#shorthand-permissions"}},[e._v("here")]),e._v(".")]),t("h5",{attrs:{id:"example-27",tabindex:"-1"}},[e._v("Example "),t("a",{staticClass:"header-anchor",attrs:{href:"#example-27"}},[e._v("🔗")])]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs language-yaml"}},[t("span",{pre:!0,attrs:{class:"hljs-attr"}},[e._v("apply-shorthand:")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-literal"}},[e._v("true")]),e._v("\n")])]),t("hr"),t("h3",{attrs:{id:"apply-bukkit-child-permissions",tabindex:"-1"}},[t("code",{pre:!0},[e._v("apply-bukkit-child-permissions")]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#apply-bukkit-child-permissions"}},[e._v("🔗")])]),t("p",[e._v("If the plugin should apply Bukkit child permissions.")]),t("p",[e._v("Plugin authors can define custom permissions structures for their plugin, which will be resolved and used by LuckPerms if this setting is enabled.")]),t("p",[e._v("This is enabled by default, as it is a standard Bukkit feature, which most server admins expect to work. However, if you'd prefer not to use this system, it can be safely disabled.")]),t("h5",{attrs:{id:"example-28",tabindex:"-1"}},[e._v("Example "),t("a",{staticClass:"header-anchor",attrs:{href:"#example-28"}},[e._v("🔗")])]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs language-yaml"}},[t("span",{pre:!0,attrs:{class:"hljs-attr"}},[e._v("apply-bukkit-child-permissions:")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-literal"}},[e._v("true")]),e._v("\n")])]),t("hr"),t("h3",{attrs:{id:"apply-bukkit-default-permissions",tabindex:"-1"}},[t("code",{pre:!0},[e._v("apply-bukkit-default-permissions")]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#apply-bukkit-default-permissions"}},[e._v("🔗")])]),t("p",[e._v("If the plugin should apply Bukkit default permissions.")]),t("p",[e._v("Plugin authors can define permissions which should be given to all users by default, or setup permissions which should/shouldn't be given to opped players. If this option is set to false, LuckPerms will ignore these defaults.")]),t("p",[e._v("This is enabled by default, as it is a standard Bukkit feature, which most server admins expect to work. However, if you'd prefer not to use this system, it can be safely disabled.")]),t("h5",{attrs:{id:"example-29",tabindex:"-1"}},[e._v("Example "),t("a",{staticClass:"header-anchor",attrs:{href:"#example-29"}},[e._v("🔗")])]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs language-yaml"}},[t("span",{pre:!0,attrs:{class:"hljs-attr"}},[e._v("apply-bukkit-default-permissions:")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-literal"}},[e._v("true")]),e._v("\n")])]),t("hr"),t("h3",{attrs:{id:"apply-bukkit-attachment-permissions",tabindex:"-1"}},[t("code",{pre:!0},[e._v("apply-bukkit-attachment-permissions")]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#apply-bukkit-attachment-permissions"}},[e._v("🔗")])]),t("p",[e._v("If the plugin should apply Bukkit attachment permissions.")]),t("p",[e._v('Other plugins on the server are able to add their own "permission attachments" to players. This allows them to grant players additional permissions which last until the end of the session, or until they\'re removed. If this option is set to false, LuckPerms will not include these attachment permissions when considering if a player should have access to a certain permission.')]),t("p",[e._v("You may also see a slight performance improvement by enabling this feature. Combined with disabling the OP system, this system can be quite effective at disabling malicious attempts by plugins to grant arbitrary permissions to players.")]),t("p",[e._v("This is enabled by default, as it is a standard Bukkit feature, which most server admins expect to work. However, if you'd prefer not to use this system, it can be safely disabled.")]),t("h5",{attrs:{id:"example-30",tabindex:"-1"}},[e._v("Example "),t("a",{staticClass:"header-anchor",attrs:{href:"#example-30"}},[e._v("🔗")])]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs language-yaml"}},[t("span",{pre:!0,attrs:{class:"hljs-attr"}},[e._v("apply-bukkit-attachment-permissions:")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-literal"}},[e._v("true")]),e._v("\n")])]),t("hr"),t("h3",{attrs:{id:"apply-bungee-config-permissions",tabindex:"-1"}},[t("code",{pre:!0},[e._v("apply-bungee-config-permissions")]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#apply-bungee-config-permissions"}},[e._v("🔗")])]),t("p",[e._v("If the plugin should apply the permissions & groups defined in the BungeeCord config.yml")]),t("p",[e._v("If set to false, LuckPerms will ignore these values.")]),t("p",[e._v("This is disabled by default, as permissions should really be defined within LuckPerms, so they can be viewed and edited in-game alongside everything else.")]),t("h5",{attrs:{id:"example-31",tabindex:"-1"}},[e._v("Example "),t("a",{staticClass:"header-anchor",attrs:{href:"#example-31"}},[e._v("🔗")])]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs language-yaml"}},[t("span",{pre:!0,attrs:{class:"hljs-attr"}},[e._v("apply-bungee-config-permissions:")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-literal"}},[e._v("false")]),e._v("\n")])]),t("hr"),t("h3",{attrs:{id:"apply-sponge-implicit-wildcards",tabindex:"-1"}},[t("code",{pre:!0},[e._v("apply-sponge-implicit-wildcards")]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#apply-sponge-implicit-wildcards"}},[e._v("🔗")])]),t("p",[e._v("If the plugin should resolve and apply permissions according to Sponge's implicit wildcard inheritance system.")]),t("p",[e._v("That being: If a user has been granted "),t("code",{pre:!0},[e._v("example")]),e._v(", then the player should have also be automatically granted "),t("code",{pre:!0},[e._v("example.function")]),e._v(", "),t("code",{pre:!0},[e._v("example.another")]),e._v(", "),t("code",{pre:!0},[e._v("example.deeper.nesting")]),e._v(", and so on.")]),t("p",[e._v("If this option is set to false, this system will not be applied.")]),t("p",[e._v("This is enabled by default, as it is a standard Sponge feature, which most server admins / plugin authors expect to work. However, if you'd prefer not to use this system, it can be disabled.")]),t("h5",{attrs:{id:"example-32",tabindex:"-1"}},[e._v("Example "),t("a",{staticClass:"header-anchor",attrs:{href:"#example-32"}},[e._v("🔗")])]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs language-hocon"}},[e._v("apply-sponge-implicit-wildcards=true\n")])]),t("hr"),t("h3",{attrs:{id:"apply-sponge-default-subjects",tabindex:"-1"}},[t("code",{pre:!0},[e._v("apply-sponge-default-subjects")]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#apply-sponge-default-subjects"}},[e._v("🔗")])]),t("p",[e._v("If the plugin should apply Sponge default subject permissions.")]),t("p",[e._v("Plugins can manipulate a set of default permissions granted to all users. If this option is set to false, the plugin will ignore this data when considering if a player has a permission.")]),t("p",[e._v("This is enabled by default, as it is a standard Sponge feature, which most server admins / plugin authors expect to work. However, if you'd prefer not to use this system, it can be disabled.")]),t("h5",{attrs:{id:"example-33",tabindex:"-1"}},[e._v("Example "),t("a",{staticClass:"header-anchor",attrs:{href:"#example-33"}},[e._v("🔗")])]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs language-hocon"}},[e._v("apply-sponge-default-subjects=true\n")])]),t("hr"),t("h3",{attrs:{id:"world-rewrite",tabindex:"-1"}},[t("code",{pre:!0},[e._v("world-rewrite")]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#world-rewrite"}},[e._v("🔗")])]),t("p",[e._v('Allows you to set "aliases" for the worlds sent forward for context calculation. These aliases are provided in addition to the real world name. Applied recursively.')]),t("h5",{attrs:{id:"example-34",tabindex:"-1"}},[e._v("Example "),t("a",{staticClass:"header-anchor",attrs:{href:"#example-34"}},[e._v("🔗")])]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs language-yaml"}},[t("span",{pre:!0,attrs:{class:"hljs-attr"}},[e._v("world-rewrite:")]),e._v("\n "),t("span",{pre:!0,attrs:{class:"hljs-attr"}},[e._v("world_nether:")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-string"}},[e._v("world")]),e._v("\n "),t("span",{pre:!0,attrs:{class:"hljs-attr"}},[e._v("world_the_end:")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-string"}},[e._v("world")]),e._v("\n")])]),t("hr"),t("h3",{attrs:{id:"enable-ops",tabindex:"-1"}},[t("code",{pre:!0},[e._v("enable-ops")]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#enable-ops"}},[e._v("🔗")])]),t("p",[e._v("If the vanilla OP system should be used.")]),t("p",[e._v("If set to false, all users will be de-opped, and the op/deop commands will be disabled.")]),t("h5",{attrs:{id:"example-35",tabindex:"-1"}},[e._v("Example "),t("a",{staticClass:"header-anchor",attrs:{href:"#example-35"}},[e._v("🔗")])]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs language-yaml"}},[t("span",{pre:!0,attrs:{class:"hljs-attr"}},[e._v("enable-ops:")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-literal"}},[e._v("true")]),e._v("\n")])]),t("hr"),t("h3",{attrs:{id:"auto-op",tabindex:"-1"}},[t("code",{pre:!0},[e._v("auto-op")]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#auto-op"}},[e._v("🔗")])]),t("p",[e._v('If set to true, any user with the permission "luckperms.autoop" will automatically be granted server operator status.')]),t("p",[e._v('This permission can be inherited, or set on specific servers/worlds, temporarily, etc. Additionally, setting this to true will force the "enable-ops" option above to false. All users will be de-opped unless they have the permission node, and the op/deop commands will be disabled.')]),t("p",[e._v("It is important to note that this setting is only checked when a player first joins the server, and when they switch worlds. Therefore, simply removing this permission from a user will not automatically de-op them. A player may need to relog to have the change take effect.")]),t("p",[e._v("It is recommended that you use this option instead of assigning a single '*' permission.")]),t("h5",{attrs:{id:"example-36",tabindex:"-1"}},[e._v("Example "),t("a",{staticClass:"header-anchor",attrs:{href:"#example-36"}},[e._v("🔗")])]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs language-yaml"}},[t("span",{pre:!0,attrs:{class:"hljs-attr"}},[e._v("auto-op:")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-literal"}},[e._v("false")]),e._v("\n")])]),t("hr"),t("h3",{attrs:{id:"commands-allow-op",tabindex:"-1"}},[t("code",{pre:!0},[e._v("commands-allow-op")]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#commands-allow-op"}},[e._v("🔗")])]),t("p",[e._v("If opped players should be allowed to use LuckPerms commands.")]),t("p",[e._v("Set to false to only allow users who have the permissions access to the commands")]),t("h5",{attrs:{id:"example-37",tabindex:"-1"}},[e._v("Example "),t("a",{staticClass:"header-anchor",attrs:{href:"#example-37"}},[e._v("🔗")])]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs language-yaml"}},[t("span",{pre:!0,attrs:{class:"hljs-attr"}},[e._v("commands-allow-op:")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-literal"}},[e._v("true")]),e._v("\n")])]),t("hr"),t("h3",{attrs:{id:"use-vault-server",tabindex:"-1"}},[t("code",{pre:!0},[e._v("use-vault-server")]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#use-vault-server"}},[e._v("🔗")])]),t("p",[e._v("If the "),t("code",{pre:!0},[e._v("vault-server")]),e._v(" option below should be used.")]),t("p",[e._v('When this option is set to false, the server value defined above under "server" is used for Vault operations.')]),t("h5",{attrs:{id:"example-38",tabindex:"-1"}},[e._v("Example "),t("a",{staticClass:"header-anchor",attrs:{href:"#example-38"}},[e._v("🔗")])]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs language-yaml"}},[t("span",{pre:!0,attrs:{class:"hljs-attr"}},[e._v("use-vault-server:")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-literal"}},[e._v("false")]),e._v("\n")])]),t("hr"),t("h3",{attrs:{id:"vault-server",tabindex:"-1"}},[t("code",{pre:!0},[e._v("vault-server")]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#vault-server"}},[e._v("🔗")])]),t("p",[e._v("The name of the server used within Vault operations.")]),t("p",[e._v('If you don\'t want Vault operations to be server specific, set this to "global".')]),t("p",[e._v("Will only take effect if "),t("code",{pre:!0},[e._v("use-vault-server")]),e._v(" is set to true above.")]),t("h5",{attrs:{id:"example-39",tabindex:"-1"}},[e._v("Example "),t("a",{staticClass:"header-anchor",attrs:{href:"#example-39"}},[e._v("🔗")])]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs language-yaml"}},[t("span",{pre:!0,attrs:{class:"hljs-attr"}},[e._v("vault-server:")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-string"}},[e._v("global")]),e._v("\n")])]),t("hr"),t("h3",{attrs:{id:"vault-include-global",tabindex:"-1"}},[t("code",{pre:!0},[e._v("vault-include-global")]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#vault-include-global"}},[e._v("🔗")])]),t("p",[e._v("If global permissions should be considered when retrieving meta or player groups.")]),t("h5",{attrs:{id:"example-40",tabindex:"-1"}},[e._v("Example "),t("a",{staticClass:"header-anchor",attrs:{href:"#example-40"}},[e._v("🔗")])]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs language-yaml"}},[t("span",{pre:!0,attrs:{class:"hljs-attr"}},[e._v("vault-include-global:")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-literal"}},[e._v("true")]),e._v("\n")])]),t("hr"),t("h3",{attrs:{id:"vault-ignore-world",tabindex:"-1"}},[t("code",{pre:!0},[e._v("vault-ignore-world")]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#vault-ignore-world"}},[e._v("🔗")])]),t("p",[e._v("If Vault operations should ignore any world arguments if supplied.")]),t("p",[e._v("By default, if a world argument is not supplied, permissions will be set on the players current world. (Vault design is just 10/10). Set this to true to change this behaviour.")]),t("h5",{attrs:{id:"example-41",tabindex:"-1"}},[e._v("Example "),t("a",{staticClass:"header-anchor",attrs:{href:"#example-41"}},[e._v("🔗")])]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs language-yaml"}},[t("span",{pre:!0,attrs:{class:"hljs-attr"}},[e._v("vault-ignore-world:")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-literal"}},[e._v("false")]),e._v("\n")])]),t("hr"),t("h3",{attrs:{id:"vault-debug",tabindex:"-1"}},[t("code",{pre:!0},[e._v("vault-debug")]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#vault-debug"}},[e._v("🔗")])]),t("p",[e._v("If LuckPerms should print debugging info to console when a plugin uses a Vault function")]),t("h5",{attrs:{id:"example-42",tabindex:"-1"}},[e._v("Example "),t("a",{staticClass:"header-anchor",attrs:{href:"#example-42"}},[e._v("🔗")])]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs language-yaml"}},[t("span",{pre:!0,attrs:{class:"hljs-attr"}},[e._v("vault-debug:")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-literal"}},[e._v("false")]),e._v("\n")])]),t("hr"),t("h3",{attrs:{id:"debug-logins",tabindex:"-1"}},[t("code",{pre:!0},[e._v("debug-logins")]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#debug-logins"}},[e._v("🔗")])]),t("p",[e._v("If LuckPerms should produce extra logging output when it handles logins.")]),t("p",[e._v("Useful if you're having issues with UUID forwarding or data not being loaded.")]),t("p",[e._v("The debug messages look like this:")]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs"}},[e._v("[INFO]: [LP] Processing pre"),t("span",{pre:!0,attrs:{class:"hljs-operator"}},[e._v("-")]),e._v("login "),t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("for")]),e._v(" c1d60c50"),t("span",{pre:!0,attrs:{class:"hljs-number"}},[e._v("-70")]),e._v("b5"),t("span",{pre:!0,attrs:{class:"hljs-number"}},[e._v("-4722")]),t("span",{pre:!0,attrs:{class:"hljs-number"}},[e._v("-8057")]),t("span",{pre:!0,attrs:{class:"hljs-number"}},[e._v("-87767557e50")]),e._v("d "),t("span",{pre:!0,attrs:{class:"hljs-operator"}},[e._v("-")]),e._v(" Luck\n[INFO]: UUID "),t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("of")]),e._v(" player Luck "),t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("is")]),e._v(" c1d60c50"),t("span",{pre:!0,attrs:{class:"hljs-number"}},[e._v("-70")]),e._v("b5"),t("span",{pre:!0,attrs:{class:"hljs-number"}},[e._v("-4722")]),t("span",{pre:!0,attrs:{class:"hljs-number"}},[e._v("-8057")]),t("span",{pre:!0,attrs:{class:"hljs-number"}},[e._v("-87767557e50")]),e._v("d\n[INFO]: [LP] Processing login "),t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("for")]),e._v(" c1d60c50"),t("span",{pre:!0,attrs:{class:"hljs-number"}},[e._v("-70")]),e._v("b5"),t("span",{pre:!0,attrs:{class:"hljs-number"}},[e._v("-4722")]),t("span",{pre:!0,attrs:{class:"hljs-number"}},[e._v("-8057")]),t("span",{pre:!0,attrs:{class:"hljs-number"}},[e._v("-87767557e50")]),e._v("d "),t("span",{pre:!0,attrs:{class:"hljs-operator"}},[e._v("-")]),e._v(" Luck\n[INFO]: Luck["),t("span",{pre:!0,attrs:{class:"hljs-operator"}},[e._v("/")]),e._v("xxx:xxx] logged "),t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("in")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("with")]),e._v(" entity id xxx "),t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("at")]),e._v(" ([xxx]x, x, x)\n")])]),t("h5",{attrs:{id:"example-43",tabindex:"-1"}},[e._v("Example "),t("a",{staticClass:"header-anchor",attrs:{href:"#example-43"}},[e._v("🔗")])]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs language-yaml"}},[t("span",{pre:!0,attrs:{class:"hljs-attr"}},[e._v("debug-logins:")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-literal"}},[e._v("false")]),e._v("\n")])]),t("hr"),t("h3",{attrs:{id:"allow-invalid-usernames",tabindex:"-1"}},[t("code",{pre:!0},[e._v("allow-invalid-usernames")]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#allow-invalid-usernames"}},[e._v("🔗")])]),t("p",[e._v("If set to true, LuckPerms will allow usernames with non alphanumeric characters.")]),t("p",[e._v("Note that due to the design of the storage implementation, usernames must still be 16 characters or less.")]),t("h5",{attrs:{id:"example-44",tabindex:"-1"}},[e._v("Example "),t("a",{staticClass:"header-anchor",attrs:{href:"#example-44"}},[e._v("🔗")])]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs language-yaml"}},[t("span",{pre:!0,attrs:{class:"hljs-attr"}},[e._v("allow-invalid-usernames:")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-literal"}},[e._v("false")]),e._v("\n")])]),t("hr"),t("h3",{attrs:{id:"prevent-primary-group-removal",tabindex:"-1"}},[t("code",{pre:!0},[e._v("prevent-primary-group-removal")]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#prevent-primary-group-removal"}},[e._v("🔗")])]),t("p",[e._v("If set to false, the plugin will allow a user's primary group to be removed with the "),t("code",{pre:!0},[e._v("parent remove")]),e._v(" command, and will set their primary group back to default.")]),t("h5",{attrs:{id:"example-45",tabindex:"-1"}},[e._v("Example "),t("a",{staticClass:"header-anchor",attrs:{href:"#example-45"}},[e._v("🔗")])]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs language-yaml"}},[t("span",{pre:!0,attrs:{class:"hljs-attr"}},[e._v("prevent-primary-group-removal:")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-literal"}},[e._v("false")]),e._v("\n")])]),t("hr"),t("h2",{attrs:{id:"contextsjson",tabindex:"-1"}},[e._v("contexts.json "),t("a",{staticClass:"header-anchor",attrs:{href:"#contextsjson"}},[e._v("🔗")])]),t("p",[e._v("The "),t("code",{pre:!0},[e._v("contexts.json")]),e._v(" file is found alongside the main LuckPerms configuration file, and allows you to set two things.")]),t("h3",{attrs:{id:"static-contexts",tabindex:"-1"}},[e._v("Static Contexts "),t("a",{staticClass:"header-anchor",attrs:{href:"#static-contexts"}},[e._v("🔗")])]),t("p",[e._v("Static contexts are "),t("a",{attrs:{href:"Command-Usage#what-is-context"}},[e._v("contexts")]),e._v(" which never change, and are granted to all players on the server by default.")]),t("p",[e._v('LuckPerms provides one static context by default, called "server". This value is set using the '),t("code",{pre:!0},[e._v("server")]),e._v(" option in the main configuration file.")]),t("p",[e._v("For example, if in my network, I have 3 factions servers, each with distinct names. The in LP config of each server, I have the server names set to "),t("code",{pre:!0},[e._v("factions1")]),e._v(", "),t("code",{pre:!0},[e._v("factions2")]),e._v(" and "),t("code",{pre:!0},[e._v("factions3")]),e._v(". However, I want to grant a permission on all of the servers.")]),t("p",[e._v("To achieve this, on all of the factions servers, I can add a static context called "),t("code",{pre:!0},[e._v("servertype")]),e._v(" and set it to "),t("code",{pre:!0},[e._v("factions")]),e._v(".")]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs language-json"}},[e._v("{\n "),t("span",{pre:!0,attrs:{class:"hljs-attr"}},[e._v('"static-contexts"')]),e._v(": {\n \t"),t("span",{pre:!0,attrs:{class:"hljs-attr"}},[e._v('"servertype"')]),e._v(": "),t("span",{pre:!0,attrs:{class:"hljs-string"}},[e._v('"factions"')]),e._v("\n },\n}\n")])]),t("p",[e._v("Then, I can use "),t("code",{pre:!0},[e._v("/lp group default permission set some.permission true servertype=factions")]),e._v(" to set a permission on all of the factions servers.")]),t("h3",{attrs:{id:"default-contexts",tabindex:"-1"}},[e._v("Default Contexts "),t("a",{staticClass:"header-anchor",attrs:{href:"#default-contexts"}},[e._v("🔗")])]),t("p",[e._v("Default contexts are "),t("a",{attrs:{href:"Command-Usage#what-is-context"}},[e._v("contexts")]),e._v(" which are used by default in all commands executed on the server, if nothing is specifically specified.")]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs language-json"}},[e._v("{\n "),t("span",{pre:!0,attrs:{class:"hljs-attr"}},[e._v('"default-contexts"')]),e._v(": {\n \t"),t("span",{pre:!0,attrs:{class:"hljs-attr"}},[e._v('"server"')]),e._v(": "),t("span",{pre:!0,attrs:{class:"hljs-string"}},[e._v('"survival"')]),e._v("\n },\n}\n")])]),t("p",[e._v("With the above set, running "),t("code",{pre:!0},[e._v("/lp user Luck permission set some.permission true")]),e._v(" would set "),t("code",{pre:!0},[e._v("some.permission")]),e._v(" to true for me in the "),t("code",{pre:!0},[e._v("server=survival")]),e._v(" context.")])])}],o=r(845),i={},n=(0,o.A)(i,s,a,!1,null,null,null),l=n.exports},2445:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return l}});var s=function(){var e=this;e._self._c;return e._m(0)},a=[function(){var e=this,t=e._self._c;return t("section",[t("p",[e._v("Contexts are a fundamental part of the way LuckPerms works. They are probably the most important concept in the whole plugin, and are incredibly powerful when used correctly.")]),t("hr"),t("p",[t("strong",[e._v("Context")]),e._v(" in the most basic sense simply means the "),t("strong",[e._v("circumstances where something will apply")]),e._v(".")]),t("p",[e._v('A single "context" consists of a '),t("code",{pre:!0},[e._v("key")]),e._v(" and a "),t("code",{pre:!0},[e._v("value")]),e._v(", and are represented in the form "),t("code",{pre:!0},[e._v("key=value")]),e._v(". This will (hopefully) begin to make more sense when coupled with an example.")]),t("h3",{attrs:{id:"example",tabindex:"-1"}},[e._v("Example "),t("a",{staticClass:"header-anchor",attrs:{href:"#example"}},[e._v("🔗")])]),t("p",[e._v("As we said previously, contexts are the circumstances where something will apply. As an example, let's suppose I wanted to set a permission, but "),t("strong",[e._v('I only want the permission to apply in the "world_nether" world')]),e._v(". To achieve this, I'd supply a context when setting the permission to specify where the permission should apply.")]),t("p",[e._v("In this case, the context "),t("strong",[e._v("key")]),e._v(" is "),t("code",{pre:!0},[e._v('"world"')]),e._v(", and the "),t("strong",[e._v("value")]),e._v(" is "),t("code",{pre:!0},[e._v('"world_nether"')]),e._v(". This would be represented in LuckPerms as "),t("code",{pre:!0},[e._v("world=world_nether")]),e._v(".")]),t("p",[e._v("In order to achieve this behaviour, I'd use something like: "),t("code",{pre:!0},[e._v("/lp user Luck permission set test.permission world=world_nether")]),e._v(" - specifying the context at the end of the command.")]),t("h3",{attrs:{id:"setting-contexts",tabindex:"-1"}},[e._v("Setting Contexts "),t("a",{staticClass:"header-anchor",attrs:{href:"#setting-contexts"}},[e._v("🔗")])]),t("p",[e._v("There are two ways to set contexts on permissions; the command you use to set the permission, or the web editor.")]),t("ul",[t("li",[t("p",[e._v("With the command, you simply do as the above example demonstrates. At the end of the command, you add "),t("code",{pre:!0},[e._v("=")]),e._v(" which can be "),t("code",{pre:!0},[e._v("world=nether")]),e._v(", "),t("code",{pre:!0},[e._v("server=lobby")]),e._v(", or any other context you can use and its value. A full command would look like "),t("code",{pre:!0},[e._v("lp user Luck permission set minecraft.command.gamemode true server=lobby world=nether")]),e._v(".")])]),t("li",[t("p",[e._v("With the editor, you click on "),t("code",{pre:!0},[e._v("Add Context")]),e._v(", and simply fill in key and value. Just like the command, "),t("code",{pre:!0},[e._v("key")]),e._v(" will be the type of context, and "),t("code",{pre:!0},[e._v("value")]),e._v(" will be its value. An example:")])])]),t("p",[t("img",{attrs:{src:r(45),alt:""}})]),t("hr"),t("p",[e._v('Contexts can be combined with each other to form so called "context sets" - simply a collection of context pairs.')]),t("p",[e._v("Context sets exist in two places:")]),t("ul",[t("li",[t("p",[e._v("LuckPerms internally will calculate what it deems to be a "),t("strong",[e._v("players")]),e._v(' "current context set" - in other words, the contexts which the player currently satisfies. If the player is in the '),t("code",{pre:!0},[e._v("world_nether")]),e._v(" world, then their current context set will contain the "),t("code",{pre:!0},[e._v("world=world_nether")]),e._v(" context."),t("br"),e._v(" Players that are currently offline won't have any context set. You can see this by using the "),t("code",{pre:!0},[e._v("/lp user info")]),e._v(' command and check the "Has contextual data" option on the bottom of the output.')])]),t("li",[t("p",[t("strong",[e._v("Each permission, parent/group, prefix/suffix/meta setting")]),e._v(" also has it's own context set - indicating the contexts a player must have for the respective permission/parent/meta value to apply.")])])]),t("p",[e._v("Crucially, for a permission/parent/meta value to apply, the player must satisfy "),t("strong",[e._v("one of each type")]),e._v(" of the contexts required by the value. If you set three world contexts (world, world_nether, and world_the_end) and one server context (survival), then the permission will apply in any of the three worlds on that one server. If you set only three server contexts, the permission will apply in any of the three servers. This makes it very useful if you want permissions to apply in a number of places, and yet not apply in a number of other places, as it means you do not have to create several duplicate nodes and set one context on each of them.")]),t("hr"),t("h3",{attrs:{id:"contexts-provided-by-luckperms",tabindex:"-1"}},[e._v("Contexts provided by LuckPerms "),t("a",{staticClass:"header-anchor",attrs:{href:"#contexts-provided-by-luckperms"}},[e._v("🔗")])]),t("p",[e._v("The context system is designed to be extensible - the system should not (and is not!) confined to only a few types of contexts.")]),t("p",[e._v("With that said, LuckPerms provides by default, five contexts of its own. Other plugins are also able to provide their own contexts by registering a "),t("code",{pre:!0},[e._v("ContextCalculator")]),e._v(" in the API.")]),t("table",[t("thead",[t("tr",[t("th",[e._v("Context Key")]),t("th",[e._v("Description")]),t("th",[e._v("Example")])])]),t("tbody",[t("tr",[t("td",[t("code",{pre:!0},[e._v("server")])]),t("td",[e._v("The player's current server. This value is determined by the "),t("strong",[e._v("server")]),e._v(" setting at the very top of the LuckPerms config file.")]),t("td",[t("code",{pre:!0},[e._v("server=survival")])])]),t("tr",[t("td",[t("code",{pre:!0},[e._v("world")])]),t("td",[e._v("The player's current world - this value is just retrieved from the server. When LuckPerms runs on a BungeeCord/Velocity proxy, the world context value refers to the subserver the player is currently connected to.")]),t("td",[t("code",{pre:!0},[e._v("world=world_nether")])])]),t("tr",[t("td",[t("code",{pre:!0},[e._v("gamemode")])]),t("td",[e._v("The player's current gamemode.")]),t("td",[t("code",{pre:!0},[e._v("gamemode=creative")])])]),t("tr",[t("td",[t("code",{pre:!0},[e._v("dimension-type")])]),t("td",[e._v("The dimension of the world the player is currently in.")]),t("td",[t("code",{pre:!0},[e._v("dimension-type=the_nether")])])]),t("tr",[t("td",[t("code",{pre:!0},[e._v("proxy")])]),t("td",[e._v("This context is only applied when LuckPerms is running on a BungeeCord proxy with RedisBungee installed. It refers to the proxy the player is currently connected to.")]),t("td",[t("code",{pre:!0},[e._v("proxy=redisbungee1")])])])])]),t("hr"),t("h3",{attrs:{id:"defining-your-own-contexts",tabindex:"-1"}},[e._v("Defining your own contexts "),t("a",{staticClass:"header-anchor",attrs:{href:"#defining-your-own-contexts"}},[e._v("🔗")])]),t("p",[e._v("In addition to the contexts provided by LuckPerms, it is also possible to add extra contexts of your own.")]),t("p",[e._v("Contexts can either be provided "),t("strong",[e._v("statically")]),e._v(" or "),t("strong",[e._v("dynamically")]),e._v(".")]),t("ul",[t("li",[t("strong",[e._v("Static contexts")]),e._v(' are contexts which are given equally to all players - all players satisfy the context with the same value. (for example, the "server" context - all players get the same key & value) Static contexts can either be defined in a special config file or via the API.')]),t("li",[t("strong",[e._v("Dynamic contexts")]),e._v(" are given depending on a certain factor, and have to be registered by a plugin using the API.")])]),t("h4",{attrs:{id:"defining-static-contexts",tabindex:"-1"}},[e._v("Defining static contexts "),t("a",{staticClass:"header-anchor",attrs:{href:"#defining-static-contexts"}},[e._v("🔗")])]),t("p",[e._v("Static contexts can be defined in the "),t("code",{pre:!0},[e._v("contexts.json")]),e._v(" file within the "),t("code",{pre:!0},[e._v("/LuckPerms/")]),e._v(" plugin directory. (in the same folder as the main config)")]),t("p",[e._v("The file contains two properties, but we're only interested in the one called "),t("code",{pre:!0},[e._v("static-contexts")]),e._v(".")]),t("p",[e._v("For example, if we wanted to add our own context called "),t("code",{pre:!0},[e._v('"server-type"')]),e._v(", to indicate the server type in addition to the server name (which would've already been provided by LuckPerms), simply add:")]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs language-json"}},[e._v("{\n "),t("span",{pre:!0,attrs:{class:"hljs-attr"}},[e._v('"static-contexts"')]),e._v(": {\n "),t("span",{pre:!0,attrs:{class:"hljs-attr"}},[e._v('"server-type"')]),e._v(": "),t("span",{pre:!0,attrs:{class:"hljs-string"}},[e._v('"skyblock"')]),e._v("\n },\n}\n")])]),t("p",[e._v("Once added, we can use the "),t("code",{pre:!0},[e._v("server-type")]),e._v(" context when defining permissions/parents/meta to limit those values to specific server types. e.g. "),t("code",{pre:!0},[e._v("/lp user Luck parent add donor server-type=skyblock")]),e._v(".")]),t("p",[e._v("You can add as many contexts as you like to this file.")]),t("h3",{attrs:{id:"default-contexts",tabindex:"-1"}},[e._v("Default Contexts "),t("a",{staticClass:"header-anchor",attrs:{href:"#default-contexts"}},[e._v("🔗")])]),t("p",[e._v("Default contexts allow you to specify contexts that are applied to commands if you don't add contexts to the end of the command - for example "),t("code",{pre:!0},[e._v("/lp user Luck permission set example.permission")]),e._v(". You can define them in the "),t("code",{pre:!0},[e._v("contexts.yml")]),e._v(" file, in the same folder as the main config.")]),t("p",[e._v("For example, to add a default context to the file, simply add, below the static-contexts section:")]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs language-json"}},[e._v("{\n "),t("span",{pre:!0,attrs:{class:"hljs-attr"}},[e._v('"default-contexts"')]),e._v(": {\n "),t("span",{pre:!0,attrs:{class:"hljs-attr"}},[e._v('"world"')]),e._v(": "),t("span",{pre:!0,attrs:{class:"hljs-string"}},[e._v('"world_nether"')]),e._v(",\n "),t("span",{pre:!0,attrs:{class:"hljs-attr"}},[e._v('"server"')]),e._v(": "),t("span",{pre:!0,attrs:{class:"hljs-string"}},[e._v('"survival"')]),e._v("\n }\n}\n")])]),t("p",[e._v("This would mean that, for "),t("code",{pre:!0},[e._v("/lp")]),e._v(" commands on the server which you've added the default context, any commands that can be performed with a context will use "),t("code",{pre:!0},[e._v("world=world_nether,server=survival")]),e._v(" unless you specify otherwise.")]),t("h3",{attrs:{id:"extracontexts",tabindex:"-1"}},[e._v("ExtraContexts "),t("a",{staticClass:"header-anchor",attrs:{href:"#extracontexts"}},[e._v("🔗")])]),t("p",[e._v("ExtraContexts is another plugin which adds functionality for more contexts that stock LuckPerms does not, such as WorldGuard contexts, PlaceholderAPI contexts, and more!")]),t("p",[e._v("See "),t("a",{attrs:{href:"https://github.com/LuckPerms/ExtraContexts"}},[e._v("here")]),e._v(" for more information.")])])}],o=r(845),i={},n=(0,o.A)(i,s,a,!1,null,null,null),l=n.exports},9156:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return l}});var s=function(){var e=this;e._self._c;return e._m(0)},a=[function(){var e=this,t=e._self._c;return t("section",[t("p",[e._v("Hello!")]),t("p",[e._v("The purpose of this guide is to help developers get setup and working on the LuckPerms codebase.")]),t("p",[e._v("As well as the information below, we also have a dedicated Discord channel for talking about LuckPerms development and pull requests. Feel free to "),t("a",{attrs:{href:"https://discord.gg/luckperms"}},[e._v("join and select the #contributors channel")]),e._v(". Please ask if you get stuck, we are more than happy to help.")]),t("h2",{attrs:{id:"getting-started",tabindex:"-1"}},[e._v("Getting Started "),t("a",{staticClass:"header-anchor",attrs:{href:"#getting-started"}},[e._v("🔗")])]),t("p",[e._v("LuckPerms uses "),t("strong",[e._v("Gradle")]),e._v(" to handle dependency management and building.")]),t("p",[e._v("Check out the "),t("a",{attrs:{href:"https://github.com/LuckPerms/LuckPerms/blob/master/README.md"}},[e._v("README.md")]),e._v(" file for more information about how you can clone the code to your machine.")]),t("p",[e._v("We suggest using the IntelliJ IDEA Java IDE when developing LuckPerms. It has great support for Gradle and excellent auto-completion functionality. You should just be able to get IntelliJ to clone LuckPerms from the Git repository and then sit back and relax while it sets up the rest (hopefully!).")]),t("h2",{attrs:{id:"project-layout",tabindex:"-1"}},[e._v("Project Layout "),t("a",{staticClass:"header-anchor",attrs:{href:"#project-layout"}},[e._v("🔗")])]),t("p",[e._v("The project is split up into a few separate modules.")]),t("ul",[t("li",[t("strong",[e._v("API")]),e._v(" ("),t("code",{pre:!0},[e._v("/api")]),e._v(") - The public API used by other plugins wishing to integrate with and retrieve data from LuckPerms. This module (for the most part) does not contain any implementation itself, and is provided by the plugin.")]),t("li",[t("strong",[e._v("Common")]),e._v(" ("),t("code",{pre:!0},[e._v("/common")]),e._v(") - The common module contains abstract code which is shared by all LuckPerms implementations (plugins). The idea is to reduce the amount of duplicated logic across all the different supported platforms. The common module depends on API.")]),t("li",[t("strong",[e._v("Plugin")]),e._v(" (e.g. "),t("code",{pre:!0},[e._v("/bukkit")]),e._v(') - Each use the common module to implement a "LuckPerms plugin" for a specific server platform. Plugins depend on the common module.')]),t("li",[t("strong",[e._v("Plugin Loaders")]),e._v(" (e.g. "),t("code",{pre:!0},[e._v("/bukkit/loader")]),e._v(") - An extra module that sits just before the actual plugin and acts as a loader bootstrap. The purpose of this is to implement jar-in-jar and dependency loading on platforms without native support for injecting dependency jars at runtime.")])]),t("h2",{attrs:{id:"abstraction",tabindex:"-1"}},[e._v("Abstraction "),t("a",{staticClass:"header-anchor",attrs:{href:"#abstraction"}},[e._v("🔗")])]),t("p",[e._v("LuckPerms has quite a lot of abstraction in place to reduce duplicated code and create a divide between separate logical components. This can be tricky to navigate if you're new to the codebase, but is really important for keeping things maintainable.")]),t("p",[e._v("Below is a diagram which visualises this abstraction.")]),t("p",[t("img",{attrs:{src:r(2379),alt:""}})]),t("p",[e._v("I've used Bukkit as an example, but all other platforms have similar classes.")]),t("h3",{attrs:{id:"low-level-loader",tabindex:"-1"}},[e._v("Low-level Loader "),t("a",{staticClass:"header-anchor",attrs:{href:"#low-level-loader"}},[e._v("🔗")])]),t("p",[t("code",{pre:!0},[e._v("class BukkitLoaderPlugin extends JavaPlugin")])]),t("p",[e._v("The bootstrap loader plugin is responsible for loading LuckPerms on the platform and getting things started. It is fairly slim, and for the most part you don't need to worry about it.")]),t("p",[e._v("However, it's worth noting because it's the actual entrypoint into the plugin (it's the class that "),t("code",{pre:!0},[e._v("extends JavaPlugin")]),e._v(" in Bukkit land).")]),t("p",[e._v('Not every platform has a loader, it is only needed for platforms which don\'t allow plugins to control their own class loader. In this case, LuckPerms uses a "jar-in-jar" system in which a minimal loader plugin sets up a child classloader and bootstraps the main plugin within it.')]),t("p",[e._v("For example, see the "),t("a",{attrs:{href:"https://github.com/LuckPerms/LuckPerms/blob/master/bukkit/loader/src/main/java/me/lucko/luckperms/bukkit/loader/BukkitLoaderPlugin.java"}},[t("code",{pre:!0},[e._v("BukkitLoaderPlugin")])]),e._v(" class.")]),t("p",[e._v("All this class does is setup a special classloader, then delegate the onEnable/onDisable/etc method calls to the bootstrap. Let's cover that next.")]),t("h3",{attrs:{id:"low-level-bootstrap",tabindex:"-1"}},[e._v("Low-level Bootstrap "),t("a",{staticClass:"header-anchor",attrs:{href:"#low-level-bootstrap"}},[e._v("🔗")])]),t("p",[t("code",{pre:!0},[e._v("class LPBukkitBootstrap implements LuckPermsBootstrap")])]),t("p",[t("a",{attrs:{href:"https://github.com/LuckPerms/LuckPerms/blob/master/common/src/main/java/me/lucko/luckperms/common/plugin/bootstrap/LuckPermsBootstrap.java"}},[t("code",{pre:!0},[e._v("LuckPermsBootstrap")])]),e._v(" is a low-level interface for integration with the server platform. It handles things like logging, scheduling, and provides information about low-level objects within the platform (online players and that sort of thing).")]),t("p",[e._v("For example, see the "),t("a",{attrs:{href:"https://github.com/LuckPerms/LuckPerms/blob/master/bukkit/src/main/java/me/lucko/luckperms/bukkit/LPBukkitBootstrap.java"}},[t("code",{pre:!0},[e._v("LPBukkitBootstrap")])]),e._v(" class.")]),t("p",[e._v("This class doesn't contain any logic, it just provides things for the LuckPerms plugin.")]),t("h3",{attrs:{id:"high-level-plugin",tabindex:"-1"}},[e._v("High-level Plugin "),t("a",{staticClass:"header-anchor",attrs:{href:"#high-level-plugin"}},[e._v("🔗")])]),t("p",[t("code",{pre:!0},[e._v("class LPBukkitPlugin extends AbstractLuckPermsPlugin implements LuckPermsPlugin")])]),t("p",[t("a",{attrs:{href:"https://github.com/LuckPerms/LuckPerms/blob/master/common/src/main/java/me/lucko/luckperms/common/plugin/LuckPermsPlugin.java"}},[t("code",{pre:!0},[e._v("LuckPermsPlugin")])]),e._v(" is the main interface in LuckPerms. An abstract implementation is provided by "),t("a",{attrs:{href:"https://github.com/LuckPerms/LuckPerms/blob/master/common/src/main/java/me/lucko/luckperms/common/plugin/AbstractLuckPermsPlugin.java"}},[t("code",{pre:!0},[e._v("AbstractLuckPermsPlugin")])]),e._v(", which is extended on each platform for platform-specific integrations.")]),t("p",[t("a",{attrs:{href:"https://github.com/LuckPerms/LuckPerms/blob/master/common/src/main/java/me/lucko/luckperms/common/plugin/LuckPermsPlugin.java"}},[t("code",{pre:!0},[e._v("LuckPermsPlugin")])]),e._v(' is just an interface. It mostly has lots of getter methods which define what the "LuckPerms plugin" is made up of. This interface is often passed around (injected as a constructor dependency) other classes in the project to allow different components to access each other. You can also get the '),t("a",{attrs:{href:"https://github.com/LuckPerms/LuckPerms/blob/master/common/src/main/java/me/lucko/luckperms/common/plugin/bootstrap/LuckPermsBootstrap.java"}},[t("code",{pre:!0},[e._v("LuckPermsBootstrap")])]),e._v(" from it if you need to access any of the lower-level components like the logger or scheduler.")]),t("p",[t("a",{attrs:{href:"https://github.com/LuckPerms/LuckPerms/blob/master/common/src/main/java/me/lucko/luckperms/common/plugin/AbstractLuckPermsPlugin.java"}},[t("code",{pre:!0},[e._v("AbstractLuckPermsPlugin")])]),e._v(" is the primary plugin class. It defines lots of the shared logic for LuckPerms plugins. For example, any of the LuckPerms plugins enable, they all need to perform similar steps like setting up storage and registering listeners and commands. It makes sense to abstract as much of this as possible to reduce duplication.")]),t("p",[t("a",{attrs:{href:"https://github.com/LuckPerms/LuckPerms/blob/master/common/src/main/java/me/lucko/luckperms/common/plugin/AbstractLuckPermsPlugin.java"}},[t("code",{pre:!0},[e._v("AbstractLuckPermsPlugin")])]),e._v(" provides the high-level logic for enabling/disabling the plugin, but also has a number of protected abstract methods allowing plugin implementations to provide their own custom logic or classes for use by the plugin.")]),t("p",[e._v("This abstract plugin class is then overridden once per platform, for example see the "),t("a",{attrs:{href:"https://github.com/LuckPerms/LuckPerms/blob/master/bukkit/src/main/java/me/lucko/luckperms/bukkit/LPBukkitPlugin.java"}},[t("code",{pre:!0},[e._v("LPBukkitPlugin")])]),e._v(" class. The subclass defines custom behaviour and provides custom objects used by the plugin on a specific platform (e.g. "),t("code",{pre:!0},[e._v("BukkitContextManager")]),e._v(" is provided as an implementation of "),t("code",{pre:!0},[e._v("ContextManager")]),e._v(" by "),t("code",{pre:!0},[e._v("LPBukkitPlugin")]),e._v(").")]),t("h2",{attrs:{id:"the-rest-of-the-codebase",tabindex:"-1"}},[e._v("The rest of the codebase "),t("a",{staticClass:"header-anchor",attrs:{href:"#the-rest-of-the-codebase"}},[e._v("🔗")])]),t("p",[e._v("As noted previously, "),t("a",{attrs:{href:"https://github.com/LuckPerms/LuckPerms/blob/master/common/src/main/java/me/lucko/luckperms/common/plugin/LuckPermsPlugin.java"}},[t("code",{pre:!0},[e._v("LuckPermsPlugin")])]),e._v(' is the "root" of the plugin, which then expands out into other packages and classes.')]),t("p",[e._v("For example:")]),t("ul",[t("li",[t("code",{pre:!0},[e._v("UserManager")]),e._v(" handles the in-memory storage of LuckPerms users")]),t("li",[t("code",{pre:!0},[e._v("GroupManager")]),e._v(" handles the in-memory storage of LuckPerms groups")]),t("li",[t("code",{pre:!0},[e._v("TrackManager")]),e._v(" handles the in-memory storage of LuckPerms tracks")]),t("li",[t("code",{pre:!0},[e._v("LuckPermsConfiguration")]),e._v(" handles the plugin config file")]),t("li",[t("code",{pre:!0},[e._v("Storage")]),e._v(" is the root interface for all actions which interact with the plugin storage providers")]),t("li",[t("code",{pre:!0},[e._v("CommandManager")]),e._v(" handles all LuckPerms commands and their invocations")]),t("li",[t("code",{pre:!0},[e._v("DependencyManager")]),e._v(" handles runtime dependency loading and resolution")]),t("li",[t("code",{pre:!0},[e._v("ContextManager")]),e._v(" handles context lookup and caching for players")]),t("li",[e._v(".. and much more, but hopefully the names/JavaDocs are sufficient to explain the purpose of each.")])]),t("h2",{attrs:{id:"codestyle",tabindex:"-1"}},[e._v("Codestyle "),t("a",{staticClass:"header-anchor",attrs:{href:"#codestyle"}},[e._v("🔗")])]),t("p",[e._v("A consistent and "),t("em",[e._v("reasonably")]),e._v(" enforced codestyle is really important for the readability of project source code and ensuring that it remains maintainable.")]),t("p",[e._v("It could be argued that the odd slip-up doesn't matter, and that style nit-picks are just project maintainers being obsessive - that might even be true to an extent - but on the other hand, these things add up over time, and it is better in the long run to keep on top of things.")]),t("p",[e._v("In general:")]),t("ol",[t("li",[t("strong",[e._v("Copy the style existing code where possible")]),e._v(". This will "),t("em",[e._v("always")]),e._v(' work, regardless of the project, and is easier than trying to follow a "style guide" anyway.')]),t("li",[t("strong",[e._v("Minimise whitespace changes")]),e._v(", and "),t("strong",[e._v("review your diff")]),e._v(" before submitting a pull request for review. Most IDEs also have indicators for changed/added/removed lines, and buttons to rollback changed lines if they're not needed.")])]),t("p",[e._v("We're happy to help clean up commits at the end, but it saves lots of time if you do it as you go!")])])}],o=r(845),i={},n=(0,o.A)(i,s,a,!1,null,null,null),l=n.exports},4788:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return l}});var s=function(){var e=this;e._self._c;return e._m(0)},a=[function(){var e=this,t=e._self._c;return t("section",[t("p",[e._v("LuckPerms is an open-source project, released freely under the terms of the permissive "),t("a",{attrs:{href:"https://github.com/LuckPerms/LuckPerms/blob/master/LICENSE.txt"}},[e._v("MIT License")]),e._v(".")]),t("blockquote",[t("p",[e._v("MIT License")]),t("p",[e._v("Copyright (c) lucko (Luck) "),t("br"),e._v(" Copyright (c) Turbotailz "),t("br"),e._v(" Copyright (c) contributors")]),t("p",[e._v('Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:')]),t("p",[e._v("The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.")]),t("p",[e._v('THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.')])]),t("p",[e._v("LuckPerms is written and maintained by "),t("a",{attrs:{href:"https://github.com/lucko"}},[e._v("lucko (Luck)")]),e._v(" and "),t("a",{attrs:{href:"https://github.com/Turbotailz"}},[e._v("Turbotailz")]),e._v(".")]),t("h2",{attrs:{id:"contributors",tabindex:"-1"}},[e._v("Contributors "),t("a",{staticClass:"header-anchor",attrs:{href:"#contributors"}},[e._v("🔗")])]),t("p",[e._v("LuckPerms wouldn't be the way it is today without the help of many contributors & supporters.")]),t("p",[e._v("A huge amount of thanks is owed to:")]),t("ul",[t("li",[t("a",{attrs:{href:"https://github.com/LuckPerms/LuckPerms/graphs/contributors"}},[e._v("contributors to LuckPerms")])]),t("li",[t("a",{attrs:{href:"https://github.com/LuckPerms/LuckPermsWeb/graphs/contributors"}},[e._v("contributors to LuckPermsWeb")])]),t("li",[t("a",{attrs:{href:"https://github.com/LuckPerms/wiki/graphs/contributors"}},[e._v("contributors to the wiki")])]),t("li",[t("a",{attrs:{href:"https://crowdin.com/project/luckperms"}},[e._v("contributors to the translation/i18n effort")])]),t("li",[t("a",{attrs:{href:"https://github.com/LuckPerms"}},[e._v("contributors to any of our other projects")])])]),t("h2",{attrs:{id:"discord-moderators--helpers",tabindex:"-1"}},[e._v("Discord moderators & helpers "),t("a",{staticClass:"header-anchor",attrs:{href:"#discord-moderators--helpers"}},[e._v("🔗")])]),t("p",[e._v("Additionally, I'd like to thank the project's Discord moderators and helpers, past and present, who work incredibly hard to keep things in order & support the community in using the plugin.")]),t("h3",{attrs:{id:"moderators",tabindex:"-1"}},[e._v("Moderators "),t("a",{staticClass:"header-anchor",attrs:{href:"#moderators"}},[e._v("🔗")])]),t("ul",[t("li",[t("strong",[e._v("_11")])]),t("li",[t("strong",[e._v("aberdeener")])]),t("li",[t("strong",[e._v("DarkLaw")])]),t("li",[t("strong",[e._v("emilyy")])]),t("li",[t("strong",[e._v("Evident")])]),t("li",[t("strong",[e._v("Frying☆Pan")])]),t("li",[t("strong",[e._v("Jay")])]),t("li",[t("strong",[e._v("Larry")])]),t("li",[t("strong",[e._v("OmegaWeaponDev")])]),t("li",[t("strong",[e._v("RyanJH")])]),t("li",[t("strong",[e._v("Tobi")])]),t("li",[e._v("Andre_601 (retired)")]),t("li",[e._v("BrainStone (retired)")]),t("li",[e._v("Darktilldawn (retired)")]),t("li",[e._v("SpannerMan (retired)")])]),t("h3",{attrs:{id:"helpers",tabindex:"-1"}},[e._v("Helpers "),t("a",{staticClass:"header-anchor",attrs:{href:"#helpers"}},[e._v("🔗")])]),t("ul",[t("li",[t("strong",[e._v("ANutley")])]),t("li",[t("strong",[e._v("ben")])]),t("li",[t("strong",[e._v("Doctor Zod")])]),t("li",[t("strong",[e._v("JG")])]),t("li",[t("strong",[e._v("Lord_Samosa")])]),t("li",[t("strong",[e._v("powercas_gamer")])]),t("li",[t("strong",[e._v("Rainbow Dash")])]),t("li",[t("strong",[e._v("Unix")])]),t("li",[t("strong",[e._v("usb_hub")])]),t("li",[e._v("Zeromaniac (retired)")])]),t("h2",{attrs:{id:"patreons--donors",tabindex:"-1"}},[e._v("Patreons / donors "),t("a",{staticClass:"header-anchor",attrs:{href:"#patreons--donors"}},[e._v("🔗")])]),t("p",[e._v("A big thank you to my Patreons and donators, whose contributions allow me to continue to work on & offer the project to the community for free!")]),t("ul",[t("li",[e._v("andrewkm")]),t("li",[e._v("apflu")]),t("li",[e._v("Arclite")]),t("li",[e._v("AtariKafa")]),t("li",[e._v("Audio")]),t("li",[e._v("austin4195")]),t("li",[e._v("austind9999")]),t("li",[e._v("bloodshot")]),t("li",[e._v("BomBardyGamer")]),t("li",[e._v("Combustible")]),t("li",[e._v("Cosido")]),t("li",[e._v("Cryptic")]),t("li",[e._v("dig")]),t("li",[e._v("Dj")]),t("li",[e._v("Dracathio")]),t("li",[e._v("DrOreo002")]),t("li",[e._v("EatSleepCodeRepeat")]),t("li",[e._v("EBatuzay")]),t("li",[e._v("Ferris")]),t("li",[e._v("Forrest Hopkins")]),t("li",[e._v("HyperVx2")]),t("li",[e._v("I9hdkill")]),t("li",[e._v("Inysal")]),t("li",[e._v("James Darling")]),t("li",[e._v("jasperYAY")]),t("li",[e._v("Jay113355")]),t("li",[e._v("KaiNoMood")]),t("li",[e._v("Khan Jal")]),t("li",[e._v("kristianbinau")]),t("li",[e._v("KuNet")]),t("li",[e._v("Marco")]),t("li",[e._v("mattw")]),t("li",[e._v("metalshark")]),t("li",[e._v("Mikirae")]),t("li",[e._v("mikroskeem")]),t("li",[e._v("mr_coffee1026")]),t("li",[e._v("MrMicky")]),t("li",[e._v("Nathan A.")]),t("li",[e._v("Nogapra")]),t("li",[e._v("ofunny")]),t("li",[e._v("ozraru")]),t("li",[e._v("Paul Sauve")]),t("li",[e._v("queeirdo")]),t("li",[e._v("royalkingkb")]),t("li",[e._v("Ruinscraft")]),t("li",[e._v("Shmeeb")]),t("li",[e._v("SkippTekk")]),t("li",[e._v("StilauGamer")]),t("li",[e._v("TheBusyBiscuit")]),t("li",[e._v("Tummy")]),t("li",[e._v("waqe")]),t("li",[e._v("x313")]),t("li",[e._v("zFrost87")])]),t("p",[e._v("(the above list is those who have pledged $5 or more & have made their pledges publicly visible in their Patreon profile)")]),t("h2",{attrs:{id:"open-source",tabindex:"-1"}},[e._v("Open Source "),t("a",{staticClass:"header-anchor",attrs:{href:"#open-source"}},[e._v("🔗")])]),t("p",[e._v("LuckPerms utilises a number of open source libraries and utilities to provide it's functionality - listed below.")]),t("table",[t("thead",[t("tr",[t("th",[e._v("Name")]),t("th",[e._v("Author")]),t("th",[e._v("License")])])]),t("tbody",[t("tr",[t("td",[t("a",{attrs:{href:"https://github.com/google/guava"}},[e._v("Guava")])]),t("td",[t("a",{attrs:{href:"https://github.com/google"}},[e._v("Google")])]),t("td",[t("a",{attrs:{href:"https://github.com/google/guava/blob/master/COPYING"}},[e._v("Apache License 2.0")])])]),t("tr",[t("td",[t("a",{attrs:{href:"https://github.com/google/gson"}},[e._v("Gson")])]),t("td",[t("a",{attrs:{href:"https://github.com/google"}},[e._v("Google")])]),t("td",[t("a",{attrs:{href:"https://github.com/google/gson/blob/master/LICENSE"}},[e._v("Apache License 2.0")])])]),t("tr",[t("td",[t("a",{attrs:{href:"http://asm.ow2.org/"}},[e._v("ASM")])]),t("td",[t("a",{attrs:{href:"https://www.ow2.org/"}},[e._v("OW2")])]),t("td",[t("a",{attrs:{href:"http://asm.ow2.io/license.html"}},[e._v("BSD 3-Clause License")])])]),t("tr",[t("td",[t("a",{attrs:{href:"https://github.com/lucko/jar-relocator"}},[e._v("jar-relocator")])]),t("td",[t("a",{attrs:{href:"https://github.com/lucko"}},[e._v("Luck")])]),t("td",[t("a",{attrs:{href:"https://github.com/lucko/jar-relocator/blob/master/LICENSE.txt"}},[e._v("Apache License 2.0")])])]),t("tr",[t("td",[t("a",{attrs:{href:"https://github.com/kyoripowered/adventure"}},[e._v("adventure")])]),t("td",[t("a",{attrs:{href:"https://github.com/KyoriPowered"}},[e._v("KyoriPowered")])]),t("td",[t("a",{attrs:{href:"https://github.com/KyoriPowered/adventure/blob/master/license.txt"}},[e._v("MIT License")])])]),t("tr",[t("td",[t("a",{attrs:{href:"https://github.com/KyoriPowered/event"}},[e._v("event")])]),t("td",[t("a",{attrs:{href:"https://github.com/KyoriPowered"}},[e._v("KyoriPowered")])]),t("td",[t("a",{attrs:{href:"https://github.com/KyoriPowered/event/blob/master/license.txt"}},[e._v("MIT License")])])]),t("tr",[t("td",[t("a",{attrs:{href:"https://github.com/ben-manes/caffeine"}},[e._v("Caffeine")])]),t("td",[t("a",{attrs:{href:"https://github.com/ben-manes"}},[e._v("Ben Manes")])]),t("td",[t("a",{attrs:{href:"https://github.com/ben-manes/caffeine/blob/master/LICENSE"}},[e._v("Apache License 2.0")])])]),t("tr",[t("td",[t("a",{attrs:{href:"https://github.com/square/okio"}},[e._v("Okio")])]),t("td",[t("a",{attrs:{href:"https://square.github.io/"}},[e._v("square")])]),t("td",[t("a",{attrs:{href:"https://github.com/square/okio/blob/master/LICENSE.txt"}},[e._v("Apache License 2.0")])])]),t("tr",[t("td",[t("a",{attrs:{href:"https://square.github.io/okhttp/"}},[e._v("OkHttp")])]),t("td",[t("a",{attrs:{href:"https://square.github.io/"}},[e._v("square")])]),t("td",[t("a",{attrs:{href:"https://github.com/square/okhttp/blob/master/LICENSE.txt"}},[e._v("Apache License 2.0")])])]),t("tr",[t("td",[t("a",{attrs:{href:"https://github.com/lucko/commodore"}},[e._v("commodore")])]),t("td",[t("a",{attrs:{href:"https://github.com/lucko"}},[e._v("Luck")])]),t("td",[t("a",{attrs:{href:"https://github.com/lucko/commodore/blob/master/LICENSE.txt"}},[e._v("MIT License")])])]),t("tr",[t("td",[t("a",{attrs:{href:"https://bytebuddy.net/"}},[e._v("bytebuddy")])]),t("td",[t("a",{attrs:{href:"https://rafael.codes/"}},[e._v("Rafael Winterhalter")])]),t("td",[t("a",{attrs:{href:"https://github.com/raphw/byte-buddy/blob/master/LICENSE"}},[e._v("Apache License 2.0")])])]),t("tr",[t("td",[t("a",{attrs:{href:"https://github.com/MariaDB/mariadb-connector-j"}},[e._v("MariaDB Java Driver")])]),t("td",[t("a",{attrs:{href:"https://mariadb.org/"}},[e._v("MariaDB")])]),t("td",[t("a",{attrs:{href:"https://github.com/MariaDB/mariadb-connector-j/blob/master/LICENSE"}},[e._v("GNU Lesser General Public License v2.1")])])]),t("tr",[t("td",[t("a",{attrs:{href:"https://dev.mysql.com/downloads/connector/j/"}},[e._v("MySQL Java Driver")])]),t("td",[t("a",{attrs:{href:"https://www.mysql.com/"}},[e._v("Oracle Corporation")])]),t("td",[t("a",{attrs:{href:"https://github.com/mysql/mysql-connector-j/blob/release/5.1/COPYING"}},[e._v("GNU General Public License v2.0")])])]),t("tr",[t("td",[t("a",{attrs:{href:"https://jdbc.postgresql.org/"}},[e._v("PostgreSQL Java Driver")])]),t("td",[t("a",{attrs:{href:"https://www.postgresql.org/"}},[e._v("PostgreSQL")])]),t("td",[t("a",{attrs:{href:"https://github.com/pgjdbc/pgjdbc/blob/master/LICENSE"}},[e._v("BSD 2-clause License")])])]),t("tr",[t("td",[t("a",{attrs:{href:"http://www.h2database.com/"}},[e._v("H2 Database")])]),t("td",[t("a",{attrs:{href:"https://github.com/h2database"}},[e._v("h2database")])]),t("td",[t("a",{attrs:{href:"http://www.h2database.com/html/license.html"}},[e._v("Mozilla Public License Version 2.0 or EPL 1.0")])])]),t("tr",[t("td",[t("a",{attrs:{href:"https://github.com/xerial/sqlite-jdbc"}},[e._v("SQLite Database")])]),t("td",[t("a",{attrs:{href:"https://github.com/xerial"}},[e._v("xerial")])]),t("td",[t("a",{attrs:{href:"https://github.com/xerial/sqlite-jdbc/blob/master/LICENSE"}},[e._v("Apache License 2.0")])])]),t("tr",[t("td",[t("a",{attrs:{href:"https://github.com/brettwooldridge/HikariCP"}},[e._v("HikariCP")])]),t("td",[t("a",{attrs:{href:"https://github.com/brettwooldridge"}},[e._v("Brett Wooldridge")])]),t("td",[t("a",{attrs:{href:"https://github.com/brettwooldridge/HikariCP/blob/dev/LICENSE"}},[e._v("Apache License 2.0")])])]),t("tr",[t("td",[t("a",{attrs:{href:"https://github.com/qos-ch/slf4j"}},[e._v("SLF4J")])]),t("td",[t("a",{attrs:{href:"https://www.slf4j.org/"}},[e._v("SLF4J")])]),t("td",[t("a",{attrs:{href:"https://github.com/qos-ch/slf4j/blob/master/LICENSE.txt"}},[e._v("MIT License")])])]),t("tr",[t("td",[t("a",{attrs:{href:"https://mongodb.github.io/mongo-java-driver/"}},[e._v("MongoDB Java Driver")])]),t("td",[t("a",{attrs:{href:"https://www.mongodb.com/"}},[e._v("MongoDB")])]),t("td",[t("a",{attrs:{href:"https://github.com/mongodb/mongo-java-driver/blob/master/LICENSE.txt"}},[e._v("Apache License 2.0")])])]),t("tr",[t("td",[t("a",{attrs:{href:"https://github.com/redis/jedis"}},[e._v("Jedis")])]),t("td",[t("a",{attrs:{href:"https://github.com/redis"}},[e._v("Redis")])]),t("td",[t("a",{attrs:{href:"https://github.com/redis/jedis/blob/master/LICENSE.txt"}},[e._v("MIT License")])])]),t("tr",[t("td",[t("a",{attrs:{href:"https://github.com/rabbitmq/rabbitmq-java-client/"}},[e._v("RabbitMQ Java Client")])]),t("td",[t("a",{attrs:{href:"https://github.com/rabbitmq"}},[e._v("RabbitMQ")])]),t("td",[t("a",{attrs:{href:"https://github.com/rabbitmq/rabbitmq-java-client/blob/master/LICENSE"}},[e._v("Mozilla Public License 2.0 or GNU General Public License v2.0 or Apache License 2.0")])])]),t("tr",[t("td",[t("a",{attrs:{href:"https://commons.apache.org/proper/commons-pool/"}},[e._v("Apache Commons Pool")])]),t("td",[t("a",{attrs:{href:"https://www.apache.org/"}},[e._v("Apache")])]),t("td",[t("a",{attrs:{href:"https://github.com/apache/commons-pool/blob/master/LICENSE.txt"}},[e._v("Apache License 2.0")])])]),t("tr",[t("td",[t("a",{attrs:{href:"https://github.com/SpongePowered/configurate"}},[e._v("configurate")])]),t("td",[t("a",{attrs:{href:"https://github.com/SpongePowered"}},[e._v("SpongePowered")])]),t("td",[t("a",{attrs:{href:"https://github.com/SpongePowered/configurate/blob/master/LICENSE"}},[e._v("Apache License 2.0")])])]),t("tr",[t("td",[t("a",{attrs:{href:"https://bitbucket.org/asomov/snakeyaml"}},[e._v("SnakeYAML")])]),t("td",[t("a",{attrs:{href:"https://bitbucket.org/asomov"}},[e._v("Andrey Somov")])]),t("td",[t("a",{attrs:{href:"https://bitbucket.org/asomov/snakeyaml/src/default/LICENSE.txt"}},[e._v("Apache License 2.0")])])]),t("tr",[t("td",[t("a",{attrs:{href:"https://github.com/lightbend/config"}},[e._v("HOCON")])]),t("td",[t("a",{attrs:{href:"https://github.com/lightbend"}},[e._v("lightbend")])]),t("td",[t("a",{attrs:{href:"https://github.com/lightbend/config/blob/master/LICENSE-2.0.txt"}},[e._v("Apache License 2.0")])])]),t("tr",[t("td",[t("a",{attrs:{href:"https://github.com/mwanji/toml4j"}},[e._v("toml4j")])]),t("td",[t("a",{attrs:{href:"https://github.com/mwanji"}},[e._v("Moandji Ezana")])]),t("td",[t("a",{attrs:{href:"https://github.com/mwanji/toml4j/blob/master/LICENSE"}},[e._v("MIT License")])])])])]),t("h2",{attrs:{id:"sponsors",tabindex:"-1"}},[e._v("Sponsors "),t("a",{staticClass:"header-anchor",attrs:{href:"#sponsors"}},[e._v("🔗")])]),t("h3",{attrs:{id:"yourkit",tabindex:"-1"}},[e._v("YourKit "),t("a",{staticClass:"header-anchor",attrs:{href:"#yourkit"}},[e._v("🔗")])]),t("p",[t("a",{attrs:{href:"https://www.yourkit.com/"}},[t("img",{attrs:{src:r(5651),alt:""}})])]),t("p",[e._v("YourKit supports open source projects with its full-featured Java Profiler. YourKit, LLC is the creator of "),t("a",{attrs:{href:"https://www.yourkit.com/java/profiler/"}},[e._v("YourKit Java Profiler")]),e._v(" and "),t("a",{attrs:{href:"https://www.yourkit.com/.net/profiler/"}},[e._v("YourKit .NET Profiler")]),e._v(", innovative and intelligent tools for profiling Java and .NET applications.")]),t("h3",{attrs:{id:"jprofiler",tabindex:"-1"}},[e._v("JProfiler "),t("a",{staticClass:"header-anchor",attrs:{href:"#jprofiler"}},[e._v("🔗")])]),t("p",[t("a",{attrs:{href:"https://www.ej-technologies.com/products/jprofiler/overview.html"}},[t("img",{attrs:{src:r(3337),alt:""}})])]),t("p",[e._v("Thanks to ej-technologies for granting LuckPerms an open source licence to their "),t("a",{attrs:{href:"https://www.ej-technologies.com/products/jprofiler/overview.html",title:"Java Profiler"}},[e._v("Java Profiling Software")]),e._v(".")])])}],o=r(845),i={},n=(0,o.A)(i,s,a,!1,null,null,null),l=n.exports},8017:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return l}});var s=function(){var e=this;e._self._c;return e._m(0)},a=[function(){var e=this,t=e._self._c;return t("section",[t("p",[e._v("The way we handle defaults and default groups in LuckPerms is probably the most disliked feature in the whole plugin. Recently we've been adding some additional / alternative features to the plugin to allow a greater degree of control compared with what's seen in any of the other permission plugins out there, and hopefully making our approach people's favourite part of the plugin, not their least favourite.")]),t("h1",{attrs:{id:"where-to-start",tabindex:"-1"}},[e._v("Where to start "),t("a",{staticClass:"header-anchor",attrs:{href:"#where-to-start"}},[e._v("🔗")])]),t("p",[e._v("So, here's our thinking.")]),t("p",[e._v("Users on your server are likely to be split into two types.")]),t("ol",[t("li",[e._v("The standard player.")]),t("li",[e._v("Players who have been added to a different group, or given their own special permissions.")])]),t("p",[e._v("You don't want to waste precious disk space storing data about Player Type #1. You only want to store data about your staff members, and people with special ranks. Regular \"members\" are just that, regular. There's no need to store any permissions data about them.")]),t("p",[e._v('The next issue we face is how to decide if a user is "regular" or not. Imagine the following situation.')]),t("ol",[t("li",[e._v('The default group is set to "default". When players join, they\'re given "default", and then get saved.')]),t("li",[e._v('A little while down the line, you decide you want to change the default group to "member".')]),t("li",[e._v('You then have all of your old players in the "default" group, and everyone else in "member". Not good.')])]),t("p",[e._v('Even if we don\'t save "regular" users, this issue can still happen.')]),t("ol",[t("li",[e._v('The default group is set to "default".')]),t("li",[e._v('You want to give "Notch" a special "essentials.fly" permission. Notch\'s permissions are saved, indicating he\'s a member of the "default" group, and has the special fly permission.')]),t("li",[e._v('You then edit the default group. All of your "regular" members get the new default group, but Notch still has default!')])]),t("p",[e._v("For this reason, we made it so that the default group is "),t("strong",[e._v("not")]),e._v(" configurable. It makes things much easier for everyone, honestly! However, we understand this can sometimes be annoying to work with.")]),t("p",[e._v("Here are your options.")]),t("h3",{attrs:{id:"keep-using-the-default-group-but-change-the-display-name",tabindex:"-1"}},[e._v('Keep using the default group, but change the "display name" '),t("a",{staticClass:"header-anchor",attrs:{href:"#keep-using-the-default-group-but-change-the-display-name"}},[e._v("🔗")])]),t("p",[e._v("We strongly recommend for the reasons above that you keep using the default group.")]),t("p",[e._v("Then, simply use "),t("code",{pre:!0},[e._v("/lp group default setdisplayname ")]),e._v(" to set a display name!")]),t("h3",{attrs:{id:"configure-inheritance",tabindex:"-1"}},[e._v("Configure inheritance "),t("a",{staticClass:"header-anchor",attrs:{href:"#configure-inheritance"}},[e._v("🔗")])]),t("p",[e._v('This option would mean that all users are still in the "default" group. However, a parent group is configured for default, so it can inherit permissions from a group with a different name.')]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs"}},[t("span",{pre:!0,attrs:{class:"hljs-operator"}},[e._v("/")]),e._v("lp creategroup "),t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("member")]),e._v("\n"),t("span",{pre:!0,attrs:{class:"hljs-operator"}},[e._v("/")]),e._v("lp "),t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("group")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("default")]),e._v(" parent "),t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("add")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("member")]),e._v("\n")])])])}],o=r(845),i={},n=(0,o.A)(i,s,a,!1,null,null,null),l=n.exports},4403:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return l}});var s=function(){var e=this;e._self._c;return e._m(0)},a=[function(){var e=this,t=e._self._c;return t("section",[t("p",[e._v("This page shows some sample usages of the LuckPerms API, which is introduced "),t("a",{attrs:{href:"Developer-API"}},[e._v("here")]),e._v(".")]),t("p",[e._v("As well as this documentation, we also have the "),t("a",{attrs:{href:"https://github.com/LuckPerms/api-cookbook"}},[e._v("api-cookbook")]),e._v(". This is an example Bukkit plugin which uses the API to perform certain common functions.")]),t("hr"),t("h3",{attrs:{id:"index",tabindex:"-1"}},[e._v("Index "),t("a",{staticClass:"header-anchor",attrs:{href:"#index"}},[e._v("🔗")])]),t("ul",[t("li",[t("a",{attrs:{href:"#checking-if-a-player-is-in-a-group"}},[e._v("Player group membership check")])]),t("li",[t("a",{attrs:{href:"#finding-a-players-group"}},[e._v("Player group membership lookup")])]),t("li",[t("a",{attrs:{href:"#obtaining-a-user-instance"}},[e._v("Getting a LuckPerms "),t("code",{pre:!0},[e._v("User")]),e._v(" object")]),t("ul",[t("li",[t("a",{attrs:{href:"#distinction-between-online--offline-players"}},[e._v("Distinction between online & offline players")])]),t("li",[t("a",{attrs:{href:"#loading-data-for-players"}},[e._v("Loading data for players")])])])]),t("li",[t("a",{attrs:{href:"#obtaining-a-grouptrack-instance"}},[e._v("Getting a LuckPerms "),t("code",{pre:!0},[e._v("Group")]),e._v(" or "),t("code",{pre:!0},[e._v("Track")]),e._v(" object")])]),t("li",[t("a",{attrs:{href:"#saving-changes"}},[e._v("Saving changes")])]),t("li",[t("a",{attrs:{href:"#the-basics-of-node"}},[e._v("The "),t("code",{pre:!0},[e._v("Node")]),e._v(" object")]),t("ul",[t("li",[t("a",{attrs:{href:"#creating-new-node-instances"}},[e._v("Creating new nodes")])]),t("li",[t("a",{attrs:{href:"Developer-API-Usage#modifying-existing-nodes"}},[e._v("Modifying existing nodes")])])])]),t("li",[t("a",{attrs:{href:"#reading-usergroup-data"}},[e._v("Reading user/group data")])]),t("li",[t("a",{attrs:{href:"#modifying-usergroup-data"}},[e._v("Modifying user/group data")])]),t("li",[t("a",{attrs:{href:"#the-basics-of-context"}},[e._v("Context")]),t("ul",[t("li",[t("a",{attrs:{href:"#important-classes"}},[e._v("Important classes")])]),t("li",[t("a",{attrs:{href:"#registering-contextcalculators"}},[e._v("Registering ContextCalculators")])]),t("li",[t("a",{attrs:{href:"#querying-active-contextsquery-options"}},[e._v("Querying active contexts/query options")])])])]),t("li",[t("a",{attrs:{href:"#the-basics-of-cacheddata"}},[e._v("CachedData")]),t("ul",[t("li",[t("a",{attrs:{href:"#performing-permission-checks"}},[e._v("Performing permission checks")])]),t("li",[t("a",{attrs:{href:"#retrieving-prefixessuffixes"}},[e._v("Getting prefixes and suffixes")])]),t("li",[t("a",{attrs:{href:"#retrieving-metadata"}},[e._v("Getting metadata")])])])]),t("li",[t("a",{attrs:{href:"#store-and-query-custom-metadata"}},[e._v("Store and query custom metadata")])]),t("li",[t("a",{attrs:{href:"#events"}},[e._v("Events")]),t("ul",[t("li",[t("a",{attrs:{href:"#event-listeners"}},[e._v("Event listeners")])]),t("li",[t("a",{attrs:{href:"#listening-for-changes-to-user-cached-data"}},[e._v("Listening for changes to user cached data")])]),t("li",[t("a",{attrs:{href:"#listening-for-changes-to-permissionsparent-groupsetc"}},[e._v("Listening for changes to permissions/parent groups/etc")])])])])]),t("hr"),t("h3",{attrs:{id:"checking-if-a-player-is-in-a-group",tabindex:"-1"}},[e._v("Checking if a player is in a group "),t("a",{staticClass:"header-anchor",attrs:{href:"#checking-if-a-player-is-in-a-group"}},[e._v("🔗")])]),t("p",[e._v("Checking for group membership can be most easily achieved using hasPermission checks.")]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs language-java"}},[t("span",{pre:!0,attrs:{class:"hljs-function"}},[t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("public")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("static")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("boolean")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-title"}},[e._v("isPlayerInGroup")]),t("span",{pre:!0,attrs:{class:"hljs-params"}},[e._v("(Player player, String group)")]),e._v(" ")]),e._v("{\n "),t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("return")]),e._v(" player.hasPermission("),t("span",{pre:!0,attrs:{class:"hljs-string"}},[e._v('"group."')]),e._v(" + group);\n}\n")])]),t("p",[e._v("However, keep in mind that anyone with server operator status or "),t("code",{pre:!0},[e._v("*")]),e._v(" permissions will also have these permissions.")]),t("hr"),t("h3",{attrs:{id:"finding-a-players-group",tabindex:"-1"}},[e._v("Finding a players group "),t("a",{staticClass:"header-anchor",attrs:{href:"#finding-a-players-group"}},[e._v("🔗")])]),t("p",[e._v('We can use the method above with a list of "possible" groups in order to find a player\'s group.')]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs language-java"}},[t("span",{pre:!0,attrs:{class:"hljs-function"}},[t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("public")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("static")]),e._v(" String "),t("span",{pre:!0,attrs:{class:"hljs-title"}},[e._v("getPlayerGroup")]),t("span",{pre:!0,attrs:{class:"hljs-params"}},[e._v("(Player player, Collection possibleGroups)")]),e._v(" ")]),e._v("{\n "),t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("for")]),e._v(" (String group : possibleGroups) {\n "),t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("if")]),e._v(" (player.hasPermission("),t("span",{pre:!0,attrs:{class:"hljs-string"}},[e._v('"group."')]),e._v(" + group)) {\n "),t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("return")]),e._v(" group;\n }\n }\n "),t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("return")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("null")]),e._v(";\n}\n")])]),t("p",[e._v("Remember to order your "),t("code",{pre:!0},[e._v("possibleGroups")]),e._v(" list by priority. e.g. owner first, member last.")]),t("hr"),t("h3",{attrs:{id:"obtaining-a-user-instance",tabindex:"-1"}},[e._v("Obtaining a User instance "),t("a",{staticClass:"header-anchor",attrs:{href:"#obtaining-a-user-instance"}},[e._v("🔗")])]),t("p",[e._v("A "),t("code",{pre:!0},[e._v("User")]),e._v(" in LuckPerms is simply an object which represents a player on the server, and their associated permission data.")]),t("h4",{attrs:{id:"distinction-between-online--offline-players",tabindex:"-1"}},[e._v("Distinction between online & offline players "),t("a",{staticClass:"header-anchor",attrs:{href:"#distinction-between-online--offline-players"}},[e._v("🔗")])]),t("p",[e._v("In order to conserve memory usage, LuckPerms will only load User data when it absolutely needs to.")]),t("p",[e._v("Meaning:")]),t("ul",[t("li",[t("strong",[e._v("Online")]),e._v(" players are guaranteed to have an associated User object loaded already.")]),t("li",[t("strong",[e._v("Offline")]),e._v(" players "),t("em",[e._v("may")]),e._v(" have an associated User object loaded, but they most likely will not.")])]),t("p",[e._v("This makes getting a User instance a little complicated, depending on if the Player is online or not.")]),t("h4",{attrs:{id:"loading-data-for-players",tabindex:"-1"}},[e._v("Loading data for players "),t("a",{staticClass:"header-anchor",attrs:{href:"#loading-data-for-players"}},[e._v("🔗")])]),t("h5",{attrs:{id:"if-the-player-is-already-online",tabindex:"-1"}},[e._v("If the player is already online "),t("a",{staticClass:"header-anchor",attrs:{href:"#if-the-player-is-already-online"}},[e._v("🔗")])]),t("p",[e._v("If we know the player is connected, LuckPerms will already have data in memory for them.")]),t("p",[e._v("It's as simple as...")]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs language-java"}},[e._v("Player player = ...;\nUser user = luckPerms.getPlayerAdapter(Player.class).getUser(player);\n")])]),t("p",[e._v("Or if you only have a "),t("code",{pre:!0},[e._v("UUID")]),e._v("...")]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs language-java"}},[e._v("User user = luckPerms.getUserManager().getUser(uuid);\n")])]),t("p",[e._v("However, remember that this instance "),t("em",[e._v("may")]),e._v(" not represent the user's most up-to-date state. If you want to make changes, it's a good idea to request for the user's data to be loaded again (read on...).")]),t("h5",{attrs:{id:"if-the-player-isnt-or-might-not-be-online",tabindex:"-1"}},[e._v("If the player isn't (or might not be) online "),t("a",{staticClass:"header-anchor",attrs:{href:"#if-the-player-isnt-or-might-not-be-online"}},[e._v("🔗")])]),t("p",[e._v("Let's assume we want to load some data about a user - but we only have their unique id.")]),t("p",[e._v("The first thing we need to do is obtain the "),t("code",{pre:!0},[e._v("UserManager")]),e._v(". This object is responsible for handling all operations relating to "),t("code",{pre:!0},[e._v("User")]),e._v("s. The user manager provides a method which lets us load a "),t("code",{pre:!0},[e._v("User")]),e._v(" instance, appropriately named "),t("code",{pre:!0},[e._v("loadUser")]),e._v(".")]),t("p",[e._v("The method returns a "),t("code",{pre:!0},[e._v("CompletableFuture")]),e._v(" (explained "),t("a",{attrs:{href:"Developer-API#using-completablefutures"}},[e._v("here")]),e._v(").")]),t("p",[e._v("We can simply attach a callback onto the future to apply the action.")]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs language-java"}},[e._v("UserManager userManager = luckPerms.getUserManager();\nCompletableFuture userFuture = userManager.loadUser(uniqueId);\n\nuserFuture.thenAcceptAsync(user -> {\n "),t("span",{pre:!0,attrs:{class:"hljs-comment"}},[e._v("// Now we have a user which we can query.")]),e._v("\n "),t("span",{pre:!0,attrs:{class:"hljs-comment"}},[e._v("// ...")]),e._v("\n});\n")])]),t("h5",{attrs:{id:"if-the-player-isnt-or-might-not-be-online--we-want-to-return-something",tabindex:"-1"}},[e._v("If the player isn't (or might not be) online & we want to return something "),t("a",{staticClass:"header-anchor",attrs:{href:"#if-the-player-isnt-or-might-not-be-online--we-want-to-return-something"}},[e._v("🔗")])]),t("p",[e._v('The callback approach works well if you don\'t need to actually "return" anything. It performs all of the nasty i/o away from the main server thread, and handles everything in the background.')]),t("p",[e._v("But what if we need data "),t("em",[e._v("now")]),e._v("? Well, that's where it gets fun. Unfortunately, there's no straightforward answer - but you effectively have two options.")]),t("ul",[t("li",[e._v("Define a blocking method, which will be (kind of) simple, but will lag the server if it's not called async")]),t("li",[e._v("Embrace CompletableFutures and callbacks")])]),t("p",[e._v("The first option effectively comes down to this...")]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs language-java"}},[t("span",{pre:!0,attrs:{class:"hljs-function"}},[t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("public")]),e._v(" User "),t("span",{pre:!0,attrs:{class:"hljs-title"}},[e._v("giveMeADamnUser")]),t("span",{pre:!0,attrs:{class:"hljs-params"}},[e._v("(UUID uniqueId)")]),e._v(" ")]),e._v("{\n UserManager userManager = luckPerms.getUserManager();\n CompletableFuture userFuture = userManager.loadUser(uniqueId);\n\n "),t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("return")]),e._v(" userFuture.join(); "),t("span",{pre:!0,attrs:{class:"hljs-comment"}},[e._v("// ouch! (block until the User is loaded)")]),e._v("\n}\n")])]),t("p",[e._v("You can then do whatever you want with the user instance - but remember, this should only ever be called from an async task!")]),t("p",[e._v("The other option is to embrace callbacks.")]),t("p",[e._v("In an ideal world, we'd be able to do something like this, without any consequences.")]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs language-java"}},[t("span",{pre:!0,attrs:{class:"hljs-function"}},[t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("public")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("boolean")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-title"}},[e._v("isAdmin")]),t("span",{pre:!0,attrs:{class:"hljs-params"}},[e._v("(UUID who)")]),e._v(" ")]),e._v("{\n User user = luckPerms.getUserManager().loadUser(who);\n\n Collection inheritedGroups = user.getInheritedGroups(user.getQueryOptions());\n "),t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("return")]),e._v(" inheritedGroups.stream().anyMatch(g -> g.getName().equals("),t("span",{pre:!0,attrs:{class:"hljs-string"}},[e._v('"admin"')]),e._v("));\n}\n\n"),t("span",{pre:!0,attrs:{class:"hljs-function"}},[t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("public")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("void")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-title"}},[e._v("informIfAdmin")]),t("span",{pre:!0,attrs:{class:"hljs-params"}},[e._v("(CommandSender sender, UUID who)")]),e._v(" ")]),e._v("{\n "),t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("if")]),e._v(" (isAdmin(who)) {\n sender.sendMessage("),t("span",{pre:!0,attrs:{class:"hljs-string"}},[e._v('"Yes! That player is an admin!"')]),e._v(");\n } "),t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("else")]),e._v(" {\n sender.sendMessage("),t("span",{pre:!0,attrs:{class:"hljs-string"}},[e._v('"No, that player isn\'t an admin."')]),e._v(");\n }\n}\n")])]),t("p",[e._v("However, we can't, because "),t("code",{pre:!0},[e._v("#loadUser")]),e._v(" returns a CompletableFuture - as it performs lots of expensive database queries to produce a result.")]),t("p",[e._v("The solution? More futures!")]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs language-java"}},[t("span",{pre:!0,attrs:{class:"hljs-function"}},[t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("public")]),e._v(" CompletableFuture "),t("span",{pre:!0,attrs:{class:"hljs-title"}},[e._v("isAdmin")]),t("span",{pre:!0,attrs:{class:"hljs-params"}},[e._v("(UUID who)")]),e._v(" ")]),e._v("{\n "),t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("return")]),e._v(" luckPerms.getUserManager().loadUser(who)\n .thenApplyAsync(user -> {\n Collection inheritedGroups = user.getInheritedGroups(user.getQueryOptions());\n "),t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("return")]),e._v(" inheritedGroups.stream().anyMatch(g -> g.getName().equals("),t("span",{pre:!0,attrs:{class:"hljs-string"}},[e._v('"admin"')]),e._v("));\n });\n}\n\n"),t("span",{pre:!0,attrs:{class:"hljs-function"}},[t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("public")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("void")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-title"}},[e._v("informIfAdmin")]),t("span",{pre:!0,attrs:{class:"hljs-params"}},[e._v("(CommandSender sender, UUID who)")]),e._v(" ")]),e._v("{\n isAdmin(who).thenAcceptAsync(result -> {\n "),t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("if")]),e._v(" (result) {\n sender.sendMessage("),t("span",{pre:!0,attrs:{class:"hljs-string"}},[e._v('"Yes! That player is an admin!"')]),e._v(");\n } "),t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("else")]),e._v(" {\n sender.sendMessage("),t("span",{pre:!0,attrs:{class:"hljs-string"}},[e._v('"No, that player isn\'t an admin."')]),e._v(");\n }\n });\n}\n")])]),t("p",[e._v("To summarise, there are two ways to obtain a user.")]),t("ul",[t("li",[e._v("Using "),t("code",{pre:!0},[e._v("UserManager#getUser")]),e._v(" or "),t("code",{pre:!0},[e._v("PlayerAdapter#getUser")]),t("ul",[t("li",[e._v("Always returns a result for online players")]),t("li",[e._v('Is "main thread friendly" (can be called sync)')]),t("li",[e._v("Will sometimes (but usually not) return a result of offline players")])])]),t("li",[e._v("Using "),t("code",{pre:!0},[e._v("UserManager#loadUser")]),t("ul",[t("li",[e._v("Returns a future")]),t("li",[e._v("Can either be used alongside callbacks, or as part of a blocking method which is only ever called async")]),t("li",[e._v("Always works for both offline/online users")])])])]),t("hr"),t("h3",{attrs:{id:"obtaining-a-grouptrack-instance",tabindex:"-1"}},[e._v("Obtaining a Group/Track instance "),t("a",{staticClass:"header-anchor",attrs:{href:"#obtaining-a-grouptrack-instance"}},[e._v("🔗")])]),t("p",[e._v("Grabbing a "),t("code",{pre:!0},[e._v("Group")]),e._v(" or "),t("code",{pre:!0},[e._v("Track")]),e._v(" is much more simple, as they are always kept loaded in memory.")]),t("p",[e._v("Simply...")]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs language-java"}},[e._v("Group group = luckPerms.getGroupManager().getGroup(groupName);\n"),t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("if")]),e._v(" (group == "),t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("null")]),e._v(") {\n "),t("span",{pre:!0,attrs:{class:"hljs-comment"}},[e._v("// group doesn't exist.")]),e._v("\n "),t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("return")]),e._v(";\n}\n\n"),t("span",{pre:!0,attrs:{class:"hljs-comment"}},[e._v("// now we have a group, and can apply whatever action we want.")]),e._v("\ngroup.doSomething(...);\n")])]),t("p",[e._v("You can do exactly the same for "),t("code",{pre:!0},[e._v("Track")]),e._v("s using the "),t("code",{pre:!0},[e._v("TrackManager#getTrack")]),e._v(" method.")]),t("p",[e._v("If you need to get up-to-date data (a good idea if you're making changes), then just call "),t("code",{pre:!0},[e._v("loadGroup")]),e._v(" or "),t("code",{pre:!0},[e._v("loadTrack")]),e._v(" instead, respectively.")]),t("hr"),t("h3",{attrs:{id:"saving-changes",tabindex:"-1"}},[e._v("Saving changes "),t("a",{staticClass:"header-anchor",attrs:{href:"#saving-changes"}},[e._v("🔗")])]),t("p",[e._v("After making changes to a user/group/track, you have to save the changes back to the storage provider. It's pretty easy.")]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs language-java"}},[t("span",{pre:!0,attrs:{class:"hljs-function"}},[t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("public")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("void")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-title"}},[e._v("addPermission")]),t("span",{pre:!0,attrs:{class:"hljs-params"}},[e._v("(User user, String permission)")]),e._v(" ")]),e._v("{\n "),t("span",{pre:!0,attrs:{class:"hljs-comment"}},[e._v("// Add the permission")]),e._v("\n user.data().add(Node.builder(permission).build());\n\n "),t("span",{pre:!0,attrs:{class:"hljs-comment"}},[e._v("// Now we need to save changes.")]),e._v("\n luckPerms.getUserManager().saveUser(user);\n}\n")])]),t("p",[e._v("There is also a handy "),t("code",{pre:!0},[e._v("modify*")]),e._v(" method which handles loading and saving for you.")]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs language-java"}},[t("span",{pre:!0,attrs:{class:"hljs-function"}},[t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("public")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("void")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-title"}},[e._v("addPermission")]),t("span",{pre:!0,attrs:{class:"hljs-params"}},[e._v("(UUID userUuid, String permission)")]),e._v(" ")]),e._v("{\n "),t("span",{pre:!0,attrs:{class:"hljs-comment"}},[e._v("// Load, modify, then save")]),e._v("\n luckPerms.getUserManager().modifyUser(userUuid, user -> {\n "),t("span",{pre:!0,attrs:{class:"hljs-comment"}},[e._v("// Add the permission")]),e._v("\n user.data().add(Node.builder(permission).build());\n });\n}\n")])]),t("p",[e._v("The same methods also exist for groups and tracks.")]),t("hr"),t("h3",{attrs:{id:"the-basics-of-node",tabindex:"-1"}},[e._v("The basics of Node "),t("a",{staticClass:"header-anchor",attrs:{href:"#the-basics-of-node"}},[e._v("🔗")])]),t("p",[e._v("The "),t("code",{pre:!0},[e._v("Node")]),e._v(" interface is the core data class in LuckPerms.")]),t("p",[e._v('Most simply, it represents a "permission node". However, it actually encapsulates far more than just permission assignments. Nodes are used to store data about inherited groups, as well as assigned prefixes, suffixes and meta values.')]),t("p",[e._v('Combining these various states into one object (a "node") means that a holder only has to have one type of data set (a set of nodes) in order to take on various properties.')]),t("p",[e._v("The "),t("code",{pre:!0},[e._v("Node")]),e._v(" interface provides a number of methods to read the attributes of the node, as well as methods to query and extract additional state and properties from these settings.")]),t("p",[e._v("Nodes have the following attributes:")]),t("ul",[t("li",[e._v("key - the key of the node")]),t("li",[e._v("value - the value of the node (false for negated)")]),t("li",[e._v("context - the contexts required for this node to apply")]),t("li",[e._v("expiry - the time when this node should expire")])]),t("p",[e._v("There are a number of node types, all of which are extensions of the base "),t("code",{pre:!0},[e._v("Node")]),e._v(" class.")]),t("ul",[t("li",[t("code",{pre:!0},[e._v("PermissionNode")]),e._v(" - represents an assigned permission")]),t("li",[t("code",{pre:!0},[e._v("RegexPermissionNode")]),e._v(" - represents an assigned regex permission")]),t("li",[t("code",{pre:!0},[e._v("InheritanceNode")]),e._v(" - marks that the holder should inherit data from another group")]),t("li",[t("code",{pre:!0},[e._v("PrefixNode")]),e._v(" - represents an assigned prefix")]),t("li",[t("code",{pre:!0},[e._v("SuffixNode")]),e._v(" - represents an assigned suffix")]),t("li",[t("code",{pre:!0},[e._v("MetaNode")]),e._v(" - represents an assigned meta option")]),t("li",[t("code",{pre:!0},[e._v("WeightNode")]),e._v(" - marks the weight of the object holding the node")]),t("li",[t("code",{pre:!0},[e._v("DisplayNameNode")]),e._v(" - marks the display name of the object holding the node")])]),t("hr"),t("h3",{attrs:{id:"creating-new-node-instances",tabindex:"-1"}},[e._v("Creating new node instances "),t("a",{staticClass:"header-anchor",attrs:{href:"#creating-new-node-instances"}},[e._v("🔗")])]),t("p",[e._v("To obtain a "),t("code",{pre:!0},[e._v("Node")]),e._v(", you use "),t("code",{pre:!0},[e._v("NodeBuilder")]),e._v("s.")]),t("p",[e._v('If you just have a "key" and are unsure which category of node it falls into, you can simply use '),t("code",{pre:!0},[e._v("Node.builder()")]),e._v(".")]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs language-java"}},[t("span",{pre:!0,attrs:{class:"hljs-comment"}},[e._v("// build any type of node")]),e._v("\nNode node = Node.builder("),t("span",{pre:!0,attrs:{class:"hljs-string"}},[e._v('"some.node.key"')]),e._v(").build();\n\n"),t("span",{pre:!0,attrs:{class:"hljs-comment"}},[e._v("// and with extra properties!")]),e._v("\nNode node = Node.builder("),t("span",{pre:!0,attrs:{class:"hljs-string"}},[e._v('"some.node.key"')]),e._v(")\n .value("),t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("false")]),e._v(")\n .expiry(Duration.ofHours("),t("span",{pre:!0,attrs:{class:"hljs-number"}},[e._v("1")]),e._v("))\n .withContext(DefaultContextKeys.SERVER_KEY, "),t("span",{pre:!0,attrs:{class:"hljs-string"}},[e._v('"survival"')]),e._v(")\n .build();\n\n"),t("span",{pre:!0,attrs:{class:"hljs-comment"}},[e._v("// note: all of the following classes extend from Node")]),e._v("\n\n"),t("span",{pre:!0,attrs:{class:"hljs-comment"}},[e._v("// build a permission node")]),e._v("\nPermissionNode node = PermissionNode.builder("),t("span",{pre:!0,attrs:{class:"hljs-string"}},[e._v('"my.permission"')]),e._v(").build();\n\n"),t("span",{pre:!0,attrs:{class:"hljs-comment"}},[e._v("// build a regex permission node")]),e._v("\nRegexPermissionNode node = RegexPermissionNode.builder(pattern).build();\n\n"),t("span",{pre:!0,attrs:{class:"hljs-comment"}},[e._v("// build an inheritance node")]),e._v("\nInheritanceNode node = InheritanceNode.builder(group).build();\n\n"),t("span",{pre:!0,attrs:{class:"hljs-comment"}},[e._v("// build a prefix node")]),e._v("\nPrefixNode node = PrefixNode.builder("),t("span",{pre:!0,attrs:{class:"hljs-string"}},[e._v('"[Some Prefix]"')]),e._v(", "),t("span",{pre:!0,attrs:{class:"hljs-number"}},[e._v("100")]),e._v(").build();\n\n"),t("span",{pre:!0,attrs:{class:"hljs-comment"}},[e._v("// build a suffix node")]),e._v("\nSuffixNode node = SuffixNode.builder("),t("span",{pre:!0,attrs:{class:"hljs-string"}},[e._v('"[Some Suffix]"')]),e._v(", "),t("span",{pre:!0,attrs:{class:"hljs-number"}},[e._v("150")]),e._v(").build();\n\n"),t("span",{pre:!0,attrs:{class:"hljs-comment"}},[e._v("// build a metadata node")]),e._v("\nMetaNode node = MetaNode.builder("),t("span",{pre:!0,attrs:{class:"hljs-string"}},[e._v('"some-key"')]),e._v(", "),t("span",{pre:!0,attrs:{class:"hljs-string"}},[e._v('"some-value"')]),e._v(").build();\n\n"),t("span",{pre:!0,attrs:{class:"hljs-comment"}},[e._v("// build a weight node")]),e._v("\nWeightNode node = WeightNode.builder("),t("span",{pre:!0,attrs:{class:"hljs-number"}},[e._v("25")]),e._v(").build();\n\n"),t("span",{pre:!0,attrs:{class:"hljs-comment"}},[e._v("// build a display name node")]),e._v("\nDisplayNameNode node = DisplayNameNode.builder("),t("span",{pre:!0,attrs:{class:"hljs-string"}},[e._v('"SeniorModerator"')]),e._v(").build();\n")])]),t("hr"),t("h3",{attrs:{id:"modifying-existing-nodes",tabindex:"-1"}},[e._v("Modifying existing nodes "),t("a",{staticClass:"header-anchor",attrs:{href:"#modifying-existing-nodes"}},[e._v("🔗")])]),t("p",[t("code",{pre:!0},[e._v("Node")]),e._v("s are immutable - meaning their attributes cannot be changed. However, we can easily create a "),t("em",[e._v("new")]),e._v(" node based upon the properties of an existing one.")]),t("p",[e._v("e.g.")]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs language-java"}},[e._v("Node negated = node.toBuilder().value("),t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("false")]),e._v(").build();\n")])]),t("hr"),t("h3",{attrs:{id:"reading-usergroup-data",tabindex:"-1"}},[e._v("Reading user/group data "),t("a",{staticClass:"header-anchor",attrs:{href:"#reading-usergroup-data"}},[e._v("🔗")])]),t("p",[t("code",{pre:!0},[e._v("User")]),e._v("s and "),t("code",{pre:!0},[e._v("Group")]),e._v("s both inherit from a super interface called "),t("code",{pre:!0},[e._v("PermissionHolder")]),e._v(". This interface defines most of the shared permission functionality in users and groups.")]),t("p",[e._v("As explained above, most data held by users/groups are contained within "),t("code",{pre:!0},[e._v("Node")]),e._v(" instances. This means that there are only a few methods to think about. However, they all do slightly different things!")]),t("p",[e._v("Importantly, all of the methods below return "),t("strong",[e._v("immutable collections")]),e._v(". You cannot make changes to the returned connections.")]),t("h4",{attrs:{id:"getnodes",tabindex:"-1"}},[t("code",{pre:!0},[e._v(".getNodes()")]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#getnodes"}},[e._v("🔗")])]),t("p",[e._v("The method signature is:")]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs language-java"}},[t("span",{pre:!0,attrs:{class:"hljs-function"}},[e._v("Collection "),t("span",{pre:!0,attrs:{class:"hljs-title"}},[e._v("getNodes")]),t("span",{pre:!0,attrs:{class:"hljs-params"}},[e._v("()")]),e._v("\n")])])]),t("ul",[t("li",[e._v("This method returns an un-flattened (or squashed) collection of the user/groups nodes.")]),t("li",[e._v("Entries nearer the start of the collection (index zero) have priority over nodes at the end.")]),t("li",[e._v("This view does "),t("strong",[e._v("not")]),e._v(" consider inherited data.")])]),t("p",[e._v("It's a relatively cheap call, and will return quite quickly.")]),t("p",[e._v("You can use the Stream API to easily filter the returned data to find what you need. For example, if you wanted to get a list of groups a holder inherits from, you could use something like this:")]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs language-java"}},[e._v("Set groups = user.getNodes().stream()\n .filter(NodeType.INHERITANCE::matches)\n .map(NodeType.INHERITANCE::cast)\n .map(InheritanceNode::getGroupName)\n .collect(Collectors.toSet());\n")])]),t("p",[e._v("You can make this a bit simpler by passing the node type as a parameter!")]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs language-java"}},[e._v("Set groups = user.getNodes(NodeType.INHERITANCE).stream()\n .map(InheritanceNode::getGroupName)\n .collect(Collectors.toSet());\n")])]),t("p",[e._v("Or even more complicated queries, like finding the max priority of a temporary prefix held on a specific server.")]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs language-java"}},[t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("int")]),e._v(" maxWeight = user.getNodes(NodeType.PREFIX).stream()\n .filter(Node::hasExpiry)\n .filter(n -> n.getContexts().getAnyValue(DefaultContextKeys.SERVER_KEY)\n .map(v -> v.equals("),t("span",{pre:!0,attrs:{class:"hljs-string"}},[e._v('"factions"')]),e._v(")).orElse("),t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("false")]),e._v("))\n .mapToInt(ChatMetaNode::getPriority)\n .max()\n .orElse("),t("span",{pre:!0,attrs:{class:"hljs-number"}},[e._v("0")]),e._v(");\n")])]),t("p",[e._v("If you need to do a more specific lookup or check, prefer using one of the other methods (described later) to avoid iterating over the whole collection of nodes.")]),t("h4",{attrs:{id:"getdistinctnodes",tabindex:"-1"}},[t("code",{pre:!0},[e._v(".getDistinctNodes()")]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#getdistinctnodes"}},[e._v("🔗")])]),t("p",[e._v("The method signature is:")]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs language-java"}},[t("span",{pre:!0,attrs:{class:"hljs-function"}},[e._v("SortedSet "),t("span",{pre:!0,attrs:{class:"hljs-title"}},[e._v("getDistinctNodes")]),t("span",{pre:!0,attrs:{class:"hljs-params"}},[e._v("()")])]),e._v(";\n")])]),t("ul",[t("li",[e._v("This method returns a sorted view of "),t("code",{pre:!0},[e._v("#getNodes")]),e._v(". If you are not worried about ordering, it's faster to use "),t("code",{pre:!0},[e._v("#getNodes")]),e._v(".")]),t("li",[e._v('The nodes are sorted according to "priority order". As the returned type is a set, duplicate elements may be missing.')]),t("li",[e._v("This view does "),t("strong",[e._v("not")]),e._v(" consider inherited data.")])]),t("h4",{attrs:{id:"resolveinheritednodes",tabindex:"-1"}},[t("code",{pre:!0},[e._v(".resolveInheritedNodes()")]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#resolveinheritednodes"}},[e._v("🔗")])]),t("p",[e._v("The method signature is:")]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs language-java"}},[t("span",{pre:!0,attrs:{class:"hljs-function"}},[e._v("Collection "),t("span",{pre:!0,attrs:{class:"hljs-title"}},[e._v("resolveInheritedNodes")]),t("span",{pre:!0,attrs:{class:"hljs-params"}},[e._v("(QueryOptions queryOptions)")]),e._v("\n")])])]),t("ul",[t("li",[e._v("This method returns an un-flattened (or squashed) list of the user/groups nodes, and all nodes they inherit from their parents.")]),t("li",[e._v("Entries nearer the start of the list (index zero) have priority over nodes at the end.")]),t("li",[e._v("This view "),t("strong",[e._v("does")]),e._v(" consider inherited data. If you don't need this, use the "),t("code",{pre:!0},[e._v("getNodes")]),e._v(" method instead.")])]),t("p",[e._v("The "),t("code",{pre:!0},[e._v("QueryOptions")]),e._v(" parameter encapsulates the lookup settings for the query. This class is explained in a later section. If you're not worried particularly about filtering by context, simply use "),t("code",{pre:!0},[e._v("QueryOptions.nonContextual()")]),e._v(".")]),t("hr"),t("h3",{attrs:{id:"modifying-usergroup-data",tabindex:"-1"}},[e._v("Modifying user/group data "),t("a",{staticClass:"header-anchor",attrs:{href:"#modifying-usergroup-data"}},[e._v("🔗")])]),t("p",[e._v("User/group data can be modified by adding and removing "),t("code",{pre:!0},[e._v("Node")]),e._v("s from the holders data. This can be done by calling "),t("code",{pre:!0},[e._v("#data")]),e._v(" and calling the methods on the returned "),t("code",{pre:!0},[e._v("NodeMap")]),e._v(".")]),t("p",[e._v("Here is an example of adding a permission to a user:")]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs language-java"}},[e._v("DataMutateResult result = user.data().add(Node.builder("),t("span",{pre:!0,attrs:{class:"hljs-string"}},[e._v('"your.node.here"')]),e._v(").build());\n")])]),t("p",[e._v("Don't forget to "),t("a",{attrs:{href:"#saving-changes"}},[e._v("save")]),e._v(" your changes!")]),t("hr"),t("h3",{attrs:{id:"the-basics-of-context",tabindex:"-1"}},[e._v("The basics of Context "),t("a",{staticClass:"header-anchor",attrs:{href:"#the-basics-of-context"}},[e._v("🔗")])]),t("p",[e._v("Contexts are an important concept in LuckPerms, and are introduced "),t("a",{attrs:{href:"Context"}},[e._v("here")]),e._v(". They are encapsulated within the API by a few important classes.")]),t("p",[e._v("A very basic overview is that:")]),t("blockquote",[t("p",[t("strong",[e._v("Context")]),e._v(" in the most basic sense simply means the "),t("strong",[e._v("circumstances where something will apply")]),e._v(".")]),t("p",[e._v('A single "context" consists of a key and a value, both strings. The key represents the type of context, and the value represents the setting of the context key.')]),t("p",[e._v('Contexts can be combined with each other to form so called "context sets" - simply a collection of context pairs.')]),t("p",[e._v("Context keys are case-insensitive, and will be converted to lowercase by all implementations. Values however are case-sensitive. Context keys and values may not be null or empty. A key/value will be deemed empty if it's length is zero, or if it consists of only space characters.")])]),t("h4",{attrs:{id:"important-classes",tabindex:"-1"}},[e._v("Important classes "),t("a",{staticClass:"header-anchor",attrs:{href:"#important-classes"}},[e._v("🔗")])]),t("h4",{attrs:{id:"contextset",tabindex:"-1"}},[t("code",{pre:!0},[e._v("ContextSet")]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#contextset"}},[e._v("🔗")])]),t("p",[e._v('A "context set" is simply a set of contexts.')]),t("p",[e._v("Internally, a context set is effectively a "),t("code",{pre:!0},[e._v("Multimap")]),e._v(", or a "),t("code",{pre:!0},[e._v(">")]),e._v(", but importantly, it is "),t("strong",[e._v("not")]),e._v(" a "),t("code",{pre:!0},[e._v("Map")]),e._v(".")]),t("p",[e._v("Keys can be mapped to multiple values.")]),t("p",[e._v("The "),t("code",{pre:!0},[e._v("ContextSet")]),e._v(" interface defines a number of methods which can be used to interact with context set implementations. These methods should be fairly self explanatory - and are sufficiently explained in the Javadocs.")]),t("h4",{attrs:{id:"immutablecontextset",tabindex:"-1"}},[t("code",{pre:!0},[e._v("ImmutableContextSet")]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#immutablecontextset"}},[e._v("🔗")])]),t("p",[e._v("An "),t("em",[e._v("immutable")]),e._v(" implementation of ContextSet. You can obtain an instance in a number of ways.")]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs language-java"}},[e._v("ImmutableContextSet set1 = ImmutableContextSet.empty(); \n\nImmutableContextSet set2 = ImmutableContextSet.of("),t("span",{pre:!0,attrs:{class:"hljs-string"}},[e._v('"world"')]),e._v(", "),t("span",{pre:!0,attrs:{class:"hljs-string"}},[e._v('"world_nether"')]),e._v(");\n\nImmutableContextSet set3 = ImmutableContextSet.builder() \n .add("),t("span",{pre:!0,attrs:{class:"hljs-string"}},[e._v('"world"')]),e._v(", "),t("span",{pre:!0,attrs:{class:"hljs-string"}},[e._v('"world_nether"')]),e._v(")\n .add("),t("span",{pre:!0,attrs:{class:"hljs-string"}},[e._v('"server"')]),e._v(", "),t("span",{pre:!0,attrs:{class:"hljs-string"}},[e._v('"survival"')]),e._v(")\n .build();\n\nMap map = "),t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("new")]),e._v(" HashMap<>();\nmap.put("),t("span",{pre:!0,attrs:{class:"hljs-string"}},[e._v('"region"')]),e._v(", "),t("span",{pre:!0,attrs:{class:"hljs-string"}},[e._v('"something"')]),e._v(");\n\nImmutableContextSet.Builder builder = ImmutableContextSet.builder();\nmap.forEach(builder::add);\n\nImmutableContextSet set4 = builder.build();\n")])]),t("p",[e._v("You can of course also create an "),t("code",{pre:!0},[e._v("ImmutableContextSet")]),e._v(" by first creating (or obtaining) a "),t("code",{pre:!0},[e._v("MutableContextSet")]),e._v(" and converting it.")]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs language-java"}},[e._v("MutableContextSet set = MutableContextSet.create();\nset.add("),t("span",{pre:!0,attrs:{class:"hljs-string"}},[e._v('"something"')]),e._v(", "),t("span",{pre:!0,attrs:{class:"hljs-string"}},[e._v('"something"')]),e._v(");\n\nImmutableContextSet immutableSet = set.immutableCopy();\n")])]),t("h4",{attrs:{id:"mutablecontextset",tabindex:"-1"}},[t("code",{pre:!0},[e._v("MutableContextSet")]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#mutablecontextset"}},[e._v("🔗")])]),t("p",[e._v("A "),t("em",[e._v("mutable")]),e._v(" implementation of ContextSet. You can obtain an instance in a number of ways.")]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs language-java"}},[e._v("MutableContextSet set1 = MutableContextSet.create();\nset1.add("),t("span",{pre:!0,attrs:{class:"hljs-string"}},[e._v('"world"')]),e._v(", "),t("span",{pre:!0,attrs:{class:"hljs-string"}},[e._v('"text"')]),e._v(");\n\nMutableContextSet set2 = MutableContextSet.of("),t("span",{pre:!0,attrs:{class:"hljs-string"}},[e._v('"world"')]),e._v(", "),t("span",{pre:!0,attrs:{class:"hljs-string"}},[e._v('"world_nether"')]),e._v(");\n\nMap map = "),t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("new")]),e._v(" HashMap<>();\nmap.put("),t("span",{pre:!0,attrs:{class:"hljs-string"}},[e._v('"region"')]),e._v(", "),t("span",{pre:!0,attrs:{class:"hljs-string"}},[e._v('"something"')]),e._v(");\n\nMutableContextSet set3 = MutableContextSet.create();\nmap.forEach(set3::add);\n\nset3.removeAll("),t("span",{pre:!0,attrs:{class:"hljs-string"}},[e._v('"region"')]),e._v(");\n")])]),t("p",[e._v("To edit an "),t("code",{pre:!0},[e._v("ImmutableContextSet")]),e._v(', you can make a "mutable copy" of it.')]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs language-java"}},[e._v("ImmutableContextSet set = ImmutableContextSet.of("),t("span",{pre:!0,attrs:{class:"hljs-string"}},[e._v('"something"')]),e._v(", "),t("span",{pre:!0,attrs:{class:"hljs-string"}},[e._v('"something"')]),e._v(");\n\nMutableContextSet mutableCopy = set.mutableCopy();\nmutableCopy.add("),t("span",{pre:!0,attrs:{class:"hljs-string"}},[e._v('"something"')]),e._v(", "),t("span",{pre:!0,attrs:{class:"hljs-string"}},[e._v('"something-else"')]),e._v(");\n")])]),t("h4",{attrs:{id:"registering-contextcalculators",tabindex:"-1"}},[e._v("Registering ContextCalculators "),t("a",{staticClass:"header-anchor",attrs:{href:"#registering-contextcalculators"}},[e._v("🔗")])]),t("p",[e._v('A "subject" (a player in most cases) is just an object which can have contexts applied to them.')]),t("p",[e._v('In other words, a "subject" is an object which has an '),t("strong",[e._v("active context set")]),e._v(". A "),t("code",{pre:!0},[e._v("ContextCalculator")]),e._v(' is an object which determines the "active" contexts for a given type of Subject.')]),t("p",[e._v("The subject type varies between platforms.")]),t("table",[t("thead",[t("tr",[t("th",[e._v("Platform")]),t("th",[e._v("Subject type")])])]),t("tbody",[t("tr",[t("td",[e._v("Bukkit")]),t("td",[t("code",{pre:!0},[e._v("org.bukkit.entity.Player")])])]),t("tr",[t("td",[e._v("BungeeCord")]),t("td",[t("code",{pre:!0},[e._v("net.md_5.bungee.api.connection.ProxiedPlayer")])])]),t("tr",[t("td",[e._v("Sponge")]),t("td",[t("code",{pre:!0},[e._v("org.spongepowered.api.service.permission.Subject")])])]),t("tr",[t("td",[e._v("Fabric")]),t("td",[t("code",{pre:!0},[e._v("net.minecraft.server.network.ServerPlayerEntity")])])]),t("tr",[t("td",[e._v("Forge")]),t("td",[t("code",{pre:!0},[e._v("net.minecraft.server.level.ServerPlayer")])])]),t("tr",[t("td",[e._v("Nukkit")]),t("td",[t("code",{pre:!0},[e._v("cn.nukkit.Player")])])]),t("tr",[t("td",[e._v("Velocity")]),t("td",[t("code",{pre:!0},[e._v("com.velocitypowered.api.proxy.Player")])])])])]),t("p",[e._v("In order to provide your own context, you need to create and register a "),t("code",{pre:!0},[e._v("ContextCalculator")]),e._v(".")]),t("p",[e._v("For example, if I wanted to provide a context for the player's gamemode, in order to set permissions for players only when they are in creative, I'd create a calculator as follows. The "),t("code",{pre:!0},[e._v("estimatePotentialContexts")]),e._v(" method can be added, but is not necessary, to show context suggestions in the tab completion.")]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs language-java"}},[t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("public")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-class"}},[t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("class")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-title"}},[e._v("CustomCalculator")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("implements")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-title"}},[e._v("ContextCalculator")]),e._v("<"),t("span",{pre:!0,attrs:{class:"hljs-title"}},[e._v("Player")]),e._v("> ")]),e._v("{\n\n "),t("span",{pre:!0,attrs:{class:"hljs-function"}},[e._v("@Override \n "),t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("public")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("void")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-title"}},[e._v("calculate")]),t("span",{pre:!0,attrs:{class:"hljs-params"}},[e._v("(Player target, ContextConsumer contextConsumer)")]),e._v(" ")]),e._v("{\n contextConsumer.accept("),t("span",{pre:!0,attrs:{class:"hljs-string"}},[e._v('"gamemode"')]),e._v(", target.getGameMode().name());\n }\n \n "),t("span",{pre:!0,attrs:{class:"hljs-function"}},[e._v("@Override\n "),t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("public")]),e._v(" ContextSet "),t("span",{pre:!0,attrs:{class:"hljs-title"}},[e._v("estimatePotentialContexts")]),t("span",{pre:!0,attrs:{class:"hljs-params"}},[e._v("()")]),e._v(" ")]),e._v("{\n ImmutableContextSet.Builder builder = ImmutableContextSet.builder();\n "),t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("for")]),e._v(" (GameMode gameMode : GameMode.values()) {\n builder.add("),t("span",{pre:!0,attrs:{class:"hljs-string"}},[e._v('"gamemode"')]),e._v(", gameMode.name().toLowerCase());\n }\n "),t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("return")]),e._v(" builder.build();\n }\n \n}\n")])]),t("p",[e._v("Then register it using")]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs language-java"}},[e._v("luckPerms.getContextManager().registerCalculator("),t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("new")]),e._v(" CustomCalculator());\n")])]),t("h4",{attrs:{id:"querying-active-contextsquery-options",tabindex:"-1"}},[e._v("Querying active contexts/query options "),t("a",{staticClass:"header-anchor",attrs:{href:"#querying-active-contextsquery-options"}},[e._v("🔗")])]),t("p",[e._v('You can query the "active" contexts/query options of a Subject using the '),t("code",{pre:!0},[e._v("ContextManager")]),e._v(".")]),t("p",[e._v("If you already have an instance of the subject type, you can query directly using this.")]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs language-java"}},[e._v("Player player = ...;\n\nImmutableContextSet contextSet = luckPerms.getContextManager().getContext(player);\nQueryOptions queryOptions = luckPerms.getContextManager().getQueryOptions(player);\n")])]),t("p",[e._v("If you only have a "),t("code",{pre:!0},[e._v("User")]),e._v(", you can still perform a lookup, however, a result will only be returned if the corresponding subject (player) is online.")]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs language-java"}},[e._v("Optional contextSet = luckPerms.getContextManager().getContext(user);\nOptional queryOptions = luckPerms.getContextManager().getQueryOptions(user);\n")])]),t("p",[e._v('If you absolutely need to obtain an instance, you can fallback to the server\'s "static" context/query option. (these are formed using calculators which provide contexts/query options regardless of the passed subject.)')]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs language-java"}},[e._v("User user = ...;\n\n"),t("span",{pre:!0,attrs:{class:"hljs-comment"}},[e._v("// This is the easy way...")]),e._v("\nImmutableContextSet contextSet = user.getQueryOptions().context();\nQueryOptions queryOptions = user.getQueryOptions();\n\n"),t("span",{pre:!0,attrs:{class:"hljs-comment"}},[e._v("// But is equivalent to this...")]),e._v("\nContextManager cm = luckPerms.getContextManager();\nImmutableContextSet contextSet = cm.getContext(user).orElse(cm.getStaticContext());\nQueryOptions queryOptions = cm.getQueryOptions(user).orElse(cm.getStaticQueryOptions());\n")])]),t("hr"),t("h3",{attrs:{id:"the-basics-of-cacheddata",tabindex:"-1"}},[e._v("The basics of CachedData "),t("a",{staticClass:"header-anchor",attrs:{href:"#the-basics-of-cacheddata"}},[e._v("🔗")])]),t("p",[e._v("All "),t("code",{pre:!0},[e._v("User")]),e._v("s and "),t("code",{pre:!0},[e._v("Group")]),e._v("s also have an extra object attached to them called "),t("code",{pre:!0},[e._v("CachedData")]),e._v(". This is the name of the caching class used by LuckPerms to store easily query-able data for all permission holders. The lookup methods provided by this class are very fast. If you're doing frequent data lookups, it is highly recommended that you use "),t("code",{pre:!0},[e._v("CachedData")]),e._v(" over the methods in "),t("code",{pre:!0},[e._v("User")]),e._v(" and "),t("code",{pre:!0},[e._v("Group")]),e._v(".")]),t("p",[e._v("Everything in "),t("code",{pre:!0},[e._v("CachedData")]),e._v(" is indexed by "),t("code",{pre:!0},[e._v("QueryOptions")]),e._v(", as this is how LuckPerms processes all lookups internally.")]),t("p",[e._v("The contained data is split into two separate sections: "),t("code",{pre:!0},[e._v("CachedPermissionData")]),e._v(" and "),t("code",{pre:!0},[e._v("CachedMetaData")]),e._v(".")]),t("ul",[t("li",[t("code",{pre:!0},[e._v("CachedPermissionData")]),e._v(" contains the user/groups fully resolved map of permissions, and allows you to run permission checks in exactly the same way as you would using the Player class provided by the platform.")]),t("li",[t("code",{pre:!0},[e._v("CachedMetaData")]),e._v(" contains information about a user/groups prefixes, suffixes, and meta values.")])]),t("h4",{attrs:{id:"obtaining-cachedpermissiondata-and-cachedmetadata",tabindex:"-1"}},[e._v("Obtaining "),t("code",{pre:!0},[e._v("CachedPermissionData")]),e._v(" and "),t("code",{pre:!0},[e._v("CachedMetaData")]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#obtaining-cachedpermissiondata-and-cachedmetadata"}},[e._v("🔗")])]),t("p",[e._v("You need either:")]),t("ul",[t("li",[e._v("A platform "),t("code",{pre:!0},[e._v("Player")]),e._v(" instance")]),t("li",[e._v("A LuckPerms "),t("code",{pre:!0},[e._v("User")]),e._v(" or "),t("code",{pre:!0},[e._v("Group")]),e._v(" instance + optionally some "),t("code",{pre:!0},[e._v("QueryOptions")]),e._v(" (see above for how to obtain this)")])]),t("p",[e._v("If you have a "),t("code",{pre:!0},[e._v("Player")]),e._v(" platform instance (like "),t("em",[e._v("org.bukkit.entity.Player")]),e._v("), you can use the "),t("code",{pre:!0},[e._v("PlayerAdapter")]),e._v(" to obtain cached data.")]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs language-java"}},[e._v("Player player = ...;\nPlayerAdapter adapter = luckperms.getPlayerAdapter(Player.class);\n\nCachedPermissionData permissionData = adapter.getPermissionData(player);\nCachedMetaData metaData = adapter.getMetaData(player);\n")])]),t("p",[e._v("If you already have a LuckPerms "),t("code",{pre:!0},[e._v("User")]),e._v(" or "),t("code",{pre:!0},[e._v("Group")]),e._v(" instance, you can use the following methods to obtain cached data.")]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs language-java"}},[t("span",{pre:!0,attrs:{class:"hljs-comment"}},[e._v("// Will attempt to use the most appropriate currect query options for the User")]),e._v("\nCachedPermissionData permissionData = user.getCachedData().getPermissionData();\nCachedMetaData metaData = user.getCachedData().getMetaData();\n\n"),t("span",{pre:!0,attrs:{class:"hljs-comment"}},[e._v("// You can also manually specify which query options to use")]),e._v("\nCachedPermissionData permissionData = user.getCachedData().getPermissionData(queryOptions);\nCachedMetaData metaData = user.getCachedData().getMetaData(queryOptions);\n")])]),t("p",[e._v("Once you have a cached data instance, you can perform lots of different queries.")]),t("h4",{attrs:{id:"performing-permission-checks",tabindex:"-1"}},[e._v("Performing permission checks "),t("a",{staticClass:"header-anchor",attrs:{href:"#performing-permission-checks"}},[e._v("🔗")])]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs language-java"}},[t("span",{pre:!0,attrs:{class:"hljs-comment"}},[e._v("// run a permission check!")]),e._v("\nTristate checkResult = permissionData.checkPermission("),t("span",{pre:!0,attrs:{class:"hljs-string"}},[e._v('"some.permission.node"')]),e._v(");\n\n"),t("span",{pre:!0,attrs:{class:"hljs-comment"}},[e._v("// the same as what Player#hasPermission would return")]),e._v("\n"),t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("boolean")]),e._v(" checkResultAsBoolean = checkResult.asBoolean();\n")])]),t("p",[e._v('We can put all of this together to create a method that can run a "normal" permission check when passed a '),t("code",{pre:!0},[e._v("User")]),e._v(" and a "),t("code",{pre:!0},[e._v("String")]),e._v(" (the permission).")]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs language-java"}},[t("span",{pre:!0,attrs:{class:"hljs-function"}},[t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("public")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("boolean")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-title"}},[e._v("hasPermission")]),t("span",{pre:!0,attrs:{class:"hljs-params"}},[e._v("(User user, String permission)")]),e._v(" ")]),e._v("{\n "),t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("return")]),e._v(" user.getCachedData().getPermissionData().checkPermission(permission).asBoolean();\n}\n")])]),t("h4",{attrs:{id:"retrieving-prefixessuffixes",tabindex:"-1"}},[e._v("Retrieving prefixes/suffixes "),t("a",{staticClass:"header-anchor",attrs:{href:"#retrieving-prefixessuffixes"}},[e._v("🔗")])]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs language-java"}},[e._v("String prefix = user.getCachedData().getMetaData().getPrefix();\nString suffix = user.getCachedData().getMetaData().getSuffix();\n")])]),t("h4",{attrs:{id:"retrieving-metadata",tabindex:"-1"}},[e._v("Retrieving metadata "),t("a",{staticClass:"header-anchor",attrs:{href:"#retrieving-metadata"}},[e._v("🔗")])]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs language-java"}},[e._v("String metaValue = user.getCachedData().getMetaData().getMetaValue("),t("span",{pre:!0,attrs:{class:"hljs-string"}},[e._v('"some-key"')]),e._v(");\n")])]),t("p",[e._v("These methods work with "),t("code",{pre:!0},[e._v("Group")]),e._v("s too!")]),t("hr"),t("h3",{attrs:{id:"store-and-query-custom-metadata",tabindex:"-1"}},[e._v("Store and query custom metadata "),t("a",{staticClass:"header-anchor",attrs:{href:"#store-and-query-custom-metadata"}},[e._v("🔗")])]),t("p",[e._v("The metadata stored by LuckPerms isn't limited to only a few types. You use the API to easily store any sort of data about players, whilst also taking advantage of the storage / caching systems built into LP.")]),t("h4",{attrs:{id:"setting-metadata",tabindex:"-1"}},[e._v("Setting metadata "),t("a",{staticClass:"header-anchor",attrs:{href:"#setting-metadata"}},[e._v("🔗")])]),t("p",[e._v("You can set metadata by creating & adding a "),t("code",{pre:!0},[e._v("MetaNode")]),e._v(" to a user.")]),t("p",[e._v('To illustrate this, let\'s store a player "level" meta value.')]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs language-java"}},[t("span",{pre:!0,attrs:{class:"hljs-function"}},[t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("public")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("void")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-title"}},[e._v("setLevel")]),t("span",{pre:!0,attrs:{class:"hljs-params"}},[e._v("(Player player, "),t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("int")]),e._v(" level)")]),e._v(" ")]),e._v("{\n "),t("span",{pre:!0,attrs:{class:"hljs-comment"}},[e._v("// obtain a User instance (by any means! see above for other ways)")]),e._v("\n User user = luckPerms.getPlayerAdapter(Player.class).getUser(player);\n\n "),t("span",{pre:!0,attrs:{class:"hljs-comment"}},[e._v("// create a new MetaNode holding the level value")]),e._v("\n "),t("span",{pre:!0,attrs:{class:"hljs-comment"}},[e._v("// of course, this can have context/expiry/etc too!")]),e._v("\n MetaNode node = MetaNode.builder("),t("span",{pre:!0,attrs:{class:"hljs-string"}},[e._v('"level"')]),e._v(", Integer.toString(level)).build();\n\n "),t("span",{pre:!0,attrs:{class:"hljs-comment"}},[e._v("// clear any existing meta nodes with the same key - we want to override")]),e._v("\n user.data().clear(NodeType.META.predicate(mn -> mn.getMetaKey().equals("),t("span",{pre:!0,attrs:{class:"hljs-string"}},[e._v('"level"')]),e._v(")));\n "),t("span",{pre:!0,attrs:{class:"hljs-comment"}},[e._v("// add the new node")]),e._v("\n user.data().add(node);\n\n "),t("span",{pre:!0,attrs:{class:"hljs-comment"}},[e._v("// save!")]),e._v("\n luckPerms.getUserManager().saveUser(user);\n}\n")])]),t("h4",{attrs:{id:"querying-metadata",tabindex:"-1"}},[e._v("Querying metadata "),t("a",{staticClass:"header-anchor",attrs:{href:"#querying-metadata"}},[e._v("🔗")])]),t("p",[e._v("Once the metadata is set, querying it is easy!")]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs language-java"}},[t("span",{pre:!0,attrs:{class:"hljs-function"}},[t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("public")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("int")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-title"}},[e._v("getLevel")]),t("span",{pre:!0,attrs:{class:"hljs-params"}},[e._v("(Player player)")]),e._v(" ")]),e._v("{\n "),t("span",{pre:!0,attrs:{class:"hljs-comment"}},[e._v("// obtain CachedMetaData - the easiest way is via the PlayerAdapter")]),e._v("\n "),t("span",{pre:!0,attrs:{class:"hljs-comment"}},[e._v("// of course, you can get it via a User too if the player is offline.")]),e._v("\n CachedMetaData metaData = luckPerms.getPlayerAdapter(Player.class).getMetaData(player);\n\n "),t("span",{pre:!0,attrs:{class:"hljs-comment"}},[e._v("// query & parse the meta value")]),e._v("\n "),t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("return")]),e._v(" metaData.getMetaValue("),t("span",{pre:!0,attrs:{class:"hljs-string"}},[e._v('"level"')]),e._v(", Integer::parseInt).orElse("),t("span",{pre:!0,attrs:{class:"hljs-number"}},[e._v("0")]),e._v(");\n}\n")])]),t("hr"),t("h3",{attrs:{id:"events",tabindex:"-1"}},[e._v("Events "),t("a",{staticClass:"header-anchor",attrs:{href:"#events"}},[e._v("🔗")])]),t("p",[e._v("LuckPerms uses it's own event system, completely separate from the event systems used by platforms (e.g. Bukkit or Sponge). This means that instead of registering your listener with the server, you must register it directly with LuckPerms.")]),t("p",[e._v("The events supported by LuckPerms are defined as "),t("code",{pre:!0},[e._v("interface")]),e._v("s that extend from "),t("a",{attrs:{href:"https://github.com/LuckPerms/LuckPerms/blob/master/api/src/main/java/net/luckperms/api/event/LuckPermsEvent.java"}},[t("code",{pre:!0},[e._v("LuckPermsEvent")])]),e._v(". They can be found in the "),t("a",{attrs:{href:"https://github.com/LuckPerms/LuckPerms/tree/master/api/src/main/java/net/luckperms/api/event"}},[t("code",{pre:!0},[e._v("net.luckperms.api.event")])]),e._v(" package.")]),t("h4",{attrs:{id:"event-listeners",tabindex:"-1"}},[e._v("Event listeners "),t("a",{staticClass:"header-anchor",attrs:{href:"#event-listeners"}},[e._v("🔗")])]),t("p",[e._v("To listen to events, you first need to obtain the "),t("a",{attrs:{href:"https://github.com/LuckPerms/LuckPerms/blob/master/api/src/main/java/net/luckperms/api/event/EventBus.java"}},[t("code",{pre:!0},[e._v("EventBus")])]),e._v(" instance using "),t("code",{pre:!0},[e._v("LuckPerms#getEventBus")]),e._v(", then register each listener using the "),t("code",{pre:!0},[e._v("subscribe")]),e._v(" method.")]),t("p",[e._v("The "),t("code",{pre:!0},[e._v("subscribe")]),e._v(" method accepts a "),t("code",{pre:!0},[e._v("java.util.function.Consumer")]),e._v(" object - which allows listeners to be defined as:")]),t("ol",[t("li",[t("a",{attrs:{href:"https://docs.oracle.com/javase/tutorial/java/javaOO/lambdaexpressions.html#syntax"}},[e._v("Expression lambdas")])]),t("li",[t("a",{attrs:{href:"https://docs.oracle.com/javase/tutorial/java/javaOO/lambdaexpressions.html#syntax"}},[e._v("Statement lambdas")])]),t("li",[t("a",{attrs:{href:"https://docs.oracle.com/javase/tutorial/java/javaOO/methodreferences.html"}},[e._v("Method references")])])]),t("p",[e._v("It's usually a good idea to create a separate class for your listeners. Here's a short example class demonstrating how to subscribe to events.")]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs language-java"}},[t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("import")]),e._v(" net.luckperms.api.event.EventBus;\n"),t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("import")]),e._v(" net.luckperms.api.event.log.LogPublishEvent;\n"),t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("import")]),e._v(" net.luckperms.api.event.user.UserLoadEvent;\n"),t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("import")]),e._v(" net.luckperms.api.event.user.track.UserPromoteEvent;\n\n"),t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("public")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-class"}},[t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("class")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-title"}},[e._v("MyListener")]),e._v(" ")]),e._v("{\n "),t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("private")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("final")]),e._v(" MyPlugin plugin;\n\n "),t("span",{pre:!0,attrs:{class:"hljs-function"}},[t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("public")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-title"}},[e._v("MyListener")]),t("span",{pre:!0,attrs:{class:"hljs-params"}},[e._v("(MyPlugin plugin, LuckPerms luckPerms)")]),e._v(" ")]),e._v("{\n "),t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("this")]),e._v(".plugin = plugin;\n\n EventBus eventBus = luckPerms.getEventBus();\n\n "),t("span",{pre:!0,attrs:{class:"hljs-comment"}},[e._v("// 1. Subscribe to an event using an expression lambda")]),e._v("\n eventBus.subscribe("),t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("this")]),e._v(".plugin, LogPublishEvent.class, e -> "),t("span",{pre:!0,attrs:{class:"hljs-comment"}},[e._v("/* ... */")]),e._v(");\n\n \t"),t("span",{pre:!0,attrs:{class:"hljs-comment"}},[e._v("// 2. Subscribe to an event using a statement lambda")]),e._v("\n eventBus.subscribe("),t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("this")]),e._v(".plugin, UserLoadEvent.class, e -> {\n "),t("span",{pre:!0,attrs:{class:"hljs-comment"}},[e._v("// ...")]),e._v("\n });\n\n "),t("span",{pre:!0,attrs:{class:"hljs-comment"}},[e._v("// 3. Subscribe to an event using a method reference")]),e._v("\n eventBus.subscribe("),t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("this")]),e._v(".plugin, UserPromoteEvent.class, "),t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("this")]),e._v("::onUserPromote);\n }\n\n "),t("span",{pre:!0,attrs:{class:"hljs-function"}},[t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("private")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("void")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-title"}},[e._v("onUserPromote")]),t("span",{pre:!0,attrs:{class:"hljs-params"}},[e._v("(UserPromoteEvent event)")]),e._v(" ")]),e._v("{\n "),t("span",{pre:!0,attrs:{class:"hljs-comment"}},[e._v("// ...")]),e._v("\n }\n}\n")])]),t("p",[e._v("If your listener is simple, then an expression or statement lambda is best. If your listener is complex, then method references are probably going to be more organised.")]),t("h4",{attrs:{id:"listening-for-changes-to-user-cached-data",tabindex:"-1"}},[e._v("Listening for changes to user cached data "),t("a",{staticClass:"header-anchor",attrs:{href:"#listening-for-changes-to-user-cached-data"}},[e._v("🔗")])]),t("p",[e._v("If you have a system that depends on a users cached data (e.g. their prefix or permission state), then you may find it necessary to perform some action in your plugin when the data changes (e.g. invalidate or update a cache). The best & most simple event to use to achieve this is the "),t("a",{attrs:{href:"https://github.com/LuckPerms/LuckPerms/blob/master/api/src/main/java/net/luckperms/api/event/user/UserDataRecalculateEvent.java"}},[t("code",{pre:!0},[e._v("UserDataRecalculateEvent")])]),e._v(".")]),t("p",[e._v("This is a simple event that is \"called when a User's cached data is refreshed\". It doesn't give any information about what caused the refresh - just that it happened!")]),t("h4",{attrs:{id:"listening-for-changes-to-permissionsparent-groupsetc",tabindex:"-1"}},[e._v("Listening for changes to permissions/parent groups/etc "),t("a",{staticClass:"header-anchor",attrs:{href:"#listening-for-changes-to-permissionsparent-groupsetc"}},[e._v("🔗")])]),t("p",[e._v("Recall from earlier that "),t("a",{attrs:{href:"#the-basics-of-node"}},[e._v("all user/group data is stored as "),t("code",{pre:!0},[e._v("Node")]),e._v("s")]),e._v(" - introducing:")]),t("ul",[t("li",[e._v("the "),t("a",{attrs:{href:"https://github.com/LuckPerms/LuckPerms/blob/master/api/src/main/java/net/luckperms/api/event/node/NodeAddEvent.java"}},[t("code",{pre:!0},[e._v("NodeAddEvent")])]),e._v(" - called when a node is added to a user/group")]),t("li",[e._v("the "),t("a",{attrs:{href:"https://github.com/LuckPerms/LuckPerms/blob/master/api/src/main/java/net/luckperms/api/event/node/NodeRemoveEvent.java"}},[t("code",{pre:!0},[e._v("NodeRemoveEvent")])]),e._v(" - called when a node is removed from a user/group")]),t("li",[e._v("the "),t("a",{attrs:{href:"https://github.com/LuckPerms/LuckPerms/blob/master/api/src/main/java/net/luckperms/api/event/node/NodeClearEvent.java"}},[t("code",{pre:!0},[e._v("NodeClearEvent")])]),e._v(" - called when a user/group has all/some their existing nodes removed")])]),t("p",[e._v("All of these events extend from "),t("a",{attrs:{href:"https://github.com/LuckPerms/LuckPerms/blob/master/api/src/main/java/net/luckperms/api/event/node/NodeMutateEvent.java"}},[t("code",{pre:!0},[e._v("NodeMutateEvent")])]),e._v(" which defines the base properties.")]),t("p",[e._v("These events cover all possible changes that could be made to a user/groups LuckPerms data. The trick is to figure out which event you need, and how to filter down to only catch the desired changes.")]),t("p",[e._v("For example, to catch "),t("em",[e._v("prefixes")]),e._v(" being added to "),t("em",[e._v("groups")]),e._v(", you would need to listen to the "),t("code",{pre:!0},[e._v("NodeAddEvent")]),e._v(", then check if "),t("code",{pre:!0},[e._v("e.isGroup() && e.getNode().getType() == NodeType.PREFIX")]),e._v(". Of course, afterwards, you could then cast "),t("code",{pre:!0},[e._v("((Group) e.getTarget())")]),e._v(" and "),t("code",{pre:!0},[e._v("((PrefixNode) node)")]),e._v(" to extract further information.")]),t("p",[e._v("To catch both additions and removals, you can either subscribe to the generic "),t("code",{pre:!0},[e._v("NodeMutateEvent")]),e._v(", or to both the add and remove events separately.")]),t("p",[e._v("There is an "),t("a",{attrs:{href:"https://github.com/LuckPerms/api-cookbook/blob/master/src/main/java/me/lucko/lpcookbook/listener/PlayerNodeChangeListener.java"}},[e._v("example listener in the API Cookbook")]),e._v(" which demonstrates this nicely.")])])}],o=r(845),i={},n=(0,o.A)(i,s,a,!1,null,null,null),l=n.exports},6738:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return l}});var s=function(){var e=this;e._self._c;return e._m(0)},a=[function(){var e=this,t=e._self._c;return t("section",[t("h3",{attrs:{id:"intro",tabindex:"-1"}},[e._v("Intro "),t("a",{staticClass:"header-anchor",attrs:{href:"#intro"}},[e._v("🔗")])]),t("p",[e._v("LuckPerms has a complete developer API, which allows other plugins on the server to read and modify LuckPerms data, and easily integrate LuckPerms deeply into existing plugins and systems.")]),t("h3",{attrs:{id:"versioning",tabindex:"-1"}},[e._v("Versioning "),t("a",{staticClass:"header-anchor",attrs:{href:"#versioning"}},[e._v("🔗")])]),t("p",[e._v("The API uses "),t("a",{attrs:{href:"https://semver.org/"}},[e._v("Semantic Versioning")]),e._v(", meaning whenever a non-backwards compatible change is made, the major version will increment. You can rest assured knowing your integration will not break between versions, providing the major version remains the same.")]),t("p",[e._v("The current API release is "),t("code",{pre:!0},[e._v("5.5")]),e._v(".")]),t("ul",[t("li",[e._v("The API package in LuckPerms is "),t("code",{pre:!0},[e._v("net.luckperms.api")]),e._v(".")]),t("li",[e._v("JavaDocs are available either in "),t("a",{attrs:{href:"https://javadoc.io/doc/net.luckperms/api/latest/"}},[e._v("a standard JavaDoc layout")]),e._v(", or within the API "),t("a",{attrs:{href:"https://github.com/LuckPerms/LuckPerms/tree/master/api/src/main/java/net/luckperms/api"}},[e._v("source code")]),e._v(".")])]),t("h4",{attrs:{id:"changelogs",tabindex:"-1"}},[e._v("Changelogs "),t("a",{staticClass:"header-anchor",attrs:{href:"#changelogs"}},[e._v("🔗")])]),t("ul",[t("li",[e._v("Version "),t("code",{pre:!0},[e._v("2.x")]),e._v(" represented the initial release of the API.")]),t("li",[e._v("Version "),t("code",{pre:!0},[e._v("3.x")]),e._v(" (19th Feb 17) introduced a number of backwards incompatible changes. ["),t("a",{attrs:{href:"https://gist.github.com/lucko/fdf6ae4b2d9e466d8103dd9c68e5db9e"}},[e._v("changelog")]),e._v("]")]),t("li",[e._v("Version "),t("code",{pre:!0},[e._v("4.x")]),e._v(" (7th Nov 17) introduced a number of backwards incompatible changes. ["),t("a",{attrs:{href:"https://gist.github.com/lucko/34c5c3c52ad80f8541395a096a937e91"}},[e._v("changelog")]),e._v("]")]),t("li",[e._v("Version "),t("code",{pre:!0},[e._v("5.x")]),e._v(" was a complete rewrite of the API. Bridging tools are provided to maintain compatibility with older versions.")])]),t("h2",{attrs:{id:"quick-start-guide",tabindex:"-1"}},[e._v("Quick start guide "),t("a",{staticClass:"header-anchor",attrs:{href:"#quick-start-guide"}},[e._v("🔗")])]),t("ul",[t("li",[t("a",{attrs:{href:"#adding-luckperms-to-your-project"}},[e._v("Adding LuckPerms to your project")]),t("ul",[t("li",[t("a",{attrs:{href:"#maven"}},[e._v("Maven")])]),t("li",[t("a",{attrs:{href:"#gradle"}},[e._v("Gradle")])]),t("li",[t("a",{attrs:{href:"#manual"}},[e._v("Manual")])])])]),t("li",[t("a",{attrs:{href:"#obtaining-an-instance-of-the-api"}},[e._v("Obtaining an instance of the API")]),t("ul",[t("li",[t("a",{attrs:{href:"#using-the-bukkit-servicesmanager"}},[e._v("Using the Bukkit ServicesManager")])]),t("li",[t("a",{attrs:{href:"#using-the-sponge-servicesmanager"}},[e._v("Using the Sponge ServicesManager")])]),t("li",[t("a",{attrs:{href:"#using-the-singleton-static-access"}},[e._v("Using the singleton")])])])]),t("li",[t("a",{attrs:{href:"#useful-information"}},[e._v("Useful information")]),t("ul",[t("li",[t("a",{attrs:{href:"#thread-safety"}},[e._v("Thread safety")])]),t("li",[t("a",{attrs:{href:"#immutability"}},[e._v("Immutability")])]),t("li",[t("a",{attrs:{href:"#blocking-operations"}},[e._v("Blocking operations")])]),t("li",[t("a",{attrs:{href:"#using-completablefutures"}},[e._v("Using CompletableFutures")])]),t("li",[t("a",{attrs:{href:"#asynchronous-events--callbacks"}},[e._v("Asynchronous events & callbacks")])])])])]),t("hr"),t("h3",{attrs:{id:"adding-luckperms-to-your-project",tabindex:"-1"}},[e._v("Adding LuckPerms to your project "),t("a",{staticClass:"header-anchor",attrs:{href:"#adding-luckperms-to-your-project"}},[e._v("🔗")])]),t("p",[e._v("The API artifact is published to the "),t("a",{attrs:{href:"http://central.sonatype.org/"}},[e._v("Maven Central")]),e._v(" repository.")]),t("h4",{attrs:{id:"maven",tabindex:"-1"}},[e._v("Maven "),t("a",{staticClass:"header-anchor",attrs:{href:"#maven"}},[e._v("🔗")])]),t("p",[e._v("If you're using Maven, simply add this to the "),t("code",{pre:!0},[e._v("dependencies")]),e._v(" section of your POM.")]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs language-xml"}},[t("span",{pre:!0,attrs:{class:"hljs-tag"}},[e._v("<"),t("span",{pre:!0,attrs:{class:"hljs-name"}},[e._v("dependencies")]),e._v(">")]),e._v("\n "),t("span",{pre:!0,attrs:{class:"hljs-tag"}},[e._v("<"),t("span",{pre:!0,attrs:{class:"hljs-name"}},[e._v("dependency")]),e._v(">")]),e._v("\n "),t("span",{pre:!0,attrs:{class:"hljs-tag"}},[e._v("<"),t("span",{pre:!0,attrs:{class:"hljs-name"}},[e._v("groupId")]),e._v(">")]),e._v("net.luckperms"),t("span",{pre:!0,attrs:{class:"hljs-tag"}},[e._v("")]),e._v("\n "),t("span",{pre:!0,attrs:{class:"hljs-tag"}},[e._v("<"),t("span",{pre:!0,attrs:{class:"hljs-name"}},[e._v("artifactId")]),e._v(">")]),e._v("api"),t("span",{pre:!0,attrs:{class:"hljs-tag"}},[e._v("")]),e._v("\n "),t("span",{pre:!0,attrs:{class:"hljs-tag"}},[e._v("<"),t("span",{pre:!0,attrs:{class:"hljs-name"}},[e._v("version")]),e._v(">")]),e._v("5.5"),t("span",{pre:!0,attrs:{class:"hljs-tag"}},[e._v("")]),e._v("\n "),t("span",{pre:!0,attrs:{class:"hljs-tag"}},[e._v("<"),t("span",{pre:!0,attrs:{class:"hljs-name"}},[e._v("scope")]),e._v(">")]),e._v("provided"),t("span",{pre:!0,attrs:{class:"hljs-tag"}},[e._v("")]),e._v("\n "),t("span",{pre:!0,attrs:{class:"hljs-tag"}},[e._v("")]),e._v("\n"),t("span",{pre:!0,attrs:{class:"hljs-tag"}},[e._v("")]),e._v("\n")])]),t("h4",{attrs:{id:"gradle",tabindex:"-1"}},[e._v("Gradle "),t("a",{staticClass:"header-anchor",attrs:{href:"#gradle"}},[e._v("🔗")])]),t("p",[e._v("If you're using Gradle, you need to add these lines to your build script.")]),t("h5",{attrs:{id:"groovy-dsl",tabindex:"-1"}},[e._v("Groovy DSL: "),t("a",{staticClass:"header-anchor",attrs:{href:"#groovy-dsl"}},[e._v("🔗")])]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs language-gradle"}},[t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("repositories")]),e._v(" {\n mavenCentral()\n}\n\n"),t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("dependencies")]),e._v(" {\n compileOnly "),t("span",{pre:!0,attrs:{class:"hljs-string"}},[e._v("'net.luckperms:api:5.5'")]),e._v("\n}\n")])]),t("h5",{attrs:{id:"kotlin-dsl",tabindex:"-1"}},[e._v("Kotlin DSL: "),t("a",{staticClass:"header-anchor",attrs:{href:"#kotlin-dsl"}},[e._v("🔗")])]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs language-gradle"}},[t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("repositories")]),e._v(" {\n mavenCentral()\n}\n\n"),t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("dependencies")]),e._v(" {\n compileOnly("),t("span",{pre:!0,attrs:{class:"hljs-string"}},[e._v('"net.luckperms:api:5.5"')]),e._v(")\n}\n")])]),t("h4",{attrs:{id:"manual",tabindex:"-1"}},[e._v("Manual "),t("a",{staticClass:"header-anchor",attrs:{href:"#manual"}},[e._v("🔗")])]),t("p",[e._v("If you want to manually add the API dependency to your classpath, you can obtain the jar by:")]),t("ol",[t("li",[e._v("Navigating to "),t("a",{attrs:{href:"https://repo1.maven.org/maven2/net/luckperms/api/"}},[t("code",{pre:!0},[e._v("https://repo1.maven.org/maven2/net/luckperms/api/")])])]),t("li",[e._v("Selecting the version you wish to use")]),t("li",[e._v("Downloading the jar titled "),t("code",{pre:!0},[e._v("api-x.x.jar")])])]),t("hr"),t("h3",{attrs:{id:"obtaining-an-instance-of-the-api",tabindex:"-1"}},[e._v("Obtaining an instance of the API "),t("a",{staticClass:"header-anchor",attrs:{href:"#obtaining-an-instance-of-the-api"}},[e._v("🔗")])]),t("p",[e._v("The root API interface is "),t("code",{pre:!0},[e._v("LuckPerms")]),e._v(". You need to obtain an instance of this interface in order to do anything.")]),t("p",[e._v("It can be obtained in a number of ways.")]),t("h4",{attrs:{id:"using-the-bukkit-servicesmanager",tabindex:"-1"}},[e._v("Using the Bukkit ServicesManager "),t("a",{staticClass:"header-anchor",attrs:{href:"#using-the-bukkit-servicesmanager"}},[e._v("🔗")])]),t("p",[e._v("When the plugin is enabled, an instance of "),t("code",{pre:!0},[e._v("LuckPerms")]),e._v(" will be provided in the Bukkit ServicesManager. (obviously you need to be writing your plugin for Bukkit!)")]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs language-java"}},[e._v("RegisteredServiceProvider provider = Bukkit.getServicesManager().getRegistration(LuckPerms.class);\n"),t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("if")]),e._v(" (provider != "),t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("null")]),e._v(") {\n LuckPerms api = provider.getProvider();\n \n}\n")])]),t("h4",{attrs:{id:"using-the-sponge-servicesmanager",tabindex:"-1"}},[e._v("Using the Sponge ServicesManager "),t("a",{staticClass:"header-anchor",attrs:{href:"#using-the-sponge-servicesmanager"}},[e._v("🔗")])]),t("p",[e._v("When the plugin is enabled, an instance of "),t("code",{pre:!0},[e._v("LuckPerms")]),e._v(" will be provided in the Sponge ServicesManager. (obviously you need to be writing your plugin for Sponge!)")]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs language-java"}},[e._v("Optional> provider = Sponge.getServiceManager().getRegistration(LuckPerms.class);\n"),t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("if")]),e._v(" (provider.isPresent()) {\n LuckPerms api = provider.get().getProvider();\n \n}\n")])]),t("h4",{attrs:{id:"using-the-singleton-static-access",tabindex:"-1"}},[e._v("Using the singleton (static access) "),t("a",{staticClass:"header-anchor",attrs:{href:"#using-the-singleton-static-access"}},[e._v("🔗")])]),t("p",[e._v("When the plugin is enabled, an instance of "),t("code",{pre:!0},[e._v("LuckPerms")]),e._v(" can be obtained statically from the "),t("code",{pre:!0},[e._v("LuckPermsProvider")]),e._v(" class. (this will work on all platforms)")]),t("p",[t("strong",[e._v("Note:")]),e._v(" this method will throw an "),t("code",{pre:!0},[e._v("IllegalStateException")]),e._v(" if the API is not loaded.")]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs language-java"}},[e._v("LuckPerms api = LuckPermsProvider.get();\n")])]),t("hr"),t("h3",{attrs:{id:"useful-information",tabindex:"-1"}},[e._v("Useful information "),t("a",{staticClass:"header-anchor",attrs:{href:"#useful-information"}},[e._v("🔗")])]),t("p",[e._v("Now you've added the API classes to your project, and obtained an instance of the "),t("code",{pre:!0},[e._v("LuckPerms")]),e._v(", you're almost ready to start using the API. However, before you go any further, please make sure you read and understand the information below.")]),t("h4",{attrs:{id:"thread-safety",tabindex:"-1"}},[e._v("Thread safety "),t("a",{staticClass:"header-anchor",attrs:{href:"#thread-safety"}},[e._v("🔗")])]),t("ul",[t("li",[e._v("All LuckPerms internals are thread-safe. You can safely interact with the API from async scheduler tasks (or just generally from other threads)")]),t("li",[e._v("This also extends to the permission querying methods in Bukkit/Bungee/Sponge. These can be safely called async when LuckPerms is being used as the permissions plugin.")])]),t("h4",{attrs:{id:"immutability",tabindex:"-1"}},[e._v("Immutability "),t("a",{staticClass:"header-anchor",attrs:{href:"#immutability"}},[e._v("🔗")])]),t("ul",[t("li",[e._v("In cases where methods return classes from the Java collections framework, assume that the returned methods are always immutable, unless indicated otherwise. (in the JavaDocs)")]),t("li",[e._v("This means that you cannot make changes to any returned collections, and that the collections are only an accurate representation of the underlying data at the time of the method call.")])]),t("h4",{attrs:{id:"blocking-operations",tabindex:"-1"}},[e._v("Blocking operations "),t("a",{staticClass:"header-anchor",attrs:{href:"#blocking-operations"}},[e._v("🔗")])]),t("ul",[t("li",[e._v('Some methods are not "main thread friendly", meaning that if they are called from the main Minecraft Server thread, the server will lag.')]),t("li",[e._v("This is because many methods conduct I/O with either the file system or the network.")]),t("li",[e._v("In most cases, these methods return "),t("a",{attrs:{href:"https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/CompletableFuture.html"}},[e._v("CompletableFutures")]),e._v(".")]),t("li",[e._v("Futures can be an initially complex paradigm for some users - however, it is crucial that you have at least a basic understanding of how they work before attempting to use them.")]),t("li",[e._v("As a general rule, it is advised that if it's convenient to do so, you conduct as much work with the API as possible within async scheduler tasks. Some methods don't return futures, but may still involve a number of relatively complex computations.")])]),t("h4",{attrs:{id:"using-completablefutures",tabindex:"-1"}},[e._v("Using CompletableFutures "),t("a",{staticClass:"header-anchor",attrs:{href:"#using-completablefutures"}},[e._v("🔗")])]),t("p",[e._v("This is a super quick guide. If you'd like more comprehensive info, see the "),t("a",{attrs:{href:"https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/CompletableFuture.html"}},[e._v("CompletableFuture")]),e._v(" or "),t("a",{attrs:{href:"https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/CompletionStage.html"}},[e._v("CompletionStage")]),e._v(" JavaDoc pages.")]),t("p",[e._v("For the purposes of explaining, take the following method in the "),t("code",{pre:!0},[e._v("ActionLogger")]),e._v(" class.")]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs language-java"}},[t("span",{pre:!0,attrs:{class:"hljs-function"}},[e._v("CompletableFuture "),t("span",{pre:!0,attrs:{class:"hljs-title"}},[e._v("getLog")]),t("span",{pre:!0,attrs:{class:"hljs-params"}},[e._v("()")])]),e._v(";\n")])]),t("p",[e._v("After calling the method, we get a "),t("code",{pre:!0},[e._v("CompletableFuture")]),e._v(" - the object we actually want is the "),t("code",{pre:!0},[e._v("ActionLog")]),e._v(". The "),t("code",{pre:!0},[e._v("CompletableFuture")]),e._v(" represents the result of some computation (in this case the computation to obtain the ActionLog), and provides us with methods to obtain the "),t("code",{pre:!0},[e._v("ActionLog")]),e._v(" object.")]),t("p",[e._v("If the context of our method call is already asynchronous (if we're calling the method from an async scheduler task), then we can do-away with the future entirely.")]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs language-java"}},[t("span",{pre:!0,attrs:{class:"hljs-comment"}},[e._v('/*\n Calling this method "requests" an ActionLog from the API.\n \n However, it\'s unlikely that the log will be available immediately...\n We need to wait for it to be supplied.\n*/')]),e._v("\nCompletableFuture logFuture = actionLogger.getLog();\n\n"),t("span",{pre:!0,attrs:{class:"hljs-comment"}},[e._v("/*\n Since we're already on an async thread, it doesn't matter how long we\n have to wait for the elusive Log to show up.\n \n The #join method will block - and wait until the Log has been supplied,\n and then return it.\n \n If for whatever reason the process to obtain a ActionLog threw an exception,\n this method will rethrow an the same exception wrapped in a CompletionException\n*/")]),e._v("\nActionLog log = logFuture.join();\n")])]),t("p",[e._v("An alternative to using "),t("code",{pre:!0},[e._v("#join")]),e._v(" is to register a callback with the CompletableFuture, to be executed once the "),t("code",{pre:!0},[e._v("Log")]),e._v(" is supplied.")]),t("p",[e._v("If we need to use the instance on the main server thread, then a special executor can be passed to the callback is executed on the server thread.")]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs language-java"}},[t("span",{pre:!0,attrs:{class:"hljs-comment"}},[e._v("// Create an executor that will run our callback on the server thread.")]),e._v("\nExecutor executor = runnable -> Bukkit.getScheduler().runTask(plugin, runnable);\n\n"),t("span",{pre:!0,attrs:{class:"hljs-comment"}},[e._v("// Register a callback with the future.")]),e._v("\nlogFuture.whenCompleteAsync("),t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("new")]),e._v(" BiConsumer() { "),t("span",{pre:!0,attrs:{class:"hljs-comment"}},[e._v("// can be reduced to a lambda, I've left it as an anonymous class for clarity")]),e._v("\n "),t("span",{pre:!0,attrs:{class:"hljs-function"}},[e._v("@Override\n "),t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("public")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("void")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-title"}},[e._v("accept")]),t("span",{pre:!0,attrs:{class:"hljs-params"}},[e._v("(ActionLog log, Throwable exception)")]),e._v(" ")]),e._v("{\n "),t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("if")]),e._v(" (exception != "),t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("null")]),e._v(") {\n "),t("span",{pre:!0,attrs:{class:"hljs-comment"}},[e._v("// There was some error whilst getting the log.")]),e._v("\n "),t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("return")]),e._v(";\n }\n\n "),t("span",{pre:!0,attrs:{class:"hljs-comment"}},[e._v("// Use the log for something...")]),e._v("\n }\n}, executor);\n")])]),t("p",[e._v("If you don't care about errors, this can be simplified further.")]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs language-java"}},[e._v("logFuture.thenAcceptAsync(log -> { "),t("span",{pre:!0,attrs:{class:"hljs-comment"}},[e._v("/* Use the log for something */")]),e._v(" }, executor);\n")])]),t("p",[e._v("The CompletableFuture class can initially be very confusing to use (it's still a relatively new API in Java!), however it is a great way to encapsulate async computations, and in the case of Minecraft, ensures that users don't accidentally block the server thread waiting on lengthy I/O calls.")]),t("h4",{attrs:{id:"asynchronous-events--callbacks",tabindex:"-1"}},[e._v("Asynchronous events & callbacks "),t("a",{staticClass:"header-anchor",attrs:{href:"#asynchronous-events--callbacks"}},[e._v("🔗")])]),t("ul",[t("li",[e._v("The vast majority of LuckPerms' work is done in async tasks away from the server thread.")]),t("li",[e._v("With that in mind, it would be silly to call LuckPerms events synchronously - meaning that, without exception, all events listeners are called asynchronously.")])]),t("p",[e._v("Please keep in mind that many parts of Bukkit, Sponge and the Minecraft server in general are not thread-safe, and should only be interacted with from the server thread. If you need to use Bukkit or Sponge methods from within LuckPerms event listeners or callbacks, you need to perform your action using the scheduler.")])])}],o=r(845),i={},n=(0,o.A)(i,s,a,!1,null,null,null),l=n.exports},5764:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return l}});var s=function(){var e=this;e._self._c;return e._m(0)},a=[function(){var e=this,t=e._self._c;return t("section",[t("p",[e._v('Extensions are a way to "bolt on" additional functionality to the plugin. Extensions work independently of the platform LuckPerms is running on (i.e. Bukkit, Sponge, etc) and can therefore be installed in the same way on all platforms. They use the native API provided by the plugin.')]),t("p",[e._v('They\'re essentially "plugins for a plugin" - a bit confusing, and maybe overkill - but it seems to be a good solution to me!')]),t("hr"),t("h3",{attrs:{id:"installing-extensions",tabindex:"-1"}},[e._v("Installing extensions "),t("a",{staticClass:"header-anchor",attrs:{href:"#installing-extensions"}},[e._v("🔗")])]),t("p",[e._v("Extensions come in the form of "),t("code",{pre:!0},[e._v(".jar")]),e._v(" files. To install them:")]),t("ol",[t("li",[e._v("Navigate to the main "),t("code",{pre:!0},[e._v("/LuckPerms/")]),e._v(" folder (the one where "),t("code",{pre:!0},[e._v("config.yml")]),e._v(" is.)")]),t("li",[e._v("Create a sub-folder called "),t("code",{pre:!0},[e._v("extensions")])]),t("li",[e._v("Add the extension "),t("code",{pre:!0},[e._v(".jar")]),e._v(" file to the extensions folder.")]),t("li",[e._v("Restart the server.")])]),t("hr"),t("h2",{attrs:{id:"official-extensions",tabindex:"-1"}},[e._v("Official extensions "),t("a",{staticClass:"header-anchor",attrs:{href:"#official-extensions"}},[e._v("🔗")])]),t("h3",{attrs:{id:"rest-api",tabindex:"-1"}},[e._v("REST API "),t("a",{staticClass:"header-anchor",attrs:{href:"#rest-api"}},[e._v("🔗")])]),t("p",[e._v("See "),t("a",{attrs:{href:"Standalone-and-REST-API"}},[e._v("here")]),e._v(" for info. 😃")]),t("h3",{attrs:{id:"deprecated-extensions",tabindex:"-1"}},[e._v("Deprecated extensions "),t("a",{staticClass:"header-anchor",attrs:{href:"#deprecated-extensions"}},[e._v("🔗")])]),t("p",[e._v("The extensions below were released approximately 6 years ago (as of June 2025) to help ease the upgrade burden from LuckPerms v4 to LuckPerms v5. We now consider that users have had long enough to update, and they are now deprecated and no longer supported.")]),t("ul",[t("li",[t("a",{attrs:{href:"https://github.com/LuckPerms/extension-legacy-api"}},[e._v("extension-legacy-api")])]),t("li",[t("a",{attrs:{href:"https://github.com/LuckPerms/extension-default-assignments"}},[e._v("extension-default-assignments")])])])])}],o=r(845),i={},n=(0,o.A)(i,s,a,!1,null,null,null),l=n.exports},1207:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return l}});var s=function(){var e=this;e._self._c;return e._m(0)},a=[function(){var e=this,t=e._self._c;return t("section",[t("h3",{attrs:{id:"summary",tabindex:"-1"}},[e._v("Summary "),t("a",{staticClass:"header-anchor",attrs:{href:"#summary"}},[e._v("🔗")])]),t("p",[e._v("The tl;dr is...")]),t("ul",[t("li",[e._v("LuckPerms uses an internet connection to securely download required libraries and translation bundles when it first starts")]),t("li",[e._v("LuckPerms will send data to a external service in order to provide certain functions ("),t("code",{pre:!0},[e._v("/lp editor")]),e._v(" etc)")]),t("li",[e._v("LuckPerms does not report to metrics or analytics services")])]),t("p",[e._v("The specific nature of these interactions and usages are documented below.")]),t("hr"),t("h3",{attrs:{id:"downloading-libraries",tabindex:"-1"}},[e._v("Downloading libraries "),t("a",{staticClass:"header-anchor",attrs:{href:"#downloading-libraries"}},[e._v("🔗")])]),t("p",[e._v("LuckPerms makes use of a lot of libraries - all of which are listed "),t("a",{attrs:{href:"Credits#open-source"}},[e._v("here")]),e._v(".")]),t("p",[e._v('The plugin can be configured and used in a number of ways. For example, it supports a number of storage methods, each of which require their own set of drivers. Most plugins simply bundle (or "shade") these libraries into the plugin jar file - however, this is not practical for LuckPerms, as the high number of libraries would produce a huge final jar size. The solution is to download the '),t("em",[e._v("required")]),e._v(" libraries at runtime, depending on the configuration being used.")]),t("h5",{attrs:{id:"the-download-process",tabindex:"-1"}},[e._v("The download process "),t("a",{staticClass:"header-anchor",attrs:{href:"#the-download-process"}},[e._v("🔗")])]),t("ul",[t("li",[e._v("Downloads will only be attempted for libraries which are required")]),t("li",[e._v("Downloaded binaries are cached in the "),t("code",{pre:!0},[e._v("/LuckPerms/libs/")]),e._v(" folder after the initial download. If a library is already present here, a connection to the download server will not be attempted.")]),t("li",[e._v("The URL and version of libraries is hardcoded within the plugin - they will never automatically update.")])]),t("p",[e._v("All libraries are downloaded from "),t("a",{attrs:{href:"https://libraries.luckperms.net/"}},[e._v("https://libraries.luckperms.net/")]),e._v(" or "),t("a",{attrs:{href:"https://repo1.maven.org/maven2/"}},[e._v("https://repo1.maven.org/maven2/")]),e._v('. The latter is a public software repository commonly referred to as the "Central Repository" or "Maven Central", and the former is a repository owned and controlled by the LuckPerms project which mirrors Maven Central.')]),t("p",[e._v("Maven Central is a trustworthy source - it is used by most Java developers and open source projects.")]),t("p",[e._v("As a precautionary measure in case either of the sites become compromised, the plugin will perform additional verification during the download process to ensure that libraries are intact and as expected.")]),t("h5",{attrs:{id:"the-verification-process",tabindex:"-1"}},[e._v("The verification process "),t("a",{staticClass:"header-anchor",attrs:{href:"#the-verification-process"}},[e._v("🔗")])]),t("p",[e._v("Each dependency that can be downloaded at runtime, along with it's version and location within Maven Central is defined in "),t("a",{attrs:{href:"https://github.com/LuckPerms/LuckPerms/blob/master/common/src/main/java/me/lucko/luckperms/common/dependencies/Dependency.java"}},[e._v("this source code file")]),e._v(" in LuckPerms.")]),t("p",[e._v("Each entry also includes a SHA-256 hash of the dependency file, at the time the release was first included within LuckPerms. This hash is used as a checksum for downloaded files.")]),t("p",[e._v("When a dependency is downloaded from the repository, the same hashing process is performed on the downloaded data, and the hash of this is compared with the checksum of the dependency.")]),t("p",[e._v("The integrity of the downloaded file can be assumed to be ok if the two hashes are equal. If the hashes are not equal, then one of two things has most likely happened:")]),t("ul",[t("li",[e._v("Only a part of the file has been downloaded, something went wrong in the download process")]),t("li",[e._v("The dependency file has been tampered with in some way, and should not be trusted")])]),t("p",[e._v("In both cases, the downloaded binary data is discarded by LuckPerms, and the plugins startup is cancelled.")]),t("p",[e._v("These checks are put in place to minimise the risk of malicious code from being executed should the download servers become compromised. It effectively eliminates the possibility of "),t("a",{attrs:{href:"https://en.wikipedia.org/wiki/Arbitrary_code_execution"}},[e._v("arbitrary code execution")]),e._v(" taking place, and makes the system just as secure as shading the dependencies directly into the jar.")]),t("hr"),t("h3",{attrs:{id:"downloading-translation-bundles",tabindex:"-1"}},[e._v("Downloading translation bundles "),t("a",{staticClass:"header-anchor",attrs:{href:"#downloading-translation-bundles"}},[e._v("🔗")])]),t("p",[e._v("The messages used in LuckPerms commands have kindly been "),t("a",{attrs:{href:"Locale-and-Translations"}},[e._v("translated by the community")]),e._v(".")]),t("p",[e._v('These translations are automatically exported, compiled into "translation bundle" files, and then made available from an API endpoint. This means that translations can be added/improved over time, without requiring a recompilation of the plugin.')]),t("p",[e._v("The translation bundles are updated automatically (roughly every 24 hours) by the plugin. This is a relatively safe process, as the translations themselves do not affect how the plugin works.")]),t("p",[e._v("The functionality can be disabled in the LuckPerms config.")]),t("hr"),t("h3",{attrs:{id:"web-apps-lp-editor-etc",tabindex:"-1"}},[e._v("Web apps ("),t("code",{pre:!0},[e._v("/lp editor")]),e._v(" etc) "),t("a",{staticClass:"header-anchor",attrs:{href:"#web-apps-lp-editor-etc"}},[e._v("🔗")])]),t("p",[e._v("LuckPerms has a number of web apps that are hosted centrally for everyone to use.")]),t("ul",[t("li",[t("strong",[e._v("Web Editor")]),e._v(" - an editor for permissions data")]),t("li",[t("strong",[e._v("Verbose Viewer")]),e._v(" - a viewer for verbose recording logs")]),t("li",[t("strong",[e._v("Tree Viewer")]),e._v(" - a viewer to visualise tree permission structures")])]),t("p",[e._v("The clients for each of these applications can be found at")]),t("ul",[t("li",[t("a",{attrs:{href:"https://luckperms.net/editor/"}},[e._v("https://luckperms.net/editor/")])]),t("li",[t("a",{attrs:{href:"https://luckperms.net/verbose/"}},[e._v("https://luckperms.net/verbose/")])]),t("li",[t("a",{attrs:{href:"https://luckperms.net/treeview/"}},[e._v("https://luckperms.net/treeview/")])])]),t("p",[e._v("respectively.")]),t("p",[e._v("The source code for these sites is freely available here: "),t("a",{attrs:{href:"https://github.com/LuckPerms/LuckPermsWeb"}},[e._v("https://github.com/LuckPerms/LuckPermsWeb")])]),t("p",[e._v("Communication between the editors/viewers and the plugin (which runs on your Minecraft server) is performed using isolated data payloads. There is never any direct communication between the editors/viewers and the server.")]),t("p",[e._v("You can freely share the links to editor sessions - any changes must always be applied by running a command on the Minecraft server, or by explictly trusting the editor session.")]),t("p",[e._v("Data is posted to & read from https://usercontent.luckperms.net - effectively a very simple content storage system. This service is written and hosted by Luck.")]),t("p",[e._v("Again, the source is freely available here: https://github.com/lucko/bytebin")]),t("p",[e._v("Additional technical details can be found "),t("a",{attrs:{href:"Web-Editor-Technical-Details"}},[e._v("here")]),e._v(".")]),t("hr"),t("h3",{attrs:{id:"metrics-and-auto-updaters",tabindex:"-1"}},[e._v("Metrics and auto-updaters "),t("a",{staticClass:"header-anchor",attrs:{href:"#metrics-and-auto-updaters"}},[e._v("🔗")])]),t("ul",[t("li",[e._v("LuckPerms "),t("strong",[e._v("does not")]),e._v(" and never will report back to analytics or monitoring services.")]),t("li",[e._v("LuckPerms "),t("strong",[e._v("does not")]),e._v(" and never will automatically check for (or automatically install 😠) updates.")])])])}],o=r(845),i={},n=(0,o.A)(i,s,a,!1,null,null,null),l=n.exports},8407:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return l}});var s=function(){var e=this;e._self._c;return e._m(0)},a=[function(){var e=this,t=e._self._c;return t("section",[t("h1",{attrs:{id:"frequently-asked-questions",tabindex:"-1"}},[e._v("Frequently Asked Questions "),t("a",{staticClass:"header-anchor",attrs:{href:"#frequently-asked-questions"}},[e._v("🔗")])]),t("p",[e._v("These are some of the questions that are asked quite frequently. Please check to see if your question has already been answered here before seeking support.")]),t("p",[t("strong",[e._v("Tip: Always check your console for any errors during start up or whenever something goes wrong!")])]),t("hr"),t("h3",{attrs:{id:"why-are-permissions-not-working",tabindex:"-1"}},[e._v("Why are permissions not working? "),t("a",{staticClass:"header-anchor",attrs:{href:"#why-are-permissions-not-working"}},[e._v("🔗")])]),t("p",[e._v("First, "),t("em",[e._v("make sure LuckPerms is your only permission plugin!")]),e._v(" We have had many issues where people will install LuckPerms and not remove another permission manager like PermissionsEx. You "),t("em",[e._v("must")]),e._v(" remove any other permission plugins otherwise LuckPerms will not be used for permission checking. The only exception is when you are performing a migration, in which case you must have both permission plugins installed but please remember to remove the old plugin afterwards.")]),t("p",[e._v("If LuckPerms is your only permission plugin, then the issue could be that you have not added the correct permissions for what you require. Always make sure to consult the documentation of the plugins you are using to see what the available permissions are. If the documentation is incomplete or you're unable to find any, then you can use "),t("a",{attrs:{href:"Verbose"}},[e._v("Verbose mode")]),e._v(" to see which permissions are being checked in real-time and what value LuckPerms returns for the user that is being checked.")]),t("p",[e._v("If you are running a Fabric server with LuckPerms, you "),t("strong",[e._v("cannot use permissions with vanilla commands")]),e._v(". Unlike Bukkit/Spigot and Sponge, Fabric does not add permission checks for vanilla commands. This is not an issue with LuckPerms. However, since Fabric supports modifying the base game, you may install an additional mod to add those permission checks, such as "),t("a",{attrs:{href:"https://github.com/lucko/minecraft-command-permissions-fabric"}},[e._v("Minecraft Command Permissions")]),e._v(" or "),t("a",{attrs:{href:"https://github.com/LoganDark/fabric-command-hider"}},[e._v("Command Hider")]),e._v(".")]),t("p",[e._v("Also note that individual mods may not support permissions either, as permissions in Fabric are not yet as standardized as they are in Bukkit/Spigot or Sponge.")]),t("hr"),t("h3",{attrs:{id:"why-are-prefixessuffixes-not-working",tabindex:"-1"}},[e._v("Why are prefixes/suffixes not working? "),t("a",{staticClass:"header-anchor",attrs:{href:"#why-are-prefixessuffixes-not-working"}},[e._v("🔗")])]),t("p",[e._v("Most of the time this isn't actually an issue with LuckPerms itself but here are a few troubleshooting tips:")]),t("ul",[t("li",[e._v("LuckPerms is "),t("em",[e._v("not")]),e._v(" a chat formatter and another plugin is required to format the chat or tab list to include prefixes and suffixes. "),t("ul",[t("li",[e._v("If you are running a Bukkit based server (CraftBukkit, Spigot, Paper) then you also need to install "),t("a",{attrs:{href:"https://dev.bukkit.org/bukkit-plugins/vault/"}},[e._v("Vault")]),e._v(".")]),t("li",[e._v("Some popular chat formatting plugins are listed "),t("a",{attrs:{href:"Prefixes,-Suffixes-&-Meta#displaying-prefixes-and-suffixes"}},[e._v("here")]),e._v(".")])])]),t("li",[e._v("Firstly, you should check if a prefix/suffix is actually set with LuckPerms - run "),t("code",{pre:!0},[e._v("/lp user info")]),e._v(" and see if the prefix/suffix is displayed correctly. If so, great! LuckPerms has done its job and now it's up to your chat/tab/whatever formatter to display it correctly. If not, you need to "),t("a",{attrs:{href:"Prefixes,-Suffixes-&-Meta"}},[e._v("set a prefix or suffix")]),e._v(".")]),t("li",[e._v("If you are using Essentials, make sure you are running "),t("a",{attrs:{href:"https://ci.ender.zone/job/EssentialsX/"}},[e._v("EssentialsX and EssentialsXChat")]),e._v(". The X is important! Other versions of Essentials may not work correctly with LuckPerms. "),t("ul",[t("li",[e._v("Run "),t("code",{pre:!0},[e._v("/ess version")]),e._v(' for a quick rundown on your Essentials setup, this also reports whether Vault is installed and which permission plugin you are running - preferably LuckPerms! If the command only returns a message like "Reloaded Essentials [version]" then you are using an unsupported version of Essentials and should update to EssentialsX (linked above).')]),t("li",[e._v("Essentials provides the "),t("code",{pre:!0},[e._v("{DISPLAYNAME}")]),e._v(" placeholder to its chat formats which will combine the prefix, nickname and suffix into one. If you do not like this behaviour then you can change the "),t("code",{pre:!0},[e._v("add-prefix-suffix")]),e._v(" option to "),t("code",{pre:!0},[e._v("false")]),e._v(" in the Essentials config.")])])]),t("li",[e._v("Are your prefixes/suffixes displaying, but not the right ones? You most likely need to set the priority/weight correctly. If you type "),t("code",{pre:!0},[e._v("/lp user meta info")]),e._v(" and see a bunch of zeroes, or some/all of the numbers (priorities) are the same, LuckPerms will take the first highest one and use that as that user's prefix/suffix. To change these, you will need to "),t("a",{attrs:{href:"Meta-Commands#lp-usergroup-usergroup-meta-setprefix-priority-prefix-context"}},[e._v("set the prefix again using the correct command")]),e._v(" - or you can easily edit the number using the web editor. Prefixes and suffixes are stored as permissions, just like everything else, they look similar to this: "),t("code",{pre:!0},[e._v("prefix.100.[Admin]")]),e._v(" - the "),t("code",{pre:!0},[e._v("100")]),e._v(" there is the priority and this is the number you would change to edit it.")]),t("li",[e._v("Lastly, the "),t("code",{pre:!0},[e._v("meta-formatting")]),e._v(" section of the LuckPerms config is very important and you should make sure you only change it when necessary (e.g. "),t("a",{attrs:{href:"Prefix-&-Suffix-Stacking"}},[e._v("prefix/suffix stacking")]),e._v("). It's possible your prefixes/suffixes are not working because this section has been tampered with. If you want to set it back to default, make sure the "),t("code",{pre:!0},[e._v("format")]),e._v(" looks like this:")])]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs"}},[e._v(" format:\n - "),t("span",{pre:!0,attrs:{class:"hljs-string"}},[e._v('"highest"')]),e._v("\n")])]),t("hr"),t("h3",{attrs:{id:"how-do-i-get-permissions-to-sync-across-multiple-servers",tabindex:"-1"}},[e._v("How do I get permissions to sync across multiple servers? "),t("a",{staticClass:"header-anchor",attrs:{href:"#how-do-i-get-permissions-to-sync-across-multiple-servers"}},[e._v("🔗")])]),t("p",[e._v("This is explained in detail on the "),t("a",{attrs:{href:"Network-Installation"}},[e._v("Network Installation")]),e._v(" page. You should also read "),t("a",{attrs:{href:"Syncing-data-between-servers"}},[e._v("Syncing data between servers")]),e._v(". Here is a brief rundown:")]),t("ul",[t("li",[e._v("You need the Bungeecord version of LuckPerms installed on your proxy if: "),t("ul",[t("li",[e._v("you want to manage Bungeecord permissions (in most cases, you do), or")]),t("li",[e._v("you set your messaging-service to "),t("code",{pre:!0},[e._v("pluginmsg")]),e._v(" (not recommended when using a SQL database).")])])]),t("li",[e._v("You need LuckPerms installed on each of your backend (Spigot, Sponge) servers.")]),t("li",[e._v("You must ensure IP forwarding is enabled on Bungeecord and that the Spigot servers have "),t("code",{pre:!0},[e._v("bungeecord: true")]),e._v(" set in their spigot.yml file.")]),t("li",[e._v("You must use the same "),t("a",{attrs:{href:"Storage-types#remote-databases"}},[e._v("remote storage method")]),e._v(" (such as MySQL) on ALL of your LuckPerms installations. This requires the "),t("code",{pre:!0},[e._v("storage-method")]),e._v(" property to be set as well as the database credentials to be identical on all servers.")]),t("li",[e._v("Ensure your servers are all connected to the correct database by running "),t("code",{pre:!0},[e._v("/lp info")]),e._v(" and checking if the storage method is correct. Use "),t("code",{pre:!0},[e._v("/lpb info")]),e._v(" for Bungeecord (run it from the console if you run into permission errors).")]),t("li",[e._v("If you are using MySQL or MariaDB, set the "),t("a",{attrs:{href:"Configuration#messaging-service"}},[t("code",{pre:!0},[e._v("messaging-service")])]),e._v(" to "),t("code",{pre:!0},[e._v("sql")]),e._v(" on all servers. This will enable syncing for all of your servers when a change is made to the database.")])]),t("hr"),t("h3",{attrs:{id:"mysql-errors",tabindex:"-1"}},[e._v("MySQL errors "),t("a",{staticClass:"header-anchor",attrs:{href:"#mysql-errors"}},[e._v("🔗")])]),t("p",[e._v("Such as:")]),t("ul",[t("li",[e._v("LuckPerms cannot connect to my MySQL server")]),t("li",[e._v("I'm getting an annoying SSL warning message")]),t("li",[e._v('"No operations allowed after connection closed" error')])]),t("p",[e._v("Please see "),t("a",{attrs:{href:"Storage-system-errors"}},[e._v("here")]),e._v(".")]),t("hr"),t("h3",{attrs:{id:"i-use-spongeforge-and-when-i-install-luckperms-i-lose-all-my-permissions-why",tabindex:"-1"}},[e._v("I use SpongeForge and when I install LuckPerms I lose all my permissions, why? "),t("a",{staticClass:"header-anchor",attrs:{href:"#i-use-spongeforge-and-when-i-install-luckperms-i-lose-all-my-permissions-why"}},[e._v("🔗")])]),t("p",[e._v("This is intentional behaviour of SpongeForge. As soon as a permission plugin is installed, it will disable the OP system."),t("br"),e._v(" To fix this, you need to give your groups and users the required permissions. If you want OP-like permissions, you can use the wildcard "),t("code",{pre:!0},[e._v("*")]),e._v(" but this is "),t("a",{attrs:{href:"https://nucleuspowered.org/docs/nowildcard.html"}},[e._v("not recommended")]),e._v(".")]),t("hr"),t("h3",{attrs:{id:"what-versions-does-luckperms-support",tabindex:"-1"}},[e._v("What versions does LuckPerms support? "),t("a",{staticClass:"header-anchor",attrs:{href:"#what-versions-does-luckperms-support"}},[e._v("🔗")])]),t("p",[e._v("LuckPerms supports Minecraft versions from 1.8.8 up to the latest release.")]),t("p",[e._v("If you want to use LuckPerms on a Bukkit 1.7.10 server, you will need to use the Bukkit-Legacy jar, available "),t("a",{attrs:{href:"https://luckperms.net/download"}},[e._v("here")]),e._v(".")]),t("hr"),t("h3",{attrs:{id:"when-i-install-luckperms-my-server-shuts-down",tabindex:"-1"}},[e._v("When I install LuckPerms my server shuts down "),t("a",{staticClass:"header-anchor",attrs:{href:"#when-i-install-luckperms-my-server-shuts-down"}},[e._v("🔗")])]),t("p",[e._v("LuckPerms will never shut down your server.")]),t("p",[e._v("If you use AuthMe, make sure to check your console for the following lines:")]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs"}},[e._v("[AuthMe] Aborting initialization "),t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("of")]),e._v(" AuthMe: [InjectorReflectionException]: Could "),t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("not")]),e._v(" invoke "),t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("method")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-string"}},[e._v("'setup'")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("for")]),e._v(" fr.xephi.authme.permission.PermissionsManager@xxxxxxxx\n[AuthMe] THE SERVER "),t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("IS")]),e._v(" GOING "),t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("TO")]),e._v(" SHUT DOWN "),t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("AS")]),e._v(" DEFINED "),t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("IN")]),e._v(" THE CONFIGURATION"),t("span",{pre:!0,attrs:{class:"hljs-operator"}},[e._v("!")]),e._v("\n")])]),t("p",[e._v("If those lines are shown, the server was shut down by AuthMe, due to a configuration setting it has by default.")]),t("p",[e._v("To fix, open the AuthMe config.yml and change "),t("code",{pre:!0},[e._v("forceVaultHook")]),e._v(" from false to true.")]),t("hr"),t("h3",{attrs:{id:"luckperms-cannot-download-dependencies",tabindex:"-1"}},[e._v("LuckPerms cannot download dependencies "),t("a",{staticClass:"header-anchor",attrs:{href:"#luckperms-cannot-download-dependencies"}},[e._v("🔗")])]),t("p",[e._v("LuckPerms requires an internet connection to be able to download its dependencies. If LuckPerms does not have a connection or a host is blocking it, the plugin will "),t("strong",[e._v("not")]),e._v(" work.")]),t("blockquote",[t("p",[e._v("me.lucko.luckperms.common.dependencies.DependencyDownloadException: java.net.ConnectException: Connection refused (Connection refused)")])]),t("p",[e._v("An error like this either means that "),t("strong",[e._v("a)")]),e._v(" the server doesn't have an internet connection or "),t("strong",[e._v("b)")]),e._v(" your host is blocking the connection.")]),t("p",[e._v("Do either of the following to resolve this:")]),t("ul",[t("li",[t("p",[e._v("You can install LP locally (where you do have an internet connection), and then copy the content of the "),t("code",{pre:!0},[e._v("/LuckPerms/libs/")]),e._v(" directory to your other server, into the folder "),t("code",{pre:!0},[e._v("/LuckPerms/libs/")]),e._v(".")])]),t("li",[t("p",[e._v("Contact your server host to allow connections from "),t("a",{attrs:{href:"https://libraries.luckperms.net/"}},[e._v("libraries.luckperms.net")]),e._v(" and "),t("a",{attrs:{href:"https://repo1.maven.org/maven2/"}},[e._v("repo1.maven.org")]),e._v(".")])])])])}],o=r(845),i={},n=(0,o.A)(i,s,a,!1,null,null,null),l=n.exports},9078:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return l}});var s=function(){var e=this;e._self._c;return e._m(0)},a=[function(){var e=this,t=e._self._c;return t("section",[t("p",[e._v("This is a sub-page of the main "),t("strong",[e._v("Command Usage")]),e._v(" page. "),t("a",{attrs:{href:"Command-Usage"}},[e._v("Click here to go back.")])]),t("p",[e._v("Key things to remember from the main page:")]),t("ul",[t("li",[e._v("You use "),t("code",{pre:!0},[e._v("/lpb")]),e._v(" instead of "),t("code",{pre:!0},[e._v("/lp")]),e._v(" when running the plugin on BungeeCord")]),t("li",[e._v("You use "),t("code",{pre:!0},[e._v("/lpv")]),e._v(" instead of "),t("code",{pre:!0},[e._v("/lp")]),e._v(" when running the plugin on Velocity")]),t("li",[e._v("Required arguments are marked with angle brackets - e.g. "),t("code",{pre:!0},[e._v("")])]),t("li",[e._v("Optional arguments are marked with square brackets - e.g. "),t("code",{pre:!0},[e._v("[optional]")])]),t("li",[e._v("If you want to include spaces in arguments, you must escape the argument with quotes - e.g. "),t("code",{pre:!0},[e._v('" "')])])]),t("hr"),t("h3",{attrs:{id:"index",tabindex:"-1"}},[e._v("Index "),t("a",{staticClass:"header-anchor",attrs:{href:"#index"}},[e._v("🔗")])]),t("ul",[t("li",[t("a",{attrs:{href:"#lp"}},[e._v("/lp")])]),t("li",[t("a",{attrs:{href:"#lp-sync"}},[e._v("/lp "),t("code",{pre:!0},[e._v("sync")])])]),t("li",[t("a",{attrs:{href:"#lp-info"}},[e._v("/lp "),t("code",{pre:!0},[e._v("info")])])]),t("li",[t("a",{attrs:{href:"#lp-editor-type-filter"}},[e._v("/lp "),t("code",{pre:!0},[e._v("editor")])])]),t("li",[t("a",{attrs:{href:"#lp-verbose-onrecordoffupload-filter"}},[e._v("/lp "),t("code",{pre:!0},[e._v("verbose")]),e._v(" [filter]")])]),t("li",[t("a",{attrs:{href:"#lp-verbose-command-meplayer-command"}},[e._v("/lp "),t("code",{pre:!0},[e._v("verbose command")]),e._v(" ")])]),t("li",[t("a",{attrs:{href:"#lp-tree-scope-player"}},[e._v("/lp "),t("code",{pre:!0},[e._v("tree")]),e._v(" [scope] [player]")])]),t("li",[t("a",{attrs:{href:"#lp-search-comparison-permission"}},[e._v("/lp "),t("code",{pre:!0},[e._v("search")]),e._v(" [comparison] ")])]),t("li",[t("a",{attrs:{href:"#lp-networksync"}},[e._v("/lp "),t("code",{pre:!0},[e._v("networksync")])])]),t("li",[t("a",{attrs:{href:"#lp-import-filecode---upload---replace"}},[e._v("/lp "),t("code",{pre:!0},[e._v("import")]),e._v(" [--replace]")])]),t("li",[t("a",{attrs:{href:"#lp-export-file--upload"}},[e._v("/lp "),t("code",{pre:!0},[e._v("export")]),e._v(" [--upload]")])]),t("li",[t("a",{attrs:{href:"#lp-reloadconfig"}},[e._v("/lp "),t("code",{pre:!0},[e._v("reloadconfig")])])]),t("li",[t("a",{attrs:{href:"#lp-bulkupdate-data-type-action-action-field-action-value-constraints"}},[e._v("/lp "),t("code",{pre:!0},[e._v("bulkupdate")])])]),t("li",[t("a",{attrs:{href:"#lp-translations"}},[e._v("/lp "),t("code",{pre:!0},[e._v("translations")])])]),t("li",[t("a",{attrs:{href:"#lp-creategroup-name-weight-displayname"}},[e._v("/lp "),t("code",{pre:!0},[e._v("creategroup")]),e._v(" [weight] [displayname]")])]),t("li",[t("a",{attrs:{href:"#lp-deletegroup-name"}},[e._v("/lp "),t("code",{pre:!0},[e._v("deletegroup")]),e._v(" ")])]),t("li",[t("a",{attrs:{href:"#lp-listgroups"}},[e._v("/lp "),t("code",{pre:!0},[e._v("listgroups")])])]),t("li",[t("a",{attrs:{href:"#lp-createtrack-name"}},[e._v("/lp "),t("code",{pre:!0},[e._v("createtrack")]),e._v(" ")])]),t("li",[t("a",{attrs:{href:"#lp-deletetrack-name"}},[e._v("/lp "),t("code",{pre:!0},[e._v("deletetrack")]),e._v(" ")])]),t("li",[t("a",{attrs:{href:"#lp-listtracks"}},[e._v("/lp "),t("code",{pre:!0},[e._v("listtracks")])])])]),t("hr"),t("h4",{attrs:{id:"lp",tabindex:"-1"}},[t("code",{pre:!0},[e._v("/lp")]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#lp"}},[e._v("🔗")])]),t("p",[t("strong",[e._v("Permission")]),e._v(": n/a"),t("br"),e._v(" Base LuckPerms command. Will print a list of the LuckPerms commands a user has permission to use, with brief information about what each command does, and what arguments it accepts.")]),t("hr"),t("h4",{attrs:{id:"lp-sync",tabindex:"-1"}},[t("code",{pre:!0},[e._v("/lp sync")]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#lp-sync"}},[e._v("🔗")])]),t("p",[t("strong",[e._v("Permission")]),e._v(": luckperms.sync"),t("br"),e._v(" Performs a refresh of all currently loaded data. If any changes have been made to the data in the storage, this command will update the copy on the server to include those changes.")]),t("hr"),t("h4",{attrs:{id:"lp-info",tabindex:"-1"}},[t("code",{pre:!0},[e._v("/lp info")]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#lp-info"}},[e._v("🔗")])]),t("p",[t("strong",[e._v("Permission")]),e._v(": luckperms.info"),t("br"),e._v(" Lists some information/data about LuckPerms, including debugging output, statistics, settings, and important values from the configuration.")]),t("hr"),t("h4",{attrs:{id:"lp-editor-type-filter",tabindex:"-1"}},[t("code",{pre:!0},[e._v("/lp editor [type] [filter]")]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#lp-editor-type-filter"}},[e._v("🔗")])]),t("p",[t("strong",[e._v("Permission")]),e._v(": luckperms.editor"),t("br"),t("strong",[e._v("Arguments")]),e._v(":")]),t("ul",[t("li",[t("code",{pre:!0},[e._v("[type]")]),e._v(' - the types to include in the editor session. can be "all", "users", "online" or "groups"')]),t("li",[t("code",{pre:!0},[e._v("[filter]")]),e._v(' - if the session includes users (e.g. type = "all", "users" or "online"), it will exclude those whose nodes don\'t start with the provided filter. Groups are unaffected by this filter')])]),t("p",[e._v("Opens a web interface to edit permissions data. After changes are saved, a command will be given that you need to run for the changes to take effect.")]),t("hr"),t("h4",{attrs:{id:"lp-verbose-onrecordoffupload-filter",tabindex:"-1"}},[t("code",{pre:!0},[e._v("/lp verbose [filter]")]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#lp-verbose-onrecordoffupload-filter"}},[e._v("🔗")])]),t("p",[t("strong",[e._v("Permission")]),e._v(": luckperms.verbose"),t("br"),t("strong",[e._v("Arguments")]),e._v(":")]),t("ul",[t("li",[t("code",{pre:!0},[e._v("")]),e._v(" - whether to enable/disable logging, or to upload the logged output")]),t("li",[t("code",{pre:!0},[e._v("[filter]")]),e._v(" - the filter to sort the output")])]),t("p",[e._v("Controls the LuckPerms verbose logging system. This allows you to listen for all permission checks against players on the server. Whenever a permission is checked by a plugin, the check is passed onto the verbose handler.")]),t("p",[e._v("If your filters match the permission check, you will be notified.")]),t("p",[t("code",{pre:!0},[e._v("on")]),e._v(" will enable the system, and will send you an alert in chat when the filter is matched. "),t("code",{pre:!0},[e._v("record")]),e._v(" will do the same, however you will not be notified of checks in the chat. "),t("code",{pre:!0},[e._v("off")]),e._v(" will simply disable the checking, and "),t("code",{pre:!0},[e._v("upload")]),e._v(" will upload the first results to the web viewer, and provide you with a link.")]),t("p",[e._v("Filters match the start of permissions or the user being checked. You can use "),t("code",{pre:!0},[e._v("&")]),e._v(" (and) and "),t("code",{pre:!0},[e._v("|")]),e._v(" (or) symbols, and "),t("code",{pre:!0},[e._v("!")]),e._v(" to negate a match. Parenthesis "),t("code",{pre:!0},[e._v("( )")]),e._v(" are also supported.")]),t("p",[t("strong",[e._v("For example:")])]),t("ul",[t("li",[t("code",{pre:!0},[e._v("Luck & (essentials | worldedit)")]),e._v(' - matches any checks made against my user starting with "essentials" or "worldedit"')]),t("li",[t("code",{pre:!0},[e._v("!Luck & !anticheat")]),e._v(' - matches any checks not against my user and not starting with "anticheat"')]),t("li",[t("code",{pre:!0},[e._v("anticheat & !anticheat.check")]),e._v(' - matches any checks starting with "anticheat" but not starting with "anticheat.check"')])]),t("p",[e._v("More information can be found "),t("a",{attrs:{href:"Verbose"}},[t("strong",[e._v("here")])])]),t("hr"),t("h4",{attrs:{id:"lp-verbose-command-meplayer-command",tabindex:"-1"}},[t("code",{pre:!0},[e._v("/lp verbose command ")]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#lp-verbose-command-meplayer-command"}},[e._v("🔗")])]),t("p",[t("strong",[e._v("Permission")]),e._v(": luckperms.verbose"),t("br"),t("strong",[e._v("Arguments")]),e._v(":")]),t("ul",[t("li",[t("code",{pre:!0},[e._v("")]),e._v(" - the player to perform the verbose check on. Use "),t("code",{pre:!0},[e._v("me")]),e._v(" to select yourself")]),t("li",[t("code",{pre:!0},[e._v("")]),e._v(" - the command to use for the verbose check")])]),t("p",[e._v("Controls the LuckPerms verbose logging system. This allows you to execute a command as a specific player and listen for all permission checks against the player on the server for this command.")]),t("hr"),t("h4",{attrs:{id:"lp-tree-scope-player",tabindex:"-1"}},[t("code",{pre:!0},[e._v("/lp tree [scope] [player]")]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#lp-tree-scope-player"}},[e._v("🔗")])]),t("p",[t("strong",[e._v("Permission")]),e._v(": luckperms.tree"),t("br"),t("strong",[e._v("Arguments")]),e._v(":")]),t("ul",[t("li",[t("code",{pre:!0},[e._v("[scope]")]),e._v(" - the root of the tree (specify "),t("code",{pre:!0},[e._v(".")]),e._v(" to include all permissions)")]),t("li",[t("code",{pre:!0},[e._v("[player]")]),e._v(" - the name of an online player to check against")])]),t("p",[e._v("Generates a tree view of permissions registered to the server. The tree is built using data exposed to the server by plugins, and expanded over time as plugins check for permissions.")]),t("p",[e._v("All arguments are optional. The default selection is "),t("code",{pre:!0},[e._v(".")]),e._v(" (just a dot, which means all).")]),t("p",[e._v("Scope allows you to only generate a part of the tree. For example, a scope of "),t("code",{pre:!0},[e._v("luckperms.user")]),e._v(' will only return the branch of the tree starting with "luckperms.user".')]),t("hr"),t("h4",{attrs:{id:"lp-search-comparison-permission",tabindex:"-1"}},[t("code",{pre:!0},[e._v("/lp search [comparison] ")]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#lp-search-comparison-permission"}},[e._v("🔗")])]),t("p",[t("strong",[e._v("Permission")]),e._v(": luckperms.search"),t("br"),t("strong",[e._v("Arguments")]),e._v(":")]),t("ul",[t("li",[t("code",{pre:!0},[e._v("[comparison]")]),e._v(" - the relation between the search and the results")])]),t("table",[t("thead",[t("tr",[t("th",[e._v("Comparison")]),t("th",[e._v("Meaning")]),t("th",[e._v("Function")])])]),t("tbody",[t("tr",[t("td",[t("code",{pre:!0},[e._v("==")])]),t("td",[e._v('"Equal to"')]),t("td",[e._v("Default comparator - returns permissions equal to the "),t("code",{pre:!0},[e._v("")]),e._v(" searched.")])]),t("tr",[t("td",[t("code",{pre:!0},[e._v("!=")])]),t("td",[e._v('"Not Equal to"')]),t("td",[e._v("Returns permissions not equal to the "),t("code",{pre:!0},[e._v("")]),e._v(" searched.")])]),t("tr",[t("td",[t("code",{pre:!0},[e._v("~~")])]),t("td",[e._v('"Similar to"')]),t("td",[e._v("Returns permissions 'similar' to the "),t("code",{pre:!0},[e._v("")]),e._v(" searched. (SQL Style)")])]),t("tr",[t("td",[t("code",{pre:!0},[e._v("!~")])]),t("td",[e._v('"Not Similar to')]),t("td",[e._v("Returns permissions 'not similar' to the "),t("code",{pre:!0},[e._v("")]),e._v(" searched. (SQL Style)")])])])]),t("ul",[t("li",[t("code",{pre:!0},[e._v("")]),e._v(" - the permission to search for")])]),t("p",[e._v("Searches all users/groups for a specific permission, and returns a paginated list of all found entries.")]),t("hr"),t("h4",{attrs:{id:"lp-networksync",tabindex:"-1"}},[t("code",{pre:!0},[e._v("/lp networksync")]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#lp-networksync"}},[e._v("🔗")])]),t("p",[t("strong",[e._v("Permission")]),e._v(": luckperms.sync"),t("br"),e._v(' Refreshes all cached data with the storage provider, and then uses the plugins Messaging Service (if configured) to "ping" all other connected servers and request that they sync too.')]),t("hr"),t("h4",{attrs:{id:"lp-import-filecode---upload---replace",tabindex:"-1"}},[t("code",{pre:!0},[e._v("/lp import [--replace]")]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#lp-import-filecode---upload---replace"}},[e._v("🔗")])]),t("p",[t("strong",[e._v("Permission")]),e._v(": luckperms.import"),t("br"),t("strong",[e._v("Arguments")]),e._v(":")]),t("ul",[t("li",[t("code",{pre:!0},[e._v("")]),e._v(" - the file to import from")]),t("li",[t("code",{pre:!0},[e._v(" --upload")]),e._v(" - the code to web-import from")]),t("li",[t("code",{pre:!0},[e._v("[--replace]")]),e._v(" - if included, will overwrite and replace the existing permissions with the import. If not, they will merge.")])]),t("p",[e._v("Imports data into LuckPerms from a file or from the web. If a file, it must be a JSON GZIP type file, exported from Luckperms v5. If from the web, the code must be generated when exporting with the "),t("code",{pre:!0},[e._v("--upload")]),e._v(" flag. The file is expected to be in the plugin directory. When importing a file, the extension "),t("code",{pre:!0},[e._v(".json.gz")]),e._v(" should be included in the name of the import file. When importing a file or web-export, the "),t("code",{pre:!0},[e._v("--replace")]),e._v(" flag may be added to the end of the command to overwrite and replace the existing permissions setup. If the "),t("code",{pre:!0},[e._v("--replace")]),e._v(" flag is not included, the existing permissions setup will be merged with the imported one.")]),t("hr"),t("h4",{attrs:{id:"lp-export-file--upload",tabindex:"-1"}},[t("code",{pre:!0},[e._v("/lp export ")]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#lp-export-file--upload"}},[e._v("🔗")])]),t("p",[t("strong",[e._v("Permission")]),e._v(": luckperms.export"),t("br"),t("strong",[e._v("Arguments")]),e._v(":")]),t("ul",[t("li",[t("code",{pre:!0},[e._v("")]),e._v(" - the file to export to")]),t("li",[t("code",{pre:!0},[e._v("<--upload>")]),e._v(" - if added, will export to the web and provide a code for web-based imports.")]),t("li",[t("code",{pre:!0},[e._v("[--without-users]")]),e._v(" - if added, will export only all the group data. The export will not include any user data.")]),t("li",[t("code",{pre:!0},[e._v("[--without-groups]")]),e._v(" - if added, will export only all the user data. The export will not include any group data.")])]),t("p",[e._v("Exports data from LuckPerms into a file or into web-based datastorage. This file can either be used as a backup, or used to move data between LuckPerms installations. The web-based export will expire and should not be used as a backup. The file and the web-based export can be re-imported using the import command. The generated file will be in the plugin directory.")]),t("hr"),t("h4",{attrs:{id:"lp-reloadconfig",tabindex:"-1"}},[t("code",{pre:!0},[e._v("/lp reloadconfig")]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#lp-reloadconfig"}},[e._v("🔗")])]),t("p",[t("strong",[e._v("Permission")]),e._v(": luckperms.reloadconfig"),t("br"),e._v(" Reloads some values from the configuration file. Not all entries are reloaded by this command, and some require a full server reboot to take effect. (storage settings, for example)")]),t("hr"),t("h4",{attrs:{id:"lp-bulkupdate-data-type-action-action-field-action-value-constraints",tabindex:"-1"}},[t("code",{pre:!0},[e._v("/lp bulkupdate [action field] [action value] [constraints...]")]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#lp-bulkupdate-data-type-action-action-field-action-value-constraints"}},[e._v("🔗")])]),t("p",[t("strong",[e._v("Permission")]),e._v(": "),t("strong",[e._v("Console Only")]),t("br"),t("strong",[e._v("Arguments")]),e._v(":")]),t("ul",[t("li",[t("code",{pre:!0},[e._v("")]),e._v(" - the type of data being changed. (can be "),t("code",{pre:!0},[e._v("all")]),e._v(", "),t("code",{pre:!0},[e._v("users")]),e._v(" or "),t("code",{pre:!0},[e._v("groups")]),e._v(")")]),t("li",[t("code",{pre:!0},[e._v("")]),e._v(" - the action to perform on the data. (can be "),t("code",{pre:!0},[e._v("update")]),e._v(" or "),t("code",{pre:!0},[e._v("delete")]),e._v(")")]),t("li",[t("code",{pre:!0},[e._v("[action field]")]),e._v(" - the field to act upon. only required for update actions. (can be "),t("code",{pre:!0},[e._v("permission")]),e._v(", "),t("code",{pre:!0},[e._v("server")]),e._v(" or "),t("code",{pre:!0},[e._v("world")]),e._v(")")]),t("li",[t("code",{pre:!0},[e._v("[action value]")]),e._v(" - the value to replace with. only required for update actions")]),t("li",[t("code",{pre:!0},[e._v("[constraints]")]),e._v(" - the constraints required for the update")])]),t("p",[e._v("Allows you to perform a bulk modification to all permission data. A detailed guide on how to use this command can be found "),t("a",{attrs:{href:"Bulk-Editing"}},[e._v("here")]),e._v(".")]),t("hr"),t("h4",{attrs:{id:"lp-translations",tabindex:"-1"}},[t("code",{pre:!0},[e._v("/lp translations")]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#lp-translations"}},[e._v("🔗")])]),t("p",[t("strong",[e._v("Permission")]),e._v(": luckperms.translations"),t("br"),e._v(" Shows information about loaded translations, and allows installation of community provided translation bundles.")]),t("hr"),t("h4",{attrs:{id:"lp-creategroup-name-weight-displayname",tabindex:"-1"}},[t("code",{pre:!0},[e._v("/lp creategroup [weight] [displayname]")]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#lp-creategroup-name-weight-displayname"}},[e._v("🔗")])]),t("p",[t("strong",[e._v("Permission")]),e._v(": luckperms.creategroup"),t("br"),t("strong",[e._v("Arguments")]),e._v(":")]),t("ul",[t("li",[t("code",{pre:!0},[e._v("")]),e._v(" - the name of the group")]),t("li",[t("code",{pre:!0},[e._v("[weight]")]),e._v(" - the weight of the group")]),t("li",[t("code",{pre:!0},[e._v("[displayname]")]),e._v(" - the displayname of the group")])]),t("p",[e._v("Creates a new group.")]),t("hr"),t("h4",{attrs:{id:"lp-deletegroup-name",tabindex:"-1"}},[t("code",{pre:!0},[e._v("/lp deletegroup ")]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#lp-deletegroup-name"}},[e._v("🔗")])]),t("p",[t("strong",[e._v("Permission")]),e._v(": luckperms.deletegroup"),t("br"),t("strong",[e._v("Arguments")]),e._v(":")]),t("ul",[t("li",[t("code",{pre:!0},[e._v("")]),e._v(" - the name of the group")])]),t("p",[e._v("Permanently deletes a group.")]),t("hr"),t("h4",{attrs:{id:"lp-listgroups",tabindex:"-1"}},[t("code",{pre:!0},[e._v("/lp listgroups")]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#lp-listgroups"}},[e._v("🔗")])]),t("p",[t("strong",[e._v("Permission")]),e._v(": luckperms.listgroups"),t("br"),e._v(" Displays a list of all current groups.")]),t("hr"),t("h4",{attrs:{id:"lp-createtrack-name",tabindex:"-1"}},[t("code",{pre:!0},[e._v("/lp createtrack ")]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#lp-createtrack-name"}},[e._v("🔗")])]),t("p",[t("strong",[e._v("Permission")]),e._v(": luckperms.createtrack"),t("br"),t("strong",[e._v("Arguments")]),e._v(":")]),t("ul",[t("li",[t("code",{pre:!0},[e._v("")]),e._v(" - the name of the track")])]),t("p",[e._v("Creates a new track.")]),t("hr"),t("h4",{attrs:{id:"lp-deletetrack-name",tabindex:"-1"}},[t("code",{pre:!0},[e._v("/lp deletetrack ")]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#lp-deletetrack-name"}},[e._v("🔗")])]),t("p",[t("strong",[e._v("Permission")]),e._v(": luckperms.deletetrack"),t("br"),t("strong",[e._v("Arguments")]),e._v(":")]),t("ul",[t("li",[t("code",{pre:!0},[e._v("")]),e._v(" - the name of the track")])]),t("p",[e._v("Permanently deletes a track.")]),t("hr"),t("h4",{attrs:{id:"lp-listtracks",tabindex:"-1"}},[t("code",{pre:!0},[e._v("/lp listtracks")]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#lp-listtracks"}},[e._v("🔗")])]),t("p",[t("strong",[e._v("Permission")]),e._v(": luckperms.listtracks"),t("br"),e._v(" Displays a list of all current tracks.")]),t("hr")])}],o=r(845),i={},n=(0,o.A)(i,s,a,!1,null,null,null),l=n.exports},4123:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return l}});var s=function(){var e=this;e._self._c;return e._m(0)},a=[function(){var e=this,t=e._self._c;return t("section",[t("p",[e._v("This is a sub-page of the main "),t("strong",[e._v("Command Usage")]),e._v(" page. "),t("a",{attrs:{href:"Command-Usage"}},[e._v("Click here to go back.")])]),t("p",[e._v("Key things to remember from the main page:")]),t("ul",[t("li",[e._v("You use "),t("code",{pre:!0},[e._v("/lpb")]),e._v(" instead of "),t("code",{pre:!0},[e._v("/lp")]),e._v(" when running the plugin on BungeeCord")]),t("li",[e._v("You use "),t("code",{pre:!0},[e._v("/lpv")]),e._v(" instead of "),t("code",{pre:!0},[e._v("/lp")]),e._v(" when running the plugin on Velocity")]),t("li",[e._v("Required arguments are marked with angle brackets - e.g. "),t("code",{pre:!0},[e._v("")])]),t("li",[e._v("Optional arguments are marked with square brackets - e.g. "),t("code",{pre:!0},[e._v("[optional]")])]),t("li",[e._v("If you want to include spaces in arguments, you must escape the argument with quotes - e.g. "),t("code",{pre:!0},[e._v('" "')])])]),t("hr"),t("h3",{attrs:{id:"index",tabindex:"-1"}},[e._v("Index "),t("a",{staticClass:"header-anchor",attrs:{href:"#index"}},[e._v("🔗")])]),t("ul",[t("li",[t("a",{attrs:{href:"#lp-group-group-info"}},[e._v("/lp group "),t("code",{pre:!0},[e._v("info")])])]),t("li",[t("a",{attrs:{href:"Permission-Commands"}},[e._v("/lp group "),t("code",{pre:!0},[e._v("permission")])])]),t("li",[t("a",{attrs:{href:"Parent-Commands"}},[e._v("/lp group "),t("code",{pre:!0},[e._v("parent")])])]),t("li",[t("a",{attrs:{href:"Meta-Commands"}},[e._v("/lp group "),t("code",{pre:!0},[e._v("meta")])])]),t("li",[t("a",{attrs:{href:"#lp-group-group-editor"}},[e._v("/lp group "),t("code",{pre:!0},[e._v("editor")])])]),t("li",[t("a",{attrs:{href:"#lp-group-group-listmembers-page"}},[e._v("/lp group "),t("code",{pre:!0},[e._v("listmembers")]),e._v(" [page]")])]),t("li",[t("a",{attrs:{href:"#lp-group-group-setweight-weight"}},[e._v("/lp group "),t("code",{pre:!0},[e._v("setweight")]),e._v(" ")])]),t("li",[t("a",{attrs:{href:"#lp-group-group-setdisplayname-name"}},[e._v("/lp group "),t("code",{pre:!0},[e._v("setdisplayname")]),e._v(" [context...]")])]),t("li",[t("a",{attrs:{href:"#lp-group-group-showtracks"}},[e._v("/lp group "),t("code",{pre:!0},[e._v("showtracks")])])]),t("li",[t("a",{attrs:{href:"#lp-group-group-clear-context"}},[e._v("/lp group "),t("code",{pre:!0},[e._v("clear")]),e._v(" [context...]")])]),t("li",[t("a",{attrs:{href:"#lp-group-group-rename-new-name"}},[e._v("/lp group "),t("code",{pre:!0},[e._v("rename")]),e._v(" ")])]),t("li",[t("a",{attrs:{href:"#lp-group-group-clone-new-name"}},[e._v("/lp group "),t("code",{pre:!0},[e._v("clone")]),e._v(" ")])])]),t("hr"),t("h4",{attrs:{id:"lp-group-group-info",tabindex:"-1"}},[t("code",{pre:!0},[e._v("/lp group info")]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#lp-group-group-info"}},[e._v("🔗")])]),t("p",[t("strong",[e._v("Permission")]),e._v(": luckperms.group.info"),t("br"),e._v(" Displays information about a group.")]),t("hr"),t("h4",{attrs:{id:"lp-group-group-editor",tabindex:"-1"}},[t("code",{pre:!0},[e._v("/lp group editor")]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#lp-group-group-editor"}},[e._v("🔗")])]),t("p",[t("strong",[e._v("Permission")]),e._v(": luckperms.group.editor"),t("br"),e._v(" Opens a web interface to edit permissions for the specified group. After changes are saved, a command will be given that you need to run for the changes to take effect.")]),t("hr"),t("h4",{attrs:{id:"lp-group-group-listmembers-page",tabindex:"-1"}},[t("code",{pre:!0},[e._v("/lp group listmembers [page]")]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#lp-group-group-listmembers-page"}},[e._v("🔗")])]),t("p",[t("strong",[e._v("Permission")]),e._v(": luckperms.group.listmembers"),t("br"),t("strong",[e._v("Arguments")]),e._v(":")]),t("ul",[t("li",[t("code",{pre:!0},[e._v("[page]")]),e._v(" - the page to view")])]),t("p",[e._v("Gets a list of the other users/groups which inherit directly from this group.")]),t("hr"),t("h4",{attrs:{id:"lp-group-group-setweight-weight",tabindex:"-1"}},[t("code",{pre:!0},[e._v("/lp group setweight ")]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#lp-group-group-setweight-weight"}},[e._v("🔗")])]),t("p",[t("strong",[e._v("Permission")]),e._v(": luckperms.group.setweight"),t("br"),t("strong",[e._v("Arguments")]),e._v(":")]),t("ul",[t("li",[t("code",{pre:!0},[e._v("")]),e._v(" - the weight to set")])]),t("p",[e._v("Sets the groups weight value, which determines the order in which groups will be considered when accumulating a users permissions. Higher value = higher weight.")]),t("hr"),t("h4",{attrs:{id:"lp-group-group-setdisplayname-name",tabindex:"-1"}},[t("code",{pre:!0},[e._v("/lp group setdisplayname ")]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#lp-group-group-setdisplayname-name"}},[e._v("🔗")])]),t("p",[t("strong",[e._v("Permission")]),e._v(": luckperms.group.setdisplayname"),t("br"),t("strong",[e._v("Arguments")]),e._v(":")]),t("ul",[t("li",[t("code",{pre:!0},[e._v("")]),e._v(" - the name to set")]),t("li",[t("code",{pre:!0},[e._v("[context...]")]),e._v(" - the "),t("a",{attrs:{href:"Context"}},[e._v("contexts")]),e._v(" to set the display name in")])]),t("p",[e._v('Sets the groups display name. This can effectively be used as an "alias" for the group.')]),t("hr"),t("h4",{attrs:{id:"lp-group-group-showtracks",tabindex:"-1"}},[t("code",{pre:!0},[e._v("/lp group showtracks")]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#lp-group-group-showtracks"}},[e._v("🔗")])]),t("p",[t("strong",[e._v("Permission")]),e._v(": luckperms.group.showtracks"),t("br"),e._v(" Displays a list of all of the tracks a group is currently on.")]),t("hr"),t("h4",{attrs:{id:"lp-group-group-clear-context",tabindex:"-1"}},[t("code",{pre:!0},[e._v("/lp group clear [context]")]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#lp-group-group-clear-context"}},[e._v("🔗")])]),t("p",[t("strong",[e._v("Permission")]),e._v(": luckperms.group.clear"),t("br"),t("strong",[e._v("Arguments")]),e._v(":")]),t("ul",[t("li",[t("code",{pre:!0},[e._v("[context...]")]),e._v(" - the "),t("a",{attrs:{href:"Context"}},[e._v("contexts")]),e._v(" to filter by")])]),t("p",[e._v("Clears the group's permissions, parent groups and meta.")]),t("hr"),t("h4",{attrs:{id:"lp-group-group-rename-new-name",tabindex:"-1"}},[t("code",{pre:!0},[e._v("/lp group rename ")]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#lp-group-group-rename-new-name"}},[e._v("🔗")])]),t("p",[t("strong",[e._v("Permission")]),e._v(": luckperms.group.rename"),t("br"),t("strong",[e._v("Arguments")]),e._v(":")]),t("ul",[t("li",[t("code",{pre:!0},[e._v("")]),e._v(" - the new name for the group")])]),t("p",[e._v("Changes a group's name. Note that any members of this group will not know about the change, and will still point to the old group name. If you wish to update this, you'll need to use the bulk change feature to update the existing entries.")]),t("hr"),t("h4",{attrs:{id:"lp-group-group-clone-new-name",tabindex:"-1"}},[t("code",{pre:!0},[e._v("/lp group clone ")]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#lp-group-group-clone-new-name"}},[e._v("🔗")])]),t("p",[t("strong",[e._v("Permission")]),e._v(": luckperms.group.clone"),t("br"),t("strong",[e._v("Arguments")]),e._v(":")]),t("ul",[t("li",[t("code",{pre:!0},[e._v("")]),e._v(" - the name of the clone")])]),t("p",[e._v("Makes an exact copy of the group under a different name.")]),t("hr")])}],o=r(845),i={},n=(0,o.A)(i,s,a,!1,null,null,null),l=n.exports},7661:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return l}});var s=function(){var e=this;e._self._c;return e._m(0)},a=[function(){var e=this,t=e._self._c;return t("section",[t("p",[e._v("Hello! 👋")]),t("p",[e._v("Welcome to the LuckPerms wiki. Here you will find a complete set of documentation for the plugin, outlining how to install, setup, configure and effectively use LuckPerms.")]),t("h3",{attrs:{id:"where-to-start",tabindex:"-1"}},[e._v("Where to start? "),t("a",{staticClass:"header-anchor",attrs:{href:"#where-to-start"}},[e._v("🔗")])]),t("p",[e._v("If you've never used a permissions plugin before, we suggest you just start at the top and work your way down!")]),t("p",[e._v("The basics of permissions are covered in detail in the "),t("a",{attrs:{href:"Usage"}},[e._v("Getting Started")]),e._v(" page.")]),t("p",[e._v("A more to the point command reference can be found in the "),t("a",{attrs:{href:"Command-Usage"}},[e._v("Command Usage")]),e._v(" subpages.")]),t("h3",{attrs:{id:"how-to-get-help",tabindex:"-1"}},[e._v("How to get help "),t("a",{staticClass:"header-anchor",attrs:{href:"#how-to-get-help"}},[e._v("🔗")])]),t("p",[e._v("Support for the project is provided on "),t("a",{attrs:{href:"https://discord.gg/luckperms"}},[e._v("Discord")]),e._v(".")]),t("p",[e._v("We would appreciate it if you try to look for an answer to your question here on the wiki first. It saves us having to repeatedly answer the same questions!")]),t("p",[e._v("In particular, check the "),t("a",{attrs:{href:"FAQ"}},[e._v("FAQ")]),e._v(' page and the "How To" section. 🙂')]),t("h3",{attrs:{id:"how-to-report-bugs",tabindex:"-1"}},[e._v("How to report bugs "),t("a",{staticClass:"header-anchor",attrs:{href:"#how-to-report-bugs"}},[e._v("🔗")])]),t("p",[e._v("Bug reports live on "),t("a",{attrs:{href:"https://github.com/LuckPerms/LuckPerms/issues"}},[e._v("GitHub")]),e._v(".")]),t("p",[e._v('You\'ll need to create a GitHub account, then open a new "issue".')]),t("p",[e._v("Before reporting a bug, please make sure it is actually being caused by or related to LuckPerms. We get a lot of reports which are caused by other things - please double check! If you're unsure, feel free to ask us in Discord "),t("em",[e._v("before")]),e._v(" making a report.")]),t("h3",{attrs:{id:"how-to-contribute-to-the-wiki",tabindex:"-1"}},[e._v("How to contribute to the wiki "),t("a",{staticClass:"header-anchor",attrs:{href:"#how-to-contribute-to-the-wiki"}},[e._v("🔗")])]),t("p",[e._v("The text files that make up this wiki are "),t("a",{attrs:{href:"https://github.com/LuckPerms/wiki"}},[e._v("open source")]),e._v(" - we always appreciate contributions!")])])}],o=r(845),i={},n=(0,o.A)(i,s,a,!1,null,null,null),l=n.exports},3097:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return l}});var s=function(){var e=this;e._self._c;return e._m(0)},a=[function(){var e=this,t=e._self._c;return t("section",[t("p",[e._v("There is an "),t("strong",[e._v("beta")]),e._v(" version of "),t("strong",[e._v("LuckPerms for "),t("a",{attrs:{href:"https://hytale.com/"}},[e._v("Hytale")])]),e._v(" available from our "),t("a",{attrs:{href:"https://luckperms.net/download"}},[e._v("downloads page")]),e._v(". This is the same LuckPerms you know and (maybe/hopefully) love from Minecraft, ported across and integrated with Hytale! 🎉")]),t("p",[e._v("LuckPerms for Hytale is built on top of the same common codebase as the other LuckPerms plugin/mods. We believe that basing the Hytale version of LuckPerms on top of the same established core platform as our existing "),t("strong",[e._v("well-proven")]),e._v(" Minecraft releases enables us to provide a very "),t("strong",[e._v("stable")]),e._v(" and "),t("strong",[e._v("performant")]),e._v(' permissions implementation for Hytale, to a higher quality than "bespoke" plugins could. 🥳')]),t("p",[e._v('Some of the documentation here on the wiki and elsewhere in the project is lagging behind slightly and still references Minecraft in a few places. However, thankfully the permissions system in Hytale is very similar to the "Bukkit" system that most of the Minecraft ecosystem has adopted, so most if not all of the existing concepts in LuckPerms for Minecraft apply in Hytale too! Yay!')]),t("p",[e._v("We hope you enjoy using LuckPerms on your Hytale servers!")]),t("h2",{attrs:{id:"faqs",tabindex:"-1"}},[e._v("FAQs "),t("a",{staticClass:"header-anchor",attrs:{href:"#faqs"}},[e._v("🔗")])]),t("ul",[t("li",[t("a",{attrs:{href:"#ive-never-used-luckperms-before-how-do-i-get-started"}},[e._v("I've never used LuckPerms before! How do I get started?")])]),t("li",[t("a",{attrs:{href:"#op-doesnt-work-anymore"}},[e._v("OP doesn't work anymore!")])]),t("li",[t("a",{attrs:{href:"#compatibility-with-other-modsplugins"}},[e._v("Compatibility with other mods/plugins")])]),t("li",[t("a",{attrs:{href:"#finding-permissions-and-troubleshooting"}},[e._v("Finding permissions and troubleshooting")])]),t("li",[t("a",{attrs:{href:"#chat-formatting"}},[e._v("Chat formatting")])]),t("li",[t("a",{attrs:{href:"#integrating-with-the-luckperms-api"}},[e._v("Integrating with the LuckPerms API")])]),t("li",[t("a",{attrs:{href:"#known-caveatsissues"}},[e._v("Known caveats/issues")])])]),t("h3",{attrs:{id:"ive-never-used-luckperms-before-how-do-i-get-started",tabindex:"-1"}},[e._v("I've never used LuckPerms before! How do I get started? "),t("a",{staticClass:"header-anchor",attrs:{href:"#ive-never-used-luckperms-before-how-do-i-get-started"}},[e._v("🔗")])]),t("p",[e._v("Hello and welcome! 👋")]),t("p",[e._v("The short answer is, check out the:")]),t("ul",[t("li",[t("strong",[t("a",{attrs:{href:"Installation"}},[e._v("Installation")])]),e._v(" page to learn how to install LuckPerms, then the")]),t("li",[t("strong",[t("a",{attrs:{href:"Usage"}},[e._v("Getting Started")])]),e._v(" page for how to start using it!")])]),t("p",[e._v("After that, if you've never used a permissions plugin before and want to find out more, we suggest you just start at the top and work your way down! A more to the point command reference can be found in the "),t("a",{attrs:{href:"Command-Usage"}},[e._v("Command Usage")]),e._v(" subpages.")]),t("h3",{attrs:{id:"op-doesnt-work-anymore",tabindex:"-1"}},[e._v("OP doesn't work anymore! "),t("a",{staticClass:"header-anchor",attrs:{href:"#op-doesnt-work-anymore"}},[e._v("🔗")])]),t("p",[e._v("When LuckPerms is installed, the built-in Hytale permission system is largely replaced. This is so LuckPerms can intercept and handle permissions checks for players.")]),t("p",[e._v("This means that:")]),t("ul",[t("li",[t("p",[e._v("The built-in "),t("code",{pre:!0},[e._v("/op")]),e._v(" command will not work as expected. Use LuckPerms to configure permissions instead.")])]),t("li",[t("p",[e._v("The built-in "),t("code",{pre:!0},[e._v("/perm")]),e._v(" command will not work as expected. You must use the LuckPerms "),t("code",{pre:!0},[e._v("/lp")]),e._v(" commands to configure permissions for players.")])])]),t("p",[e._v("If you want to replicate OP-like functionality (full access to "),t("strong",[e._v("all")]),e._v(" commands, features, etc), you can use the following LuckPerms commands:")]),t("ul",[t("li",[t("code",{pre:!0},[e._v("/lp user permission set *")]),e._v(" - give "),t("code",{pre:!0},[e._v("")]),e._v(" all permissions")]),t("li",[t("code",{pre:!0},[e._v("/lp group permission set *")]),e._v(" - give any user in "),t("code",{pre:!0},[e._v("")]),e._v(' all permissions (e.g. you may want to do this for your "admin" or "owner" group)')])]),t("h3",{attrs:{id:"compatibility-with-other-modsplugins",tabindex:"-1"}},[e._v("Compatibility with other mods/plugins "),t("a",{staticClass:"header-anchor",attrs:{href:"#compatibility-with-other-modsplugins"}},[e._v("🔗")])]),t("p",[e._v("LuckPerms aims to maintain compatibility with other mods checking permissions via "),t("code",{pre:!0},[e._v("CommandSender#hasPermission")]),e._v(" or "),t("code",{pre:!0},[e._v("PermissionsModule#hasPermission")]),e._v(". If you other mods check for permissions this way, everything should work absolutely fine!")]),t("p",[e._v("By default, LuckPerms will delegate permission checks for non-Player entities to the built-in Hytale permissions system. This means that you "),t("em",[e._v("can")]),e._v(" use the built-in "),t("code",{pre:!0},[e._v("/perm")]),e._v(" commands to configure permissions for "),t("strong",[e._v("non-Player")]),e._v(' NPCs, "service accounts", or the Nitrado "anonymous" user. Player permissions '),t("strong",[e._v("must")]),e._v(" be configured through LuckPerms.")]),t("h3",{attrs:{id:"finding-permissions-and-troubleshooting",tabindex:"-1"}},[e._v("Finding permissions and troubleshooting "),t("a",{staticClass:"header-anchor",attrs:{href:"#finding-permissions-and-troubleshooting"}},[e._v("🔗")])]),t("p",[e._v("If you don't know the permissions associated with a given command or feature, use the LuckPerms verbose feature! See the "),t("a",{attrs:{href:"Verbose"}},[e._v("Verbose")]),e._v(" wiki page for details.")]),t("p",[e._v("You can also use the built-in "),t("code",{pre:!0},[e._v("/help")]),e._v(" command, which will bring up a UI listing available commands and their corresponding permissions.")]),t("h3",{attrs:{id:"chat-formatting",tabindex:"-1"}},[e._v("Chat formatting "),t("a",{staticClass:"header-anchor",attrs:{href:"#chat-formatting"}},[e._v("🔗")])]),t("p",[e._v("In early beta versions, LuckPerms had a built-in chat formatter. Now that the mod/plugin ecosystem has developed a bit, this functionality has been removed from LuckPerms as there are better alternatives available. We suggest you use one of the following approaches format your chat.")]),t("h4",{attrs:{id:"mini-chat-formatter",tabindex:"-1"}},[e._v("mini-chat-formatter "),t("a",{staticClass:"header-anchor",attrs:{href:"#mini-chat-formatter"}},[e._v("🔗")])]),t("p",[t("a",{attrs:{href:"https://github.com/lucko/mini-chat-formatter"}},[e._v("mini-chat-formatter")]),e._v(" is written by the same author as LuckPerms and is a simple Hytale chat formatting mod. It has native integration with LuckPerms.")]),t("p",[e._v("Simply download and install it, then set the following config in "),t("code",{pre:!0},[e._v("mods/lucko_mini-chat-formatter/config.json")]),e._v(":")]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs language-json"}},[e._v("{\n "),t("span",{pre:!0,attrs:{class:"hljs-attr"}},[e._v('"Format"')]),e._v(": "),t("span",{pre:!0,attrs:{class:"hljs-string"}},[e._v('": "')]),e._v("\n}\n")])]),t("p",[e._v("The format string, as well as the prefix and suffix values support formatting using "),t("a",{attrs:{href:"https://docs.papermc.io/adventure/minimessage/format/"}},[e._v("MiniMessage")]),e._v(". (Yes, this is a Minecraft format, but it's good and it was easier to reuse it!)")]),t("p",[e._v('Formatting from the prefix and suffix will intentionally "'),t("em",[e._v("spill over")]),e._v('" into subsequent parts of the format.')]),t("p",[e._v("Some examples:")]),t("table",[t("thead",[t("tr",[t("th",[e._v("Command")]),t("th",[e._v("Result")])])]),t("tbody",[t("tr",[t("td",[t("code",{pre:!0},[e._v('/lp user lucko meta setprefix 10 "[ADMIN] "')])]),t("td",[t("img",{attrs:{src:r(5291),alt:""}})])]),t("tr",[t("td",[t("code",{pre:!0},[e._v('/lp user lucko meta setprefix 10 "[ADMIN] "')]),t("br"),e._v("(note the close "),t("code",{pre:!0},[e._v("")]),e._v(" tag).")]),t("td",[t("img",{attrs:{src:r(3312),alt:""}})])]),t("tr",[t("td",[t("code",{pre:!0},[e._v('/lp user lucko meta setprefix 10 "[ADMIN] "')]),t("br"),t("code",{pre:!0},[e._v('/lp user lucko meta setsuffix 10 ""')])]),t("td",[t("img",{attrs:{src:r(8137),alt:""}})])])])]),t("p",[e._v("Hopefully you get the idea. For more information:")]),t("ul",[t("li",[t("a",{attrs:{href:"https://github.com/lucko/mini-chat-formatter"}},[e._v("mini-chat-formatter")]),e._v(" (GitHub)")]),t("li",[t("a",{attrs:{href:"Prefixes,-Suffixes-&-Meta"}},[e._v("Prefixes, Suffixes & Meta")]),e._v(" (LP wiki)")]),t("li",[t("a",{attrs:{href:"https://docs.papermc.io/adventure/minimessage/format/"}},[e._v("MiniMessage format")]),e._v(" (PaperMC docs)")])]),t("h4",{attrs:{id:"advanced-chat-formatting-options",tabindex:"-1"}},[e._v("Advanced chat formatting options "),t("a",{staticClass:"header-anchor",attrs:{href:"#advanced-chat-formatting-options"}},[e._v("🔗")])]),t("p",[e._v("For more advanced chat formatting, we recommend using a dedicated chat plugin that integrates with LuckPerms. Some options include: HeroChat, EliteEssentials, EssentialsPlus, and others.")]),t("h3",{attrs:{id:"integrating-with-the-luckperms-api",tabindex:"-1"}},[e._v("Integrating with the LuckPerms API "),t("a",{staticClass:"header-anchor",attrs:{href:"#integrating-with-the-luckperms-api"}},[e._v("🔗")])]),t("p",[e._v("We have created a basic example plugin which demonstrates how to access the LuckPerms API from a Hytale plugin.")]),t("p",[t("a",{attrs:{href:"https://github.com/LuckPerms/api-cookbook-hytale"}},[e._v("https://github.com/LuckPerms/api-cookbook-hytale")])]),t("p",[e._v("The key things are:")]),t("h4",{attrs:{id:"1-declare-luckperms-as-a-dependency-or-optional-dependency",tabindex:"-1"}},[e._v("1) Declare LuckPerms as a dependency or optional dependency "),t("a",{staticClass:"header-anchor",attrs:{href:"#1-declare-luckperms-as-a-dependency-or-optional-dependency"}},[e._v("🔗")])]),t("p",[e._v("In your plugin "),t("code",{pre:!0},[e._v("manifest.json")]),e._v(", you must include either:")]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs language-json"}},[e._v("{\n "),t("span",{pre:!0,attrs:{class:"hljs-attr"}},[e._v('"Dependencies"')]),e._v(": {\n "),t("span",{pre:!0,attrs:{class:"hljs-attr"}},[e._v('"LuckPerms:LuckPerms"')]),e._v(": "),t("span",{pre:!0,attrs:{class:"hljs-string"}},[e._v('"*"')]),e._v("\n }\n}\n")])]),t("p",[e._v("or")]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs language-json"}},[e._v("{\n "),t("span",{pre:!0,attrs:{class:"hljs-attr"}},[e._v('"OptionalDependencies"')]),e._v(": {\n "),t("span",{pre:!0,attrs:{class:"hljs-attr"}},[e._v('"LuckPerms:LuckPerms"')]),e._v(": "),t("span",{pre:!0,attrs:{class:"hljs-string"}},[e._v('"*"')]),e._v("\n }\n}\n")])]),t("p",[e._v("This is because Hytale's plugin manager isolates classloaders between plugins, except if a dependency is declared.")]),t("h4",{attrs:{id:"2-obtain-the-api-instance-from-javapluginstart-or-later",tabindex:"-1"}},[e._v("2) Obtain the API instance from JavaPlugin.start() or later "),t("a",{staticClass:"header-anchor",attrs:{href:"#2-obtain-the-api-instance-from-javapluginstart-or-later"}},[e._v("🔗")])]),t("p",[e._v('LuckPerms performs it\'s final initialisation during the "start" phase, it is '),t("strong",[e._v("not")]),e._v(' ready during the "setup" phase.')]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs language-java"}},[e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-function"}},[e._v("@Override\n "),t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("protected")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("void")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-title"}},[e._v("setup")]),t("span",{pre:!0,attrs:{class:"hljs-params"}},[e._v("()")]),e._v(" ")]),e._v("{\n "),t("span",{pre:!0,attrs:{class:"hljs-comment"}},[e._v("// doesn't work! ❌")]),e._v("\n LuckPerms luckPerms = LuckPermsProvider.get();\n }\n\n "),t("span",{pre:!0,attrs:{class:"hljs-function"}},[e._v("@Override\n "),t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("protected")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-keyword"}},[e._v("void")]),e._v(" "),t("span",{pre:!0,attrs:{class:"hljs-title"}},[e._v("start")]),t("span",{pre:!0,attrs:{class:"hljs-params"}},[e._v("()")]),e._v(" ")]),e._v("{\n "),t("span",{pre:!0,attrs:{class:"hljs-comment"}},[e._v("// works! ✅")]),e._v("\n LuckPerms luckPerms = LuckPermsProvider.get();\n }\n")])]),t("h4",{attrs:{id:"3-playeradapter-and-contextmanager-expect-playerref",tabindex:"-1"}},[e._v("3) PlayerAdapter and ContextManager expect "),t("code",{pre:!0},[e._v("PlayerRef")]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#3-playeradapter-and-contextmanager-expect-playerref"}},[e._v("🔗")])]),t("p",[e._v('Methods in the LuckPerms API that expect a "player" object need to be passed a '),t("code",{pre:!0},[e._v("PlayerRef")]),e._v(", "),t("strong",[e._v("not")]),e._v(" a "),t("code",{pre:!0},[e._v("Player")]),e._v(".")]),t("p",[e._v("For example:")]),t("pre",{pre:!0},[t("code",{pre:!0,attrs:{"v-pre":"",class:"hljs language-java"}},[t("span",{pre:!0,attrs:{class:"hljs-comment"}},[e._v("// PlayerAdapter is a convenience class for converting")]),e._v("\n"),t("span",{pre:!0,attrs:{class:"hljs-comment"}},[e._v("// between Hytale's PlayerRef and LuckPerms' User objects")]),e._v("\nPlayerAdapter playerAdapter = LuckPermsProvider.get().getPlayerAdapter(PlayerRef.class);\n\nUser user = playerAdapter.getUser(playerRef);\nCachedPermissionData permissionData = playerAdapter.getPermissionData(playerRef);\nCachedMetaData metaData = playerAdapter.getMetaData(playerRef);\n\n"),t("span",{pre:!0,attrs:{class:"hljs-comment"}},[e._v("// Get the players prefix, for example :)")]),e._v("\nString prefix = metaData.getPrefix();\n")])]),t("h3",{attrs:{id:"other",tabindex:"-1"}},[e._v("Other "),t("a",{staticClass:"header-anchor",attrs:{href:"#other"}},[e._v("🔗")])]),t("p",[e._v("Please come and chat with us in "),t("a",{attrs:{href:"https://discord.gg/luckperms"}},[e._v("Discord")]),e._v(" for help. There is a dedicated channel for Hytale questions 😃")])])}],o=r(845),i={},n=(0,o.A)(i,s,a,!1,null,null,null),l=n.exports},3931:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return l}});var s=function(){var e=this;e._self._c;return e._m(0)},a=[function(){var e=this,t=e._self._c;return t("section",[t("h2",{attrs:{id:"step-1-download-the-luckperms-jar-file",tabindex:"-1"}},[e._v("Step 1: Download the LuckPerms jar file "),t("a",{staticClass:"header-anchor",attrs:{href:"#step-1-download-the-luckperms-jar-file"}},[e._v("🔗")])]),t("p",[e._v("The first thing you will need to do is download LuckPerms. You can always find the latest versions of LuckPerms for all of the platforms we support on our "),t("a",{attrs:{href:"https://luckperms.net/download"}},[e._v("downloads page")]),e._v(".")]),t("p",[e._v("Just click the link to download and save the file somewhere easily accessible.")]),t("ul",[t("li",[e._v("If you are running a "),t("em",[e._v("non-modded")]),e._v(" server for Minecraft: Java Edition, we recommend that you use "),t("a",{attrs:{href:"https://papermc.io/"}},[e._v("Paper")]),e._v(" as your server.")]),t("li",[e._v("If you are running a "),t("em",[e._v("modded")]),e._v(" server for Minecraft: Java Edition, we recommend that you use "),t("a",{attrs:{href:"https://fabricmc.net/"}},[e._v("Fabric")]),e._v(" or "),t("a",{attrs:{href:"https://neoforged.net/"}},[e._v("NeoForge")]),e._v(" as your server.")]),t("li",[e._v("If you are running a server for Minecraft: Bedrock Edition, we recommend that you use "),t("a",{attrs:{href:"https://cloudburstmc.org/"}},[e._v("Nukkit")]),e._v(" as your server.")]),t("li",[e._v("If you are running a proxy to connect multiple Minecraft servers together, we recommend that you use "),t("a",{attrs:{href:"https://velocitypowered.com/"}},[e._v("Velocity")]),e._v(" or "),t("a",{attrs:{href:"https://papermc.io/downloads#Waterfall"}},[e._v("Waterfall")]),e._v(" (BungeeCord) as your proxy.")]),t("li",[e._v("If you are running a server for Hytale - you don't have much choice (currently)! The vanilla server is fine!")])]),t("p",[e._v("If you haven't got anywhere to host your server yet, check out our partner "),t("a",{attrs:{href:"https://bisecthosting.com/luck"}},[e._v("BisectHosting")]),e._v(", who offer LuckPerms users 25% off all of their game server hosting plans.")]),t("h2",{attrs:{id:"step-2-add-the-luckperms-jar-to-your-servers-plugins-or-mods-folder",tabindex:"-1"}},[e._v("Step 2: Add the LuckPerms jar to your server's "),t("code",{pre:!0},[e._v("plugins")]),e._v(" or "),t("code",{pre:!0},[e._v("mods")]),e._v(" folder "),t("a",{staticClass:"header-anchor",attrs:{href:"#step-2-add-the-luckperms-jar-to-your-servers-plugins-or-mods-folder"}},[e._v("🔗")])]),t("p",[e._v("Next, we need to install LuckPerms onto the server. Make sure you have selected & installed the correct server jar, and that your server has successfully started at least once (this is to ensure the necessary folders will have been generated).")]),t("p",[e._v('Navigate to your hosting panel\'s "File Manager", and open the '),t("code",{pre:!0},[e._v("plugins")]),e._v(" folder (for Bukkit, Paper, etc) or "),t("code",{pre:!0},[e._v("mods")]),e._v(" folder (for Forge, Fabric, Sponge or Hytale).")]),t("p",[t("img",{attrs:{src:r(6883),alt:""}})]),t("p",[e._v('Once you\'re in the plugins or mods folder, click upload and when prompted, select the LuckPerms jar you downloaded in Step 1. Then click "Upload".')]),t("p",[t("img",{attrs:{src:r(4904),alt:""}})]),t("p",[e._v("If you've installed an older version of LuckPerms before, make sure to delete any existing jar files.")]),t("h2",{attrs:{id:"step-3-fully-restart-your-server",tabindex:"-1"}},[e._v("Step 3: Fully restart your server "),t("a",{staticClass:"header-anchor",attrs:{href:"#step-3-fully-restart-your-server"}},[e._v("🔗")])]),t("p",[e._v('Go to your server console and click "restart" or type '),t("code",{pre:!0},[e._v("stop")]),e._v(".")]),t("p",[t("img",{attrs:{src:r(3297),alt:""}})]),t("p",[e._v("When your server starts back up, LuckPerms will enable and generate the default configuration file. You should monitor the console to make sure LuckPerms starts up and enables correctly.")]),t("p",[t("img",{attrs:{src:r(8734),alt:""}})]),t("p",[e._v("LuckPerms is now installed and you can start using it right away! Move onto the "),t("a",{attrs:{href:"Usage"}},[e._v("Getting Started")]),e._v(" section of the wiki for more information about what to do next!")]),t("h2",{attrs:{id:"step-4-configure-luckperms",tabindex:"-1"}},[e._v("Step 4: Configure LuckPerms "),t("a",{staticClass:"header-anchor",attrs:{href:"#step-4-configure-luckperms"}},[e._v("🔗")])]),t("p",[e._v("To customize LuckPerms, you can make changes to its configuration file.")]),t("p",[e._v('Go back to the "File Manager", then open the '),t("code",{pre:!0},[e._v("plugins")]),e._v("/"),t("code",{pre:!0},[e._v("mods")]),e._v(" folder or "),t("code",{pre:!0},[e._v("config")]),e._v(" folder (for Sponge, Fabric or Forge). Then, open the "),t("code",{pre:!0},[e._v("LuckPerms")]),e._v(" folder within.")]),t("p",[t("img",{attrs:{src:r(4519),alt:""}})]),t("p",[e._v("Here you will find a number of files. The important ones are:")]),t("ul",[t("li",[t("code",{pre:!0},[e._v("config.yml")]),e._v(" or "),t("code",{pre:!0},[e._v("luckperms.conf")]),e._v(" - this is the LuckPerms configuration file.")]),t("li",[t("code",{pre:!0},[e._v("luckperms-h2-v2.mv.db")]),e._v(" - this is the database file LuckPerms uses to store your permissions data (don't delete it!)")])]),t("p",[e._v("You can click on the "),t("code",{pre:!0},[e._v("config.yml")]),e._v(" or "),t("code",{pre:!0},[e._v("luckperms.conf")]),e._v(" files to view/edit them.")]),t("h2",{attrs:{id:"step-5-optional-setup-luckperms-to-use-a-mysql-database-or-yml-files-to-store-data",tabindex:"-1"}},[e._v("Step 5 (optional): Setup LuckPerms to use a MySQL database or .yml files to store data "),t("a",{staticClass:"header-anchor",attrs:{href:"#step-5-optional-setup-luckperms-to-use-a-mysql-database-or-yml-files-to-store-data"}},[e._v("🔗")])]),t("p",[e._v("By default, LuckPerms stores all of it's data in a file-based database file called \"H2\". This is great because it's efficient and lets people start using LuckPerms without any extra config steps.")]),t("p",[e._v("However, if you would prefer for LuckPerms data to be stored in "),t("strong",[e._v("readable, editable .yml files")]),e._v(": open "),t("code",{pre:!0},[e._v("config.yml")]),e._v("/"),t("code",{pre:!0},[e._v("luckperms.conf")]),e._v(', scroll down to the "Storage Settings" section and set '),t("code",{pre:!0},[e._v("storage-method")]),e._v(" to "),t("code",{pre:!0},[e._v("yaml")]),e._v(". Then restart your server.")]),t("p",[e._v("If you run multiple servers in a network (or plan to do so in the future), then you will need to setup a remote database like "),t("strong",[e._v("MySQL")]),e._v(" for LuckPerms to store its data in.")]),t("p",[e._v('Most server hosts provide these for free! Find the "Databases" menu, then click "Create database". If prompted, choose "MySQL" as the database type and input a sensible name.')]),t("p",[t("img",{attrs:{src:r(3836),alt:""}})]),t("p",[e._v("After your database has been created, you should be presented with the following: a hostname, database name, username and password.")]),t("p",[t("img",{attrs:{src:r(5461),alt:""}})]),t("p",[e._v("Once you have these details, take a note of them (or duplicate your tab), then navigate back to the LuckPerms "),t("code",{pre:!0},[e._v("config.yml")]),e._v("/"),t("code",{pre:!0},[e._v("luckperms.conf")]),e._v(" file in the file manager and open it.")]),t("p",[e._v('Scroll down to "Storage Settings" secton and set '),t("code",{pre:!0},[e._v("storage-method")]),e._v(" to "),t("code",{pre:!0},[e._v("mysql")]),e._v(". Then fill out your database info under the "),t("code",{pre:!0},[e._v("data:")]),e._v(" section.")]),t("p",[t("img",{attrs:{src:r(6306),alt:""}})]),t("p",[e._v("Click save, then restart your server.")]),t("p",[e._v("You can then confirm in the console that MySQL has been setup correctly. If you see "),t("code",{pre:!0},[e._v("Loading storage provider... [MYSQL]")]),e._v(" followed by no errors, everything is working correctly!")]),t("p",[t("img",{attrs:{src:r(1499),alt:""}})]),t("p",[e._v("Remember, you'll need to complete these steps for all servers you have in your network.")]),t("h2",{attrs:{id:"faq",tabindex:"-1"}},[e._v("FAQ "),t("a",{staticClass:"header-anchor",attrs:{href:"#faq"}},[e._v("🔗")])]),t("h3",{attrs:{id:"where-do-i-install-luckperms",tabindex:"-1"}},[e._v("Where do I install LuckPerms? "),t("a",{staticClass:"header-anchor",attrs:{href:"#where-do-i-install-luckperms"}},[e._v("🔗")])]),t("ul",[t("li",[e._v("If you run a network of servers, you should install LuckPerms into the plugin folder of every server you want to use LuckPerms on.")]),t("li",[e._v("If you also want to use LuckPerms to apply permissions on your Velocity/BungeeCord proxy, you should place LuckPerms-Velocity.jar or LuckPerms-Bungee.jar into your proxy plugins folder too.")]),t("li",[e._v("If you choose to only install LuckPerms on your proxy, it will have no impact on any permission checks performed by plugins on any backend servers. If you want that functionality, you need to install LuckPerms on those servers too.")])]),t("h3",{attrs:{id:"can-i-just-install-luckperms-on-my-proxy",tabindex:"-1"}},[e._v("Can I just install LuckPerms on my proxy? "),t("a",{staticClass:"header-anchor",attrs:{href:"#can-i-just-install-luckperms-on-my-proxy"}},[e._v("🔗")])]),t("ul",[t("li",[e._v("The permissions system used on Velocity/BungeeCord is completely separate from the systems used on the backend server.")]),t("li",[e._v("You "),t("strong",[e._v("can")]),e._v(" just install it on the proxy, but any permission checks which are performed by backend Bukkit/Sponge plugins or Fabric/Forge mods will not be handled by LuckPerms.")])]),t("h2",{attrs:{id:"requirements",tabindex:"-1"}},[e._v("Requirements "),t("a",{staticClass:"header-anchor",attrs:{href:"#requirements"}},[e._v("🔗")])]),t("p",[e._v("LuckPerms has a few requirements. The "),t("em",[e._v("vast")]),e._v(" majority of servers will meet these requirements already.")]),t("ul",[t("li",[e._v("You need Java 11 or higher")]),t("li",[e._v("Your server needs access to the internet the first time you load LuckPerms")])]),t("hr"),t("h3",{attrs:{id:"java-11",tabindex:"-1"}},[e._v("Java 11 "),t("a",{staticClass:"header-anchor",attrs:{href:"#java-11"}},[e._v("🔗")])]),t("p",[e._v("Your server must be running "),t("strong",[e._v("Java 11")]),e._v(" or higher. LuckPerms does not work on older versions of Java.")]),t("p",[e._v("Some platforms / Minecraft releases necessitate even new versions of Java (e.g. Java 21) which LuckPerms also supports.")]),t("hr"),t("h3",{attrs:{id:"internet-connection",tabindex:"-1"}},[e._v("Internet Connection "),t("a",{staticClass:"header-anchor",attrs:{href:"#internet-connection"}},[e._v("🔗")])]),t("p",[e._v("LuckPerms uses a number of "),t("a",{attrs:{href:"External-connections"}},[e._v("external libraries")]),e._v(", some of which are "),t("a",{attrs:{href:"External-connections#downloading-libraries"}},[e._v("downloaded automatically at runtime")]),e._v(".")]),t("p",[e._v("If your server does not have an internet connection, you can install LP locally (where you do have an internet connection), and then copy the content of the "),t("code",{pre:!0},[e._v("/LuckPerms/libs/")]),e._v(" directory to your other server.")]),t("h2",{attrs:{id:"compatibility",tabindex:"-1"}},[e._v("Compatibility "),t("a",{staticClass:"header-anchor",attrs:{href:"#compatibility"}},[e._v("🔗")])]),t("p",[e._v("Some known compatibility issues are outlined below. In all cases, these issues are out of our control - and there's nothing we can do to resolve them in LuckPerms itself. 🙁")]),t("p",[e._v("Some of the compatibility issues are resolved in newer releases of the server - but the fixes are not backdated.")]),t("h3",{attrs:{id:"other-permission-plugins",tabindex:"-1"}},[e._v("Other permission plugins "),t("a",{staticClass:"header-anchor",attrs:{href:"#other-permission-plugins"}},[e._v("🔗")])]),t("p",[e._v("For LuckPerms to fully work & handle all permission checks, it must be the only permission plugin installed on your server (unless you want to perform automatic migration)!")]),t("hr"),t("h3",{attrs:{id:"older-minecraft-versions",tabindex:"-1"}},[e._v("Older Minecraft versions "),t("a",{staticClass:"header-anchor",attrs:{href:"#older-minecraft-versions"}},[e._v("🔗")])]),t("p",[e._v("The main release of LuckPerms is not compatible with Minecraft: Java Edition versions earlier than 1.8.8.")]),t("p",[e._v("A Bukkit LuckPerms release for 1.7.10 can be found on our "),t("a",{attrs:{href:"https://luckperms.net/download/"}},[e._v("downloads page")]),e._v(".")])])}],o=r(845),i={},n=(0,o.A)(i,s,a,!1,null,null,null),l=n.exports},1098:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return l}});var s=function(){var e=this;e._self._c;return e._m(0)},a=[function(){var e=this,t=e._self._c;return t("section",[t("h3",{attrs:{id:"overview",tabindex:"-1"}},[e._v("Overview "),t("a",{staticClass:"header-anchor",attrs:{href:"#overview"}},[e._v("🔗")])]),t("p",[e._v("All in-game messages in LuckPerms can be customised and translated using the translation system.")]),t("p",[e._v("The base translation file for "),t("em",[e._v("English")]),e._v(" can be found here: "),t("a",{attrs:{href:"https://github.com/LuckPerms/LuckPerms/blob/master/common/src/main/resources/luckperms_en.properties"}},[t("code",{pre:!0},[e._v("luckperms_en.properties")])])]),t("h2",{attrs:{id:"contributing",tabindex:"-1"}},[e._v("Contributing "),t("a",{staticClass:"header-anchor",attrs:{href:"#contributing"}},[e._v("🔗")])]),t("p",[e._v("Translation into other languages is organised on our "),t("a",{attrs:{href:"https://crowdin.com/project/luckperms"}},[e._v("Crowdin project")]),e._v(".")]),t("p",[e._v("We greatly appreciate any help! ❤️")]),t("h2",{attrs:{id:"using-official-community-provided-translations",tabindex:"-1"}},[e._v('Using "official" community provided translations '),t("a",{staticClass:"header-anchor",attrs:{href:"#using-official-community-provided-translations"}},[e._v("🔗")])]),t("p",[e._v("To view a list of installed/available translations, run "),t("code",{pre:!0},[e._v("/lp translations")]),e._v(".")]),t("p",[e._v("To install the latest community provided translations, run "),t("strong",[t("code",{pre:!0},[e._v("/lp translations install")])]),e._v(". (you can keep running this command to re-install and pull any updates)")]),t("p",[e._v("Players will be sent messages translated to the language selected in their Minecraft client settings, if possible. If no such translation exists, the built-in English messages are used.")]),t("h2",{attrs:{id:"using-custom-translations",tabindex:"-1"}},[e._v("Using custom translations "),t("a",{staticClass:"header-anchor",attrs:{href:"#using-custom-translations"}},[e._v("🔗")])]),t("p",[e._v("Translations can be loaded into the plugin as follows:")]),t("ul",[t("li",[e._v("Create the folder "),t("code",{pre:!0},[e._v("/plugins/LuckPerms/translations/")])]),t("li",[e._v("Export the modified "),t("code",{pre:!0},[e._v(".properties")]),e._v(" file, and rename it to "),t("code",{pre:!0},[e._v(".properties")]),e._v(". "),t("ul",[t("li",[e._v("A list of the supported locale ids can be found "),t("a",{attrs:{href:"https://www.localeplanet.com/java/"}},[e._v("here")])]),t("li",[e._v("For example, to load translations for "),t("em",[e._v("Spanish")]),e._v(" use "),t("code",{pre:!0},[e._v("es.properties")]),e._v(", or for "),t("em",[e._v("Portuguese (Brazil)")]),e._v(" use "),t("code",{pre:!0},[e._v("pt_BR.properties")])])])]),t("li",[e._v("Restart the server")])])])}],o=r(845),i={},n=(0,o.A)(i,s,a,!1,null,null,null),l=n.exports},1946:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return l}});var s=function(){var e=this;e._self._c;return e._m(0)},a=[function(){var e=this,t=e._self._c;return t("section",[t("p",[e._v("This is a sub-page of the main "),t("strong",[e._v("Command Usage")]),e._v(" page. "),t("a",{attrs:{href:"Command-Usage"}},[e._v("Click here to go back.")])]),t("p",[e._v("Key things to remember from the main page:")]),t("ul",[t("li",[e._v("You use "),t("code",{pre:!0},[e._v("/lpb")]),e._v(" instead of "),t("code",{pre:!0},[e._v("/lp")]),e._v(" when running the plugin on BungeeCord")]),t("li",[e._v("You use "),t("code",{pre:!0},[e._v("/lpv")]),e._v(" instead of "),t("code",{pre:!0},[e._v("/lp")]),e._v(" when running the plugin on Velocity")]),t("li",[e._v("Required arguments are marked with angle brackets - e.g. "),t("code",{pre:!0},[e._v("")])]),t("li",[e._v("Optional arguments are marked with square brackets - e.g. "),t("code",{pre:!0},[e._v("[optional]")])]),t("li",[e._v("If you want to include spaces in arguments, you must escape the argument with quotes - e.g. "),t("code",{pre:!0},[e._v('" "')])])]),t("hr"),t("h3",{attrs:{id:"index",tabindex:"-1"}},[e._v("Index "),t("a",{staticClass:"header-anchor",attrs:{href:"#index"}},[e._v("🔗")])]),t("ul",[t("li",[t("a",{attrs:{href:"#lp-log-recent-user-page"}},[e._v("/lp log "),t("code",{pre:!0},[e._v("recent")]),e._v(" [user] [page]")])]),t("li",[t("a",{attrs:{href:"#lp-log-search-query-page"}},[e._v("/lp log "),t("code",{pre:!0},[e._v("search")]),e._v(" [page]")])]),t("li",[t("a",{attrs:{href:"#lp-log-notify-onoff"}},[e._v("/lp log "),t("code",{pre:!0},[e._v("notify")]),e._v(" [on|off]")])]),t("li",[t("a",{attrs:{href:"#lp-log-userhistory-user-page"}},[e._v("/lp log "),t("code",{pre:!0},[e._v("userhistory")]),e._v(" [page]")])]),t("li",[t("a",{attrs:{href:"#lp-log-grouphistory-group-page"}},[e._v("/lp log "),t("code",{pre:!0},[e._v("grouphistory")]),e._v(" [page]")])]),t("li",[t("a",{attrs:{href:"#lp-log-trackhistory-track-page"}},[e._v("/lp log "),t("code",{pre:!0},[e._v("trackhistory")]),e._v(" [page]")])])]),t("hr"),t("h4",{attrs:{id:"lp-log-recent-user-page",tabindex:"-1"}},[t("code",{pre:!0},[e._v("/lp log recent [user] [page]")]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#lp-log-recent-user-page"}},[e._v("🔗")])]),t("p",[t("strong",[e._v("Permission")]),e._v(": luckperms.log.recent"),t("br"),t("strong",[e._v("Arguments")]),e._v(":")]),t("ul",[t("li",[t("code",{pre:!0},[e._v("[user]")]),e._v(" - the name/uuid of the user to filter by")]),t("li",[t("code",{pre:!0},[e._v("[page]")]),e._v(" - the page number to view")])]),t("p",[e._v("Shows a list of recent actions.")]),t("hr"),t("h4",{attrs:{id:"lp-log-search-query-page",tabindex:"-1"}},[t("code",{pre:!0},[e._v("/lp log search [page]")]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#lp-log-search-query-page"}},[e._v("🔗")])]),t("p",[t("strong",[e._v("Permission")]),e._v(": luckperms.log.search"),t("br"),t("strong",[e._v("Arguments")]),e._v(":")]),t("ul",[t("li",[t("code",{pre:!0},[e._v("")]),e._v(" - the query to search for")]),t("li",[t("code",{pre:!0},[e._v("[page]")]),e._v(" - the page number to view")])]),t("p",[e._v("Searches for log entries matching the given query.")]),t("hr"),t("h4",{attrs:{id:"lp-log-notify-onoff",tabindex:"-1"}},[t("code",{pre:!0},[e._v("/lp log notify [on|off]")]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#lp-log-notify-onoff"}},[e._v("🔗")])]),t("p",[t("strong",[e._v("Permission")]),e._v(": luckperms.log.notify"),t("br"),t("strong",[e._v("Arguments")]),e._v(":")]),t("ul",[t("li",[t("code",{pre:!0},[e._v("[on|off]")]),e._v(" - whether to enable or disable")])]),t("p",[e._v("Toggles log notifications for the sender executing the command.")]),t("hr"),t("h4",{attrs:{id:"lp-log-userhistory-user-page",tabindex:"-1"}},[t("code",{pre:!0},[e._v("/lp log userhistory [page]")]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#lp-log-userhistory-user-page"}},[e._v("🔗")])]),t("p",[t("strong",[e._v("Permission")]),e._v(": luckperms.log.userhistory"),t("br"),t("strong",[e._v("Arguments")]),e._v(":")]),t("ul",[t("li",[t("code",{pre:!0},[e._v("")]),e._v(" - the user to search for")]),t("li",[t("code",{pre:!0},[e._v("[page]")]),e._v(" - the page number to view")])]),t("p",[e._v("Searches for log entries acting upon the given user.")]),t("hr"),t("h4",{attrs:{id:"lp-log-grouphistory-group-page",tabindex:"-1"}},[t("code",{pre:!0},[e._v("/lp log grouphistory [page]")]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#lp-log-grouphistory-group-page"}},[e._v("🔗")])]),t("p",[t("strong",[e._v("Permission")]),e._v(": luckperms.log.grouphistory"),t("br"),t("strong",[e._v("Arguments")]),e._v(":")]),t("ul",[t("li",[t("code",{pre:!0},[e._v("")]),e._v(" - the group to search for")]),t("li",[t("code",{pre:!0},[e._v("[page]")]),e._v(" - the page number to view")])]),t("p",[e._v("Searches for log entries acting upon the given group.")]),t("hr"),t("h4",{attrs:{id:"lp-log-trackhistory-track-page",tabindex:"-1"}},[t("code",{pre:!0},[e._v("/lp log trackhistory [page]")]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#lp-log-trackhistory-track-page"}},[e._v("🔗")])]),t("p",[t("strong",[e._v("Permission")]),e._v(": luckperms.log.trackhistory"),t("br"),t("strong",[e._v("Arguments")]),e._v(":")]),t("ul",[t("li",[t("code",{pre:!0},[e._v("")]),e._v(" - the track to search for")]),t("li",[t("code",{pre:!0},[e._v("[page]")]),e._v(" - the page number to view")])]),t("p",[e._v("Searches for log entries acting upon the given track.")]),t("hr")])}],o=r(845),i={},n=(0,o.A)(i,s,a,!1,null,null,null),l=n.exports},3225:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return l}});var s=function(){var e=this;e._self._c;return e._m(0)},a=[function(){var e=this,t=e._self._c;return t("section",[t("p",[e._v("This is a sub-page of the main "),t("strong",[e._v("Command Usage")]),e._v(" page. "),t("a",{attrs:{href:"Command-Usage"}},[e._v("Click here to go back.")])]),t("p",[e._v("Key things to remember from the main page:")]),t("ul",[t("li",[e._v("You use "),t("code",{pre:!0},[e._v("/lpb")]),e._v(" instead of "),t("code",{pre:!0},[e._v("/lp")]),e._v(" when running the plugin on BungeeCord")]),t("li",[e._v("You use "),t("code",{pre:!0},[e._v("/lpv")]),e._v(" instead of "),t("code",{pre:!0},[e._v("/lp")]),e._v(" when running the plugin on Velocity")]),t("li",[e._v("Required arguments are marked with angle brackets - e.g. "),t("code",{pre:!0},[e._v("")])]),t("li",[e._v("Optional arguments are marked with square brackets - e.g. "),t("code",{pre:!0},[e._v("[optional]")])]),t("li",[e._v("If you want to include spaces in arguments, you must escape the argument with quotes - e.g. "),t("code",{pre:!0},[e._v('" "')])])]),t("hr"),t("h3",{attrs:{id:"index",tabindex:"-1"}},[e._v("Index "),t("a",{staticClass:"header-anchor",attrs:{href:"#index"}},[e._v("🔗")])]),t("ul",[t("li",[t("a",{attrs:{href:"#lp-usergroup-usergroup-meta-info"}},[t("code",{pre:!0},[e._v("info")])])]),t("li",[t("a",{attrs:{href:"#lp-usergroup-usergroup-meta-set-key-value-context"}},[t("code",{pre:!0},[e._v("set")]),e._v(" [context...]")])]),t("li",[t("a",{attrs:{href:"#lp-usergroup-usergroup-meta-unset-key-value-context"}},[t("code",{pre:!0},[e._v("unset")]),e._v(" [context...]")])]),t("li",[t("a",{attrs:{href:"#lp-usergroup-usergroup-meta-settemp-key-value-duration-temporary-modifier-context"}},[t("code",{pre:!0},[e._v("settemp")]),e._v(" [temporary modifier] [context...]")])]),t("li",[t("a",{attrs:{href:"#lp-usergroup-usergroup-meta-unsettemp-key-context"}},[t("code",{pre:!0},[e._v("unsettemp")]),e._v(" [context...]")])]),t("li",[t("a",{attrs:{href:"#lp-usergroup-usergroup-meta-addprefix-priority-prefix-context"}},[t("code",{pre:!0},[e._v("addprefix")]),e._v(" [context...]")])]),t("li",[t("a",{attrs:{href:"#lp-usergroup-usergroup-meta-addsuffix-priority-suffix-context"}},[t("code",{pre:!0},[e._v("addsuffix")]),e._v(" [context...]")])]),t("li",[t("a",{attrs:{href:"#lp-usergroup-usergroup-meta-setprefix-priority-prefix-context"}},[t("code",{pre:!0},[e._v("setprefix")]),e._v(" [priority] [context...]")])]),t("li",[t("a",{attrs:{href:"#lp-usergroup-usergroup-meta-setsuffix-priority-suffix-context"}},[t("code",{pre:!0},[e._v("setsuffix")]),e._v(" [priority] [context...]")])]),t("li",[t("a",{attrs:{href:"#lp-usergroup-usergroup-meta-removeprefix-priority-prefix-context"}},[t("code",{pre:!0},[e._v("removeprefix")]),e._v(" [prefix] [context...]")])]),t("li",[t("a",{attrs:{href:"#lp-usergroup-usergroup-meta-removesuffix-priority-suffix-context"}},[t("code",{pre:!0},[e._v("removesuffix")]),e._v(" [suffix] [context...]")])]),t("li",[t("a",{attrs:{href:"#lp-usergroup-usergroup-meta-addtempprefix-priority-prefix-duration-temporary-modifier-context"}},[t("code",{pre:!0},[e._v("addtempprefix")]),e._v(" [temporary modifier] [context...]")])]),t("li",[t("a",{attrs:{href:"#lp-usergroup-usergroup-meta-addtempsuffix-priority-suffix-duration-temporary-modifier-context"}},[t("code",{pre:!0},[e._v("addtempsuffix")]),e._v(" [temporary modifier] [context...]")])]),t("li",[t("a",{attrs:{href:"#lp-usergroup-usergroup-meta-settempprefix-priority-prefix-duration-temporary-modifier-context"}},[t("code",{pre:!0},[e._v("settempprefix")]),e._v(" [priority] [temporary modifier] [context...]")])]),t("li",[t("a",{attrs:{href:"#lp-usergroup-usergroup-meta-settempsuffix-priority-suffix-duration-temporary-modifier-context"}},[t("code",{pre:!0},[e._v("settempsuffix")]),e._v(" [priority] [temporary modifier] [context...]")])]),t("li",[t("a",{attrs:{href:"#lp-usergroup-usergroup-meta-removetempprefix-priority-prefix-context"}},[t("code",{pre:!0},[e._v("removetempprefix")]),e._v(" [prefix] [context...]")])]),t("li",[t("a",{attrs:{href:"#lp-usergroup-usergroup-meta-removetempsuffix-priority-suffix-context"}},[t("code",{pre:!0},[e._v("removetempsuffix")]),e._v(" [suffix] [context...]")])]),t("li",[t("a",{attrs:{href:"#lp-usergroup-usergroup-meta-clear-type-context"}},[t("code",{pre:!0},[e._v("clear")]),e._v(" [type] [context...]")])])]),t("hr"),t("h4",{attrs:{id:"lp-usergroup-usergroup-meta-info",tabindex:"-1"}},[t("code",{pre:!0},[e._v("/lp user/group meta info")]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#lp-usergroup-usergroup-meta-info"}},[e._v("🔗")])]),t("p",[t("strong",[e._v("Permission")]),e._v(": luckperms.user.meta.info or luckperms.group.meta.info"),t("br"),e._v(" Displays a list of a user/group's inherited meta (options), prefixes and suffixes.")]),t("hr"),t("h4",{attrs:{id:"lp-usergroup-usergroup-meta-set-key-value-context",tabindex:"-1"}},[t("code",{pre:!0},[e._v("/lp user/group meta set [context...]")]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#lp-usergroup-usergroup-meta-set-key-value-context"}},[e._v("🔗")])]),t("p",[t("strong",[e._v("Permission")]),e._v(": luckperms.user.meta.set or luckperms.group.meta.set"),t("br"),t("strong",[e._v("Arguments")]),e._v(":")]),t("ul",[t("li",[t("code",{pre:!0},[e._v("")]),e._v(" - the key to set")]),t("li",[t("code",{pre:!0},[e._v("")]),e._v(" - the value to set the key to")]),t("li",[t("code",{pre:!0},[e._v("[context...]")]),e._v(" - the "),t("a",{attrs:{href:"Context"}},[e._v("contexts")]),e._v(" to set the meta in")])]),t("p",[e._v("Sets a meta key value pair for a user/group. These values can be read and modified by other plugins using Vault or the Sponge Permissions API.")]),t("hr"),t("h4",{attrs:{id:"lp-usergroup-usergroup-meta-unset-key-value-context",tabindex:"-1"}},[t("code",{pre:!0},[e._v("/lp user/group meta unset [context...]")]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#lp-usergroup-usergroup-meta-unset-key-value-context"}},[e._v("🔗")])]),t("p",[t("strong",[e._v("Permission")]),e._v(": luckperms.user.meta.unset or luckperms.group.meta.unset"),t("br"),t("strong",[e._v("Arguments")]),e._v(":")]),t("ul",[t("li",[t("code",{pre:!0},[e._v("")]),e._v(" - the key to unset")]),t("li",[t("code",{pre:!0},[e._v("[context...]")]),e._v(" - the "),t("a",{attrs:{href:"Context"}},[e._v("contexts")]),e._v(" to unset the meta in")])]),t("p",[e._v("Unsets a meta key value pair for a user/group.")]),t("hr"),t("h4",{attrs:{id:"lp-usergroup-usergroup-meta-settemp-key-value-duration-temporary-modifier-context",tabindex:"-1"}},[t("code",{pre:!0},[e._v("/lp user/group meta settemp [temporary modifier] [context...]")]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#lp-usergroup-usergroup-meta-settemp-key-value-duration-temporary-modifier-context"}},[e._v("🔗")])]),t("p",[t("strong",[e._v("Permission")]),e._v(": luckperms.user.meta.settemp or luckperms.group.meta.settemp"),t("br"),t("strong",[e._v("Arguments")]),e._v(":")]),t("ul",[t("li",[t("code",{pre:!0},[e._v("")]),e._v(" - the key to set")]),t("li",[t("code",{pre:!0},[e._v("")]),e._v(" - the value to set the key to")]),t("li",[t("code",{pre:!0},[e._v("")]),e._v(" - the duration until the meta will expire")]),t("li",[t("code",{pre:!0},[e._v("[temporary modifier]")]),e._v(" - how the temporary permission should be applied")]),t("li",[t("code",{pre:!0},[e._v("[context...]")]),e._v(" - the "),t("a",{attrs:{href:"Context"}},[e._v("contexts")]),e._v(" to set the meta in")])]),t("p",[e._v('Sets a temporary meta key value pair for a user/group. Duration should either be a time period, or a unix timestamp when the permission will expire. e.g. "3d13h45m" will set the permission to expire in 3 days, 13 hours and 45 minutes time. "1482694200" will set the permission to expire at 7:30PM on 25th December 2016.'),t("br"),e._v(" LuckPerms uses a format for the relative time similar to the "),t("a",{attrs:{href:"https://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html"}},[e._v("SimpleDateFormat")]),e._v(" used in java. I.e. "),t("code",{pre:!0},[e._v("1M")]),e._v(" would be one month while "),t("code",{pre:!0},[e._v("1m")]),e._v(" would be one minute.")]),t("p",[e._v('The "temporary modifier" argument allows you to specify how the permission should be accumulated. You can pick between 3 different options.')]),t("table",[t("thead",[t("tr",[t("th",[e._v("Modifier key")]),t("th",[e._v("Description")])])]),t("tbody",[t("tr",[t("td",[t("code",{pre:!0},[e._v("accumulate")])]),t("td",[e._v("the duration of any existing nodes will just be added to the new duration")])]),t("tr",[t("td",[t("code",{pre:!0},[e._v("replace")])]),t("td",[e._v("the longest duration will be kept, any others nodes will be forgotten")])]),t("tr",[t("td",[t("code",{pre:!0},[e._v("deny")])]),t("td",[e._v("the command will just fail if you try to add a duplicate temporary node")])])])]),t("hr"),t("h4",{attrs:{id:"lp-usergroup-usergroup-meta-unsettemp-key-context",tabindex:"-1"}},[t("code",{pre:!0},[e._v("/lp user/group meta unsettemp [context...]")]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#lp-usergroup-usergroup-meta-unsettemp-key-context"}},[e._v("🔗")])]),t("p",[t("strong",[e._v("Permission")]),e._v(": luckperms.user.meta.unsettemp or luckperms.group.meta.unsettemp"),t("br"),t("strong",[e._v("Arguments")]),e._v(":")]),t("ul",[t("li",[t("code",{pre:!0},[e._v("")]),e._v(" - the key to unset")]),t("li",[t("code",{pre:!0},[e._v("[context...]")]),e._v(" - the "),t("a",{attrs:{href:"Context"}},[e._v("contexts")]),e._v(" to unset the meta in")])]),t("p",[e._v("Unsets a temporary meta key value pair for a user/group.")]),t("hr"),t("h4",{attrs:{id:"lp-usergroup-usergroup-meta-addprefix-priority-prefix-context",tabindex:"-1"}},[t("code",{pre:!0},[e._v("/lp user/group meta addprefix [context...]")]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#lp-usergroup-usergroup-meta-addprefix-priority-prefix-context"}},[e._v("🔗")])]),t("p",[t("strong",[e._v("Permission")]),e._v(": luckperms.user.meta.addprefix or luckperms.group.meta.addprefix"),t("br"),t("strong",[e._v("Arguments")]),e._v(":")]),t("ul",[t("li",[t("code",{pre:!0},[e._v("")]),e._v(" - the priority to add the prefix at")]),t("li",[t("code",{pre:!0},[e._v("")]),e._v(" - the actual prefix string")]),t("li",[t("code",{pre:!0},[e._v("[context...]")]),e._v(" - the "),t("a",{attrs:{href:"Context"}},[e._v("contexts")]),e._v(" to add the prefix in")])]),t("p",[e._v('Adds a prefix to a user/group. You can wrap the prefix in " " quotes to escape spaces.')]),t("hr"),t("h4",{attrs:{id:"lp-usergroup-usergroup-meta-addsuffix-priority-suffix-context",tabindex:"-1"}},[t("code",{pre:!0},[e._v("/lp user/group meta addsuffix [context...]")]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#lp-usergroup-usergroup-meta-addsuffix-priority-suffix-context"}},[e._v("🔗")])]),t("p",[t("strong",[e._v("Permission")]),e._v(": luckperms.user.meta.addsuffix or luckperms.group.meta.addsuffix"),t("br"),t("strong",[e._v("Arguments")]),e._v(":")]),t("ul",[t("li",[t("code",{pre:!0},[e._v("")]),e._v(" - the priority to add the suffix at")]),t("li",[t("code",{pre:!0},[e._v("")]),e._v(" - the actual suffix string")]),t("li",[t("code",{pre:!0},[e._v("[context...]")]),e._v(" - the "),t("a",{attrs:{href:"Context"}},[e._v("contexts")]),e._v(" to add the suffix in")])]),t("p",[e._v('Adds a suffix to a user/group. You can wrap the suffix in " " quotes to escape spaces.')]),t("hr"),t("h4",{attrs:{id:"lp-usergroup-usergroup-meta-setprefix-priority-prefix-context",tabindex:"-1"}},[t("code",{pre:!0},[e._v("/lp user/group meta setprefix [priority] [context...]")]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#lp-usergroup-usergroup-meta-setprefix-priority-prefix-context"}},[e._v("🔗")])]),t("p",[t("strong",[e._v("Permission")]),e._v(": luckperms.user.meta.setprefix or luckperms.group.meta.setprefix"),t("br"),t("strong",[e._v("Arguments")]),e._v(":")]),t("ul",[t("li",[t("code",{pre:!0},[e._v("[priority]")]),e._v(" - the priority to set the prefix at")]),t("li",[t("code",{pre:!0},[e._v("")]),e._v(" - the actual prefix string")]),t("li",[t("code",{pre:!0},[e._v("[context...]")]),e._v(" - the "),t("a",{attrs:{href:"Context"}},[e._v("contexts")]),e._v(" to set the prefix in")])]),t("p",[e._v('Sets a prefix for a user/group. You can wrap the prefix in " " quotes to escape spaces. This is different from the '),t("code",{pre:!0},[e._v("addprefix")]),e._v(" command in that existing prefixes set in the same context are removed when the new prefix is added. Another difference is that the priority argument is optional in the setprefix command - LuckPerms will determine an appropriate value for the priority when the command is ran.")]),t("hr"),t("h4",{attrs:{id:"lp-usergroup-usergroup-meta-setsuffix-priority-suffix-context",tabindex:"-1"}},[t("code",{pre:!0},[e._v("/lp user/group meta setsuffix [priority] [context...]")]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#lp-usergroup-usergroup-meta-setsuffix-priority-suffix-context"}},[e._v("🔗")])]),t("p",[t("strong",[e._v("Permission")]),e._v(": luckperms.user.meta.setsuffix or luckperms.group.meta.setsuffix"),t("br"),t("strong",[e._v("Arguments")]),e._v(":")]),t("ul",[t("li",[t("code",{pre:!0},[e._v("[priority]")]),e._v(" - the priority to set the suffix at")]),t("li",[t("code",{pre:!0},[e._v("")]),e._v(" - the actual suffix string")]),t("li",[t("code",{pre:!0},[e._v("[context...]")]),e._v(" - the "),t("a",{attrs:{href:"Context"}},[e._v("contexts")]),e._v(" to set the suffix in")])]),t("p",[e._v('Sets a suffix for a user/group. You can wrap the suffix in " " quotes to escape spaces. This is different from the '),t("code",{pre:!0},[e._v("addsuffix")]),e._v(" command in that existing suffixes set in the same context are removed when the new suffix is added. Another difference is that the priority argument is optional in the setsuffix command - LuckPerms will determine an appropriate value for the priority when the command is ran.")]),t("hr"),t("h4",{attrs:{id:"lp-usergroup-usergroup-meta-removeprefix-priority-prefix-context",tabindex:"-1"}},[t("code",{pre:!0},[e._v("/lp user/group meta removeprefix [prefix] [context...]")]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#lp-usergroup-usergroup-meta-removeprefix-priority-prefix-context"}},[e._v("🔗")])]),t("p",[t("strong",[e._v("Permission")]),e._v(": luckperms.user.meta.removeprefix or luckperms.group.meta.removeprefix"),t("br"),t("strong",[e._v("Arguments")]),e._v(":")]),t("ul",[t("li",[t("code",{pre:!0},[e._v("")]),e._v(" - the priority to remove the prefix at")]),t("li",[t("code",{pre:!0},[e._v("[prefix]")]),e._v(" - the actual prefix string")]),t("li",[t("code",{pre:!0},[e._v("[context...]")]),e._v(" - the "),t("a",{attrs:{href:"Context"}},[e._v("contexts")]),e._v(" to remove the prefix in")])]),t("p",[e._v('Removes a prefix from a user/group. You can wrap the prefix in " " quotes to escape spaces.')]),t("hr"),t("h4",{attrs:{id:"lp-usergroup-usergroup-meta-removesuffix-priority-suffix-context",tabindex:"-1"}},[t("code",{pre:!0},[e._v("/lp user/group meta removesuffix [suffix] [context...]")]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#lp-usergroup-usergroup-meta-removesuffix-priority-suffix-context"}},[e._v("🔗")])]),t("p",[t("strong",[e._v("Permission")]),e._v(": luckperms.user.meta.removesuffix or luckperms.group.meta.removesuffix"),t("br"),t("strong",[e._v("Arguments")]),e._v(":")]),t("ul",[t("li",[t("code",{pre:!0},[e._v("")]),e._v(" - the priority to remove the suffix at")]),t("li",[t("code",{pre:!0},[e._v("[suffix]")]),e._v(" - the actual suffix string")]),t("li",[t("code",{pre:!0},[e._v("[context...]")]),e._v(" - the "),t("a",{attrs:{href:"Context"}},[e._v("contexts")]),e._v(" to remove the suffix in")])]),t("p",[e._v('Removes a suffix from a user/group. You can wrap the suffix in " " quotes to escape spaces.')]),t("hr"),t("h4",{attrs:{id:"lp-usergroup-usergroup-meta-addtempprefix-priority-prefix-duration-temporary-modifier-context",tabindex:"-1"}},[t("code",{pre:!0},[e._v("/lp user/group meta addtempprefix [temporary modifier] [context...]")]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#lp-usergroup-usergroup-meta-addtempprefix-priority-prefix-duration-temporary-modifier-context"}},[e._v("🔗")])]),t("p",[t("strong",[e._v("Permission")]),e._v(": luckperms.user.meta.addtempprefix or luckperms.group.meta.addtempprefix"),t("br"),t("strong",[e._v("Arguments")]),e._v(":")]),t("ul",[t("li",[t("code",{pre:!0},[e._v("")]),e._v(" - the priority to add the prefix at")]),t("li",[t("code",{pre:!0},[e._v("")]),e._v(" - the actual prefix string")]),t("li",[t("code",{pre:!0},[e._v("")]),e._v(" - the duration until the prefix will expire")]),t("li",[t("code",{pre:!0},[e._v("[temporary modifier]")]),e._v(" - how the temporary permission should be applied")]),t("li",[t("code",{pre:!0},[e._v("[context...]")]),e._v(" - the "),t("a",{attrs:{href:"Context"}},[e._v("contexts")]),e._v(" to add the prefix in")])]),t("p",[e._v('Adds a prefix to a user/group temporarily. You can wrap the prefix in " " quotes to escape spaces. Duration should either be a time period, or a unix timestamp when the permission will expire. e.g. "3d13h45m" will set the permission to expire in 3 days, 13 hours and 45 minutes time. "1482694200" will set the permission to expire at 7:30PM on 25th December 2016.'),t("br"),e._v(" LuckPerms uses a format for the relative time similar to the "),t("a",{attrs:{href:"https://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html"}},[e._v("SimpleDateFormat")]),e._v(" used in java. I.e. "),t("code",{pre:!0},[e._v("1M")]),e._v(" would be one month while "),t("code",{pre:!0},[e._v("1m")]),e._v(" would be one minute.")]),t("p",[e._v('The "temporary modifier" argument allows you to specify how the permission should be accumulated. You can pick between 3 different options.')]),t("table",[t("thead",[t("tr",[t("th",[e._v("Modifier key")]),t("th",[e._v("Description")])])]),t("tbody",[t("tr",[t("td",[t("code",{pre:!0},[e._v("accumulate")])]),t("td",[e._v("the duration of any existing nodes will just be added to the new duration")])]),t("tr",[t("td",[t("code",{pre:!0},[e._v("replace")])]),t("td",[e._v("the longest duration will be kept, any others nodes will be forgotten")])]),t("tr",[t("td",[t("code",{pre:!0},[e._v("deny")])]),t("td",[e._v("the command will just fail if you try to add a duplicate temporary node")])])])]),t("hr"),t("h4",{attrs:{id:"lp-usergroup-usergroup-meta-addtempsuffix-priority-suffix-duration-temporary-modifier-context",tabindex:"-1"}},[t("code",{pre:!0},[e._v("/lp user/group meta addtempsuffix [temporary modifier] [context...]")]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#lp-usergroup-usergroup-meta-addtempsuffix-priority-suffix-duration-temporary-modifier-context"}},[e._v("🔗")])]),t("p",[t("strong",[e._v("Permission")]),e._v(": luckperms.user.meta.addtempsuffix or luckperms.group.meta.addtempsuffix"),t("br"),t("strong",[e._v("Arguments")]),e._v(":")]),t("ul",[t("li",[t("code",{pre:!0},[e._v("")]),e._v(" - the priority to add the suffix at")]),t("li",[t("code",{pre:!0},[e._v("")]),e._v(" - the actual suffix string")]),t("li",[t("code",{pre:!0},[e._v("")]),e._v(" - the duration until the suffix will expire")]),t("li",[t("code",{pre:!0},[e._v("[temporary modifier]")]),e._v(" - how the temporary permission should be applied")]),t("li",[t("code",{pre:!0},[e._v("[context...]")]),e._v(" - the "),t("a",{attrs:{href:"Context"}},[e._v("contexts")]),e._v(" to add the suffix in")])]),t("p",[e._v('Adds a suffix to a user/group temporarily. You can wrap the suffix in " " quotes to escape spaces. Duration should either be a time period, or a unix timestamp when the permission will expire. e.g. "3d13h45m" will set the permission to expire in 3 days, 13 hours and 45 minutes time. "1482694200" will set the permission to expire at 7:30PM on 25th December 2016.'),t("br"),e._v(" LuckPerms uses a format for the relative time similar to the "),t("a",{attrs:{href:"https://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html"}},[e._v("SimpleDateFormat")]),e._v(" used in java. I.e. "),t("code",{pre:!0},[e._v("1M")]),e._v(" would be one month while "),t("code",{pre:!0},[e._v("1m")]),e._v(" would be one minute.")]),t("p",[e._v('The "temporary modifier" argument allows you to specify how the permission should be accumulated. You can pick between 3 different options.')]),t("table",[t("thead",[t("tr",[t("th",[e._v("Modifier key")]),t("th",[e._v("Description")])])]),t("tbody",[t("tr",[t("td",[t("code",{pre:!0},[e._v("accumulate")])]),t("td",[e._v("the duration of any existing nodes will just be added to the new duration")])]),t("tr",[t("td",[t("code",{pre:!0},[e._v("replace")])]),t("td",[e._v("the longest duration will be kept, any others nodes will be forgotten")])]),t("tr",[t("td",[t("code",{pre:!0},[e._v("deny")])]),t("td",[e._v("the command will just fail if you try to add a duplicate temporary node")])])])]),t("hr"),t("h4",{attrs:{id:"lp-usergroup-usergroup-meta-settempprefix-priority-prefix-duration-temporary-modifier-context",tabindex:"-1"}},[t("code",{pre:!0},[e._v("/lp user/group meta settempprefix [priority] [temporary modifier] [context...]")]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#lp-usergroup-usergroup-meta-settempprefix-priority-prefix-duration-temporary-modifier-context"}},[e._v("🔗")])]),t("p",[t("strong",[e._v("Permission")]),e._v(": luckperms.user.meta.settempprefix or luckperms.group.meta.settempprefix"),t("br"),t("strong",[e._v("Arguments")]),e._v(":")]),t("ul",[t("li",[t("code",{pre:!0},[e._v("[priority]")]),e._v(" - the priority to set the prefix at")]),t("li",[t("code",{pre:!0},[e._v("")]),e._v(" - the actual prefix string")]),t("li",[t("code",{pre:!0},[e._v("")]),e._v(" - the duration until the prefix will expire")]),t("li",[t("code",{pre:!0},[e._v("[temporary modifier]")]),e._v(" - how the temporary permission should be applied")]),t("li",[t("code",{pre:!0},[e._v("[context...]")]),e._v(" - the "),t("a",{attrs:{href:"Context"}},[e._v("contexts")]),e._v(" to set the prefix in")])]),t("p",[e._v('Sets a prefix to a user/group temporarily. You can wrap the prefix in " " quotes to escape spaces. This is different from the '),t("code",{pre:!0},[e._v("addtempprefix")]),e._v(" command in that existing prefixes set in the same context are removed when the new prefix is added. Another difference is that the priority argument is optional in the settempprefix command - LuckPerms will dertermine an appropriate value for the priority when the command is ran.")]),t("p",[e._v('Duration should either be a time period, or a unix timestamp when the permission will expire. e.g. "3d13h45m" will set the permission to expire in 3 days, 13 hours and 45 minutes time. "1482694200" will set the permission to expire at 7:30PM on 25th December 2016.'),t("br"),e._v(" LuckPerms uses a format for the relative time similar to the "),t("a",{attrs:{href:"https://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html"}},[e._v("SimpleDateFormat")]),e._v(" used in java. I.e. "),t("code",{pre:!0},[e._v("1M")]),e._v(" would be one month while "),t("code",{pre:!0},[e._v("1m")]),e._v(" would be one minute.")]),t("p",[e._v('The "temporary modifier" argument allows you to specify how the permission should be accumulated. You can pick between 3 different options.')]),t("table",[t("thead",[t("tr",[t("th",[e._v("Modifier key")]),t("th",[e._v("Description")])])]),t("tbody",[t("tr",[t("td",[t("code",{pre:!0},[e._v("accumulate")])]),t("td",[e._v("the duration of any existing nodes will just be added to the new duration")])]),t("tr",[t("td",[t("code",{pre:!0},[e._v("replace")])]),t("td",[e._v("the longest duration will be kept, any others nodes will be forgotten")])]),t("tr",[t("td",[t("code",{pre:!0},[e._v("deny")])]),t("td",[e._v("the command will just fail if you try to add a duplicate temporary node")])])])]),t("hr"),t("h4",{attrs:{id:"lp-usergroup-usergroup-meta-settempsuffix-priority-suffix-duration-temporary-modifier-context",tabindex:"-1"}},[t("code",{pre:!0},[e._v("/lp user/group meta settempsuffix [priority] [temporary modifier] [context...]")]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#lp-usergroup-usergroup-meta-settempsuffix-priority-suffix-duration-temporary-modifier-context"}},[e._v("🔗")])]),t("p",[t("strong",[e._v("Permission")]),e._v(": luckperms.user.meta.settempsuffix or luckperms.group.meta.settempsuffix"),t("br"),t("strong",[e._v("Arguments")]),e._v(":")]),t("ul",[t("li",[t("code",{pre:!0},[e._v("[priority]")]),e._v(" - the priority to set the suffix at")]),t("li",[t("code",{pre:!0},[e._v("")]),e._v(" - the actual suffix string")]),t("li",[t("code",{pre:!0},[e._v("")]),e._v(" - the duration until the suffix will expire")]),t("li",[t("code",{pre:!0},[e._v("[temporary modifier]")]),e._v(" - how the temporary permission should be applied")]),t("li",[t("code",{pre:!0},[e._v("[context...]")]),e._v(" - the "),t("a",{attrs:{href:"Context"}},[e._v("contexts")]),e._v(" to set the suffix in")])]),t("p",[e._v('Sets a suffix to a user/group temporarily. You can wrap the suffix in " " quotes to escape spaces. This is different from the '),t("code",{pre:!0},[e._v("addtempsuffix")]),e._v(" command in that existing suffixes set in the same context are removed when the new suffix is added. Another difference is that the priority argument is optional in the settempsuffix command - LuckPerms will dertermine an appropriate value for the priority when the command is ran.")]),t("p",[e._v('Duration should either be a time period, or a unix timestamp when the permission will expire. e.g. "3d13h45m" will set the permission to expire in 3 days, 13 hours and 45 minutes time. "1482694200" will set the permission to expire at 7:30PM on 25th December 2016.'),t("br"),e._v(" LuckPerms uses a format for the relative time similar to the "),t("a",{attrs:{href:"https://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html"}},[e._v("SimpleDateFormat")]),e._v(" used in java. I.e. "),t("code",{pre:!0},[e._v("1M")]),e._v(" would be one month while "),t("code",{pre:!0},[e._v("1m")]),e._v(" would be one minute.")]),t("p",[e._v('The "temporary modifier" argument allows you to specify how the permission should be accumulated. You can pick between 3 different options.')]),t("table",[t("thead",[t("tr",[t("th",[e._v("Modifier key")]),t("th",[e._v("Description")])])]),t("tbody",[t("tr",[t("td",[t("code",{pre:!0},[e._v("accumulate")])]),t("td",[e._v("the duration of any existing nodes will just be added to the new duration")])]),t("tr",[t("td",[t("code",{pre:!0},[e._v("replace")])]),t("td",[e._v("the longest duration will be kept, any others nodes will be forgotten")])]),t("tr",[t("td",[t("code",{pre:!0},[e._v("deny")])]),t("td",[e._v("the command will just fail if you try to add a duplicate temporary node")])])])]),t("hr"),t("h4",{attrs:{id:"lp-usergroup-usergroup-meta-removetempprefix-priority-prefix-context",tabindex:"-1"}},[t("code",{pre:!0},[e._v("/lp user/group meta removetempprefix [prefix] [context...]")]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#lp-usergroup-usergroup-meta-removetempprefix-priority-prefix-context"}},[e._v("🔗")])]),t("p",[t("strong",[e._v("Permission")]),e._v(": luckperms.user.meta.removetempprefix or luckperms.group.meta.removetempprefix"),t("br"),t("strong",[e._v("Arguments")]),e._v(":")]),t("ul",[t("li",[t("code",{pre:!0},[e._v("")]),e._v(" - the priority to remove the prefix at")]),t("li",[t("code",{pre:!0},[e._v("[prefix]")]),e._v(" - the actual prefix string")]),t("li",[t("code",{pre:!0},[e._v("[context...]")]),e._v(" - the "),t("a",{attrs:{href:"Context"}},[e._v("contexts")]),e._v(" to remove the prefix in")])]),t("p",[e._v('Removes a tempoary prefix from a user/group. You can wrap the prefix in " " quotes to escape spaces.')]),t("hr"),t("h4",{attrs:{id:"lp-usergroup-usergroup-meta-removetempsuffix-priority-suffix-context",tabindex:"-1"}},[t("code",{pre:!0},[e._v("/lp user/group meta removetempsuffix [suffix] [context...]")]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#lp-usergroup-usergroup-meta-removetempsuffix-priority-suffix-context"}},[e._v("🔗")])]),t("p",[t("strong",[e._v("Permission")]),e._v(": luckperms.user.meta.removetempsuffix or luckperms.group.meta.removetempsuffix"),t("br"),t("strong",[e._v("Arguments")]),e._v(":")]),t("ul",[t("li",[t("code",{pre:!0},[e._v("")]),e._v(" - the priority to remove the suffix at")]),t("li",[t("code",{pre:!0},[e._v("[suffix]")]),e._v(" - the actual suffix string")]),t("li",[t("code",{pre:!0},[e._v("[context...]")]),e._v(" - the "),t("a",{attrs:{href:"Context"}},[e._v("contexts")]),e._v(" to remove the suffix in")])]),t("p",[e._v('Removes a temporary suffix from a user/group. You can wrap the suffix in " " quotes to escape spaces.')]),t("hr"),t("h4",{attrs:{id:"lp-usergroup-usergroup-meta-clear-type-context",tabindex:"-1"}},[t("code",{pre:!0},[e._v("/lp user/group meta clear [type] [context...]")]),e._v(" "),t("a",{staticClass:"header-anchor",attrs:{href:"#lp-usergroup-usergroup-meta-clear-type-context"}},[e._v("🔗")])]),t("p",[t("strong",[e._v("Permission")]),e._v(": luckperms.user.meta.clear or luckperms.group.meta.clear"),t("br"),t("strong",[e._v("Arguments")]),e._v(":")]),t("ul",[t("li",[t("code",{pre:!0},[e._v("[type]")]),e._v(" - the type of meta you would like to clear")])]),t("table",[t("thead",[t("tr",[t("th",[e._v("Type")]),t("th",[e._v("Meaning")])])]),t("tbody",[t("tr",[t("td",[t("code",{pre:!0},[e._v("any")]),e._v("/"),t("code",{pre:!0},[e._v("all")]),e._v("/"),t("code",{pre:!0},[e._v("*")])]),t("td",[e._v("Default type - clears all meta")])]),t("tr",[t("td",[t("code",{pre:!0},[e._v("chat")]),e._v("/"),t("code",{pre:!0},[e._v("chatmeta")])]),t("td",[e._v("Clears all prefixes and suffixes")])]),t("tr",[t("td",[t("code",{pre:!0},[e._v("meta")])]),t("td",[e._v("Clears non-chat meta (No prefixes/suffixes)")])]),t("tr",[t("td",[t("code",{pre:!0},[e._v("prefix")]),e._v("/"),t("code",{pre:!0},[e._v("prefixes")])]),t("td",[e._v("Clears prefixes")])]),t("tr",[t("td",[t("code",{pre:!0},[e._v("suffix")]),e._v("/"),t("code",{pre:!0},[e._v("suffixes")])]),t("td",[e._v("Clears suffixes")])])])]),t("ul",[t("li",[t("code",{pre:!0},[e._v("[context...]")]),e._v(" - the "),t("a",{attrs:{href:"Context"}},[e._v("contexts")]),e._v(" to filter by")])]),t("p",[e._v("Removes all meta/prefixes/suffixes.")]),t("hr")])}],o=r(845),i={},n=(0,o.A)(i,s,a,!1,null,null,null),l=n.exports},3553:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return l}});var s=function(){var e=this;e._self._c;return e._m(0)},a=[function(){var e=this,t=e._self._c;return t("section",[t("p",[e._v("This page is a continuation of the main "),t("a",{attrs:{href:"Migration"}},[e._v("Migration guide")]),e._v(".")]),t("p",[e._v("Once you've followed the instructions to move your data from GroupManager or PermissionsEx to LuckPerms, the resources on this page will hopefully help you to quickly get up to speed!")]),t("p",[e._v("Firstly, there are some tables below which compare the commands in GroupManager and PermissionsEx with their "),t("strong",[e._v("equivalents")]),e._v(" in LuckPerms. If you knew how to do something in GM or PEX, hopefully these tables will help you to quickly find how to do it in LuckPerms.")]),t("p",[e._v("Of course, there is also the "),t("a",{attrs:{href:"Command-Usage"}},[e._v("full command documentation for LuckPerms")]),e._v(", which is probably better to get used to!")]),t("p",[e._v("Secondly, there is an additional resource that you can install to your server that will allow you to keep using "),t("em",[e._v("some")]),e._v(" PermissionsEx and GroupManager commands, and have them automatically routed to LuckPerms. You can find more information about that "),t("a",{attrs:{href:"https://github.com/LuckPerms/LuckPermsCompat"}},[e._v("here")]),e._v('. However, generally, we encourage that you "rip off the bandaid" so to speak and get used to the '),t("em",[e._v("proper")]),e._v(" LuckPerms commands right away - with a little time they will become 2nd nature just like GM or PEX commands once did!")]),t("p",[e._v("Good luck, and we hope you enjoy using LuckPerms!")]),t("h4",{attrs:{id:"groupmanager-command-equivalents",tabindex:"-1"}},[e._v("GroupManager command equivalents "),t("a",{staticClass:"header-anchor",attrs:{href:"#groupmanager-command-equivalents"}},[e._v("🔗")])]),t("table",[t("thead",[t("tr",[t("th",[e._v("GroupManager")]),t("th",[e._v("LuckPerms")])])]),t("tbody",[t("tr",[t("td",[e._v("manuadd ")]),t("td",[e._v("lp user parent set ")])]),t("tr",[t("td",[e._v("manudel ")]),t("td",[e._v("lp user clear")])]),t("tr",[t("td",[e._v("manuaddsub ")]),t("td",[e._v("lp user parent add ")])]),t("tr",[t("td",[e._v("manudelsub ")]),t("td",[e._v("lp user parent remove ")])]),t("tr",[t("td",[e._v("manpromote ")]),t("td",[e._v("lp user promote ")])]),t("tr",[t("td",[e._v("mandemote ")]),t("td",[e._v("lp user demote ")])]),t("tr",[t("td",[e._v("manwhois ")]),t("td",[e._v("lp user info")])]),t("tr",[t("td",[e._v("manuaddp ")]),t("td",[e._v("lp user permission set true")])]),t("tr",[t("td",[e._v("manudelp ")]),t("td",[e._v("lp user permission unset ")])]),t("tr",[t("td",[e._v("manulistp ")]),t("td",[e._v("lp user permission info")])]),t("tr",[t("td",[e._v("manucheckp ")]),t("td",[e._v("lp user haspermission ")])]),t("tr",[t("td",[e._v("manuaddv prefix ")]),t("td",[e._v("lp user meta addprefix ")])]),t("tr",[t("td",[e._v("manuaddv suffix ")]),t("td",[e._v("lp user meta addsuffix ")])]),t("tr",[t("td",[e._v("manuaddv ")]),t("td",[e._v("lp user meta set ")])]),t("tr",[t("td",[e._v("manudelv ")]),t("td",[e._v("lp user meta unset ")])]),t("tr",[t("td",[e._v("manulistv ")]),t("td",[e._v("lp user meta info")])]),t("tr",[t("td"),t("td")]),t("tr",[t("td",[e._v("mangadd ")]),t("td",[e._v("lp creategroup ")])]),t("tr",[t("td",[e._v("mangdel ")]),t("td",[e._v("lp deletegroup ")])]),t("tr",[t("td",[e._v("mangaddi ")]),t("td",[e._v("lp group parent add ")])]),t("tr",[t("td",[e._v("mangdeli ")]),t("td",[e._v("lp group parent remove ")])]),t("tr",[t("td",[e._v("listgroups")]),t("td",[e._v("lp listgroups")])]),t("tr",[t("td",[e._v("mangaddp ")]),t("td",[e._v("lp group permission set true")])]),t("tr",[t("td",[e._v("mangdelp ")]),t("td",[e._v("lp group permission unset ")])]),t("tr",[t("td",[e._v("manglistp ")]),t("td",[e._v("lp group permission info")])]),t("tr",[t("td",[e._v("mangcheckp ")]),t("td",[e._v("lp group haspermission ")])]),t("tr",[t("td",[e._v("mangaddv prefix ")]),t("td",[e._v("lp group meta addprefix ")])]),t("tr",[t("td",[e._v("mangaddv suffix ")]),t("td",[e._v("lp group meta addsuffix ")])]),t("tr",[t("td",[e._v("mangaddv ")]),t("td",[e._v("lp group meta set ")])]),t("tr",[t("td",[e._v("mangdelv ")]),t("td",[e._v("lp group meta unset ")])]),t("tr",[t("td",[e._v("manglistv ")]),t("td",[e._v("lp group meta info")])]),t("tr",[t("td"),t("td")]),t("tr",[t("td",[e._v("mansave")]),t("td",[e._v("lp sync")])]),t("tr",[t("td",[e._v("manload")]),t("td",[e._v("lp sync")])])])]),t("h4",{attrs:{id:"permissionsex-command-equivalents",tabindex:"-1"}},[e._v("PermissionsEx command equivalents "),t("a",{staticClass:"header-anchor",attrs:{href:"#permissionsex-command-equivalents"}},[e._v("🔗")])]),t("table",[t("thead",[t("tr",[t("th",[e._v("PermissionsEx")]),t("th",[e._v("LuckPerms")])])]),t("tbody",[t("tr",[t("td",[e._v("pex")]),t("td",[e._v("lp")])]),t("tr",[t("td",[e._v("pex reload")]),t("td",[e._v("lp sync")])]),t("tr",[t("td",[e._v("pex toggle debug")]),t("td",[t("a",{attrs:{href:"Verbose"}},[e._v("lp verbose