Skip to content

Configuration

Jakub Szkarłat edited this page Jan 27, 2020 · 1 revision

Configuration

There aren't many options to change, but couple ways of customization are available. More options may be added in the future as plugin grows.

Configuration Description
debug Logs currently checked permissions into server console
inform_players Should messages be sent to players about denied permissions
drop_forbidden_items If set to true items will be dropped automatically on the ground
check_items_use If true, plugin will check item held in hand when player interacts with blocks or entities
message_prefix Message prefix included in each message sent to player
default_message Default message sent when precise message is not present
do_not_show_message_for This permission nodes will not log messages to player and console
messages List of messages displayed for specific permissions

Default config

# Logs currently checked permissions into server console
debug: false
# Notify players about denied permissions
inform_players: true
# If set to true forbidden items will be dropped
drop_forbidden_items: true
items_use:
  # If true, plugin will check item held in hand when player interacts with blocks or entities
  check_items_use: true
  left_click_items: [SHEARS, WOODEN_SHOVEL, STONE_SHOVEL, IRON_SHOVEL, GOLDEN_SHOVEL, DIAMOND_SHOVEL, WOODEN_AXE, STONE_AXE, IRON_AXE, GOLDEN_AXE, DIAMOND_AXE, WOODEN_PICKAXE, STONE_PICKAXE, IRON_PICKAXE, GOLDEN_PICKAXE, DIAMOND_PICKAXE, WOODEN_SWORD, STONE_SWORD, IRON_SWORD, GOLDEN_SWORD, DIAMOND_SWORD]
  right_click_items: [CARROT_ON_A_STICK, GLASS_BOTTLE, FLINT_AND_STEEL, FISHING_ROD, SHEARS, BONE_MEAL, WOODEN_SHOVEL, STONE_SHOVEL, IRON_SHOVEL, GOLDEN_SHOVEL, DIAMOND_SHOVEL, WOODEN_AXE, STONE_AXE, IRON_AXE, GOLDEN_AXE, DIAMOND_AXE, WOODEN_HOE, STONE_HOE, IRON_HOE, GOLDEN_HOE, DIAMOND_HOE, LEAD]
# Message prefix included in each message sent to player, leave '' if prefix is not needed
message_prefix: '&f[&2WI&f] &4'
# Default message sent when precises message is not present
default_message: Sorry, you don't have enough permissions
# This permission nodes will not log messages to player and console
do_not_show_message_for:
- worldinteractions.vehicle.collide
- worldinteractions.target-by
# Messages for specific permissions
messages:
  # General
  worldinteractions.chat: Your mouth is too dry
  worldinteractions.use-beds: You can't sleep yet, there are monsters nearby
  # Weapons
  worldinteractions.throw: You tried to throw &a%s&4, but it slipped out of your hands
  worldinteractions.shoot: You aren't strong enough to draw a &a%s
  # Entities
  worldinteractions.interact: You are too jelly for &2%s
  worldinteractions.target-by: "&a%s&4 pretends you don't exist"
  worldinteractions.damage.deal: Your level is too low for &5%s
  worldinteractions.mob.tame: This &a%s&4 is too ferocious
  worldinteractions.mob.breed: "&a%s&4 can't do that while you're watching"
  worldinteractions.mob.spawn: "&a%s&4 doesn't want to get out of its egg"
  worldinteractions.mob.ride: Can't ride &a%s
  # Items
  worldinteractions.item.use: You can't use &a%s&4 against &a%s
  worldinteractions.item.enchant: Sorry, &a%s&4 is too powerful
  worldinteractions.item.eat: You're scared to try new food like &a%s
  worldinteractions.item.smelt: Can't smelt &a%s right now
  worldinteractions.item.craft: Sorry, but &a%s&4 is too complicated
  worldinteractions.item.drop: This is indecent to scatter &a%s&4 around
  worldinteractions.item.pickup: Can't touch this!
  worldinteractions.item.hold: Beware, &a%s&4 is cursed!
  # Blocks
  worldinteractions.bucket.empty: You suddenly realized you still need &a%s
  worldinteractions.bucket.fill: This bucket is holey
  worldinteractions.blocks.place: This is wrong place for &a%s
  worldinteractions.blocks.break: '&a%s&4 is tough for you'
  # Vehicles
  worldinteractions.vehicle.enter.boat: You are too heavy for this &a%s
  worldinteractions.vehicle.enter.minecart: Sorry, but &a%s&4 is too small
  worldinteractions.vehicle.enter: Can't ride on &a%s
  worldinteractions.vehicle.place: You should go for a walk, instead of using &a%s
  worldinteractions.vehicle.break: This &a%s&4 is legal property of &bUnited States of
    America
  worldinteractions.vehicle.collide.boat: This boat is anchored to the bottom
  worldinteractions.vehicle.collide.minecart: This is way too heavy to move

Clone this wiki locally