LuckPerms 上下文
If you have Luckperms installed you can give players permission in specific Lands areas. Download: https://www.spigotmc.org/resources/28140
Available contexts exclusively for Luckperms: Please keep in mind that land and area names are case-sensitive.
LuckPerms Context
The following context entries can also be used for a player's current location by just appending _here to the entry. Example: lands_land_name_here.
lands_land_name=landnameDescription: Returns land name orwilderness. Append_hereto get the result, for the land at the player's current position.
lands_land_area_name=areanameDescription: Returns area name orwilderness. Append_hereto get the result, for the area at the player's current position.
lands_land_area_role_name=rolenameDescription: Returns the name of the player's role.
lands_land_bool=true or falseDescription: Returns true, if the player owns or is part of a land. If you append_here, it will return true, if the player's current position is claimed.
lands_land_trusted_bool=true or falseDescription: Returns true, if the player is trusted. Append_hereto get the result for the land at the player's current position.
lands_combat_tag_bool=true or falseDescription: Returns whevter or not the player is in combat.
lands_land_level=numberDescription: Set permission if land has level x. You can append_heretoo.
lands_nation_level=numberDescription: Set permission if nation has level x. You can append_heretoo.
Others
lands_trusted_in=landnameDescription: Check if a player is trusted in a given land. Example:lands_trusted_in=test: The player will receive the permission if they own or are part of land "test".
Examples:
Giving a permission only if player is part of a specific land:
/lp user Luck permission set test.permission lands_trusted_in=test
Giving a permission only in wilderness:
/lp user Luck permission set test.permission lands_land_name_here=wilderness
NOTE: You can also remove permission if they're in wilderness by setting a negated (-) permission.
Giving a permission only in claims where the player is trusted:
/lp user Luck permission set test.permission lands_land_trusted_bool=yes