-
Notifications
You must be signed in to change notification settings - Fork 40
Permissions
Flemmli97 edited this page Aug 3, 2024
·
16 revisions
Flan offers various toggable permissions for claim.
You can find them also under BuiltinPermission.
Here is the list of currently implemented permissions:
Name | Description |
---|---|
flan:edit_claim | Gives permission to edit (resize, delete...) the claim |
flan:edit_perms | Gives permission to change the claims permissions |
flan:edit_potions | Gives permission to edit the claims potion effect |
flan:break | Permission to break blocks in the claim |
flan:place | Permission to place blocks in the claim |
flan:open_container | Permission to open containers. (chest, furnace etc.) |
flan:interact_block | Generic permission for block interaction. Fallback to flan:open_container. Gets used for all blocks flan:open_container doesn't check for |
flan:interact_sign | Permission to edit signs (e.g. dyeing them) |
flan:anvil | Permission to use anvils |
flan:bed | Permission to use beds |
flan:beacon | Permission to use beacons |
flan:door | Permission to use doors |
flan:fence_gate | Permission to use fence gates |
flan:trapdoor | Permission to use trapdoors |
flan:button_lever | Permission to trigger levers and buttons |
flan:pressure_plate | Permission to trigger pressure plates |
flan:noteblock | Permission to change noteblocks |
flan:redstone | Permission to change redstone components |
flan:jukebox | Permission to insert/take music discs |
flan:enderchest | Permission to use enderchests |
flan:enchantment | Permission to use enchanting tables |
flan:itemframe_rotate | Permission to rotate items in item frames |
flan:lectern_take | Permission to change books in a lectern |
flan:endcrystal_place | Permission to place end crystals |
flan:target_block | Permission to trigger target blocks |
flan:projectiles | Permission to let shot projectiles. interact with blocks (e.g. arrow on button) |
flan:trample | Permission to enable block trampling. (farmland, turtle eggs) |
flan:portal | Permission to use nether portals |
flan:raid | Permission to trigger raids in claim. Wont prevent raids (just) outside |
flan:boat | Permission to use boats |
flan:minecart | Permission to sit in minecarts |
flan:bucket | Permission to take liquids with buckets |
flan:ender_pearl | Permission to use enderpearls |
flan:chorus_fruit | Permission to eat chorus fruits |
flan:animal_interact | Permission to interact with animals. (e.g. shearing sheeps) |
flan:hurt_animal | Permission to hurt animals |
flan:xp | Permission to pick up xp orbs |
flan:trading | Permission to trade with villagers |
flan:armorstand | Permission to interact with armor stands |
flan:break_non_living | Permission to break things like minecarts or armor stands |
flan:drop | Allow the drop of items |
flan:pickup | Allow the pickup of items |
flan:flight | Allow non creative flight |
flan:can_stay | Allow players to enter your claim |
flan:teleport | Allow player to teleport to your claim home position |
flan:no_hunger | Disable hunger |
flan:claim_message | Permission to edit the enter/leave message |
flan:archeology | Allow players to brush blocks in this claim |
Global Permissions Only | Description |
---|---|
flan:hurt_player | Permission to hurt other players |
flan:explosions | Toggle explosions in claim |
flan:wither | Toggle wither breaking blocks in claim |
flan:enderman | Allow enderman picking and placing blocks |
flan:snow_golem | Allow snowgolems snowlayer |
flan:fire_spread | Toggle firespread in claim |
flan:water_border | Toggle water crossing claim borders |
flan:piston_border | Toggle piston pull/push across claim borders |
flan:mob_spawn | Prevent hostile mobspawn in claim |
flan:animal_spawn | Prevent other spawn in claim |
flan:lightning | Allow lightning to affect claims. e.g. set blocks on fire. or affect animals (mobs are excluded) |
flan:lock_items | If items should be locked on death |
flan:fake_player | Allow fakeplayers to interact in this claim. Some mods fakeplayer has the users uuid. For those mods this permission is not needed |
flan:player_mob_spawn | Permission for affected players to spawn mobs with interactions. E.g. wardens, or endermites with enderpearls |
flan:sculk | Permission for sculk sensors. Shriekers are handled under flan:player_mob_spawn |
Starting with version 1.10.0 all permissions are moved to a datapack system.
This allows to very easily add custom permissions.
The directory for permissions is located under /data/<namespace>/claim_permissions
. For some examples refer to https://github.com/Flemmli97/Flan/tree/1.20.1/common/src/generated/resources/data/flan/claim_permissions
Do note that without doing anything further simply having the permissions will not do anything. One way to utilize the custom permissions without coding it in is via the config e.g. with assigning items to them in customItemPermission
.