Protection Blocks and Lock chest/doors/trap/gate/shuker [1.16 - 1.19.x] icon

Protection Blocks and Lock chest/doors/trap/gate/shuker [1.16 - 1.19.x] -----

No one can break your placed blocks. With lock chest / doors / trap / shuker and gate



Installation:
  1. Make sure you have Vault installed.
  2. Drop BlockProtection.jar into your /plugins folder.
  3. On first load, config.yml, friendslist.yml, language.yml and the Database.db will be created.
  4. Open config.yml and edit it to your liking, then use the /bpreload command.
  5. You can get the block id by enabling log-itens in config.yml ( only op and bp.admin can view)



[​IMG]
  • bp.admin (Defaults to op) Allows players bypass BlockProtection, add blocks manually, and get the utility tool
  • bp.friend (Defaults to true) Allows access to all of the Friends List features
  • bp.reload (Defaults to op) Allows admins to reload all settings from the configuration file
  • bp.user (Defaults to true) Allow players to use BlockProtection, and view the owner of blocks
  • bp.giveblock (Defaults to op) Allows to give block (by Tool (stick by default))
  • bp.transfer (Defaults to op) Allows to transfer blocks from WorldEdit selected region, recommended only op, if you give for a user, make sure to give wordedit wand perm too.

  • bp.use (Defaults to op) Change the method of verification, if is whitelist or blacklist.
[​IMG]
  • /bp [on/off] Toggle BlockProtection on/off, adding on/off is optional.
  • /bpadd [playername] Add a player to your friends list
  • /bpadmin Toggle BlockProtection bypass on/off
  • /bpclear Clears your entire friends list
  • /bplist List all players from your friends list
  • /bpreload (Will not reload changes to "save-interval". Restart required!) Reloads settings from config.yml
  • /bpremove [playername] Remove a player from friends list
  • /bptool Gives the player 1 of the "utility tool"
  • /bpgive [playername] All blocks will be given to Name player, by using Tool. To disable write /bpgive.
  • /bptransfer [playername] After region selected by World edit. This command will transfer protection of selected blocks to [playername]. When no arguments are given the protection of the selected blocks will be removed. You need bp.transfer or bp.admin to do this.
  • /bpimport [world] Import's blocks from WatchBlock MySQL. Check config for MySQL connection settings. If there are many blocks in the database please wait.

  • /bpuse [mode] Change method of verification of placing blocks, if will protect or not. Whitelist: will protect only these. Blacklist: will block these.
Config file:

Code (Text):

# Set to true to enable block protection by default.

# If you set to false, when a player joins the server, they will have

# to type: /bp to start having their blocks protected. "true" is recommended.

# Default: true

enable-by-default: true

# ==================================================================================

# Players with the bp.admin permission will bypass block protection

# automatically when they join the server. Set to false to make them type /bpadmin

# when they need to remove a players block.

# Default: false

enable-bypass-by-default: true





# ==================================================================================

# when the player put a block, will create a radius of protected blocks, this will

# prevent others to put block near. I recommend 2 as minimum, because of the fire

# spread.

# This will work for new placed blocks.

radius-of-the-placed-block: 2









# This will disable block protection by default in these worlds

disabled-worlds:

  - world_nether

  - world_the_end



# ==================================================================================

# Tool to use to view a block's owner or to add blocks manually to the database.

# Left-click with the "utility-tool" to manually add a block

# Right-click with the "utility-tool" to view a block's owner.

# Default utility tool is: WOODEN_SHOVEL

# You must use the item's ID NAME.

utility-tool: WOODEN_SHOVEL

 


 # =================================================================================

 # If setted to true, the lava will burn the protected area from others, if false will

 # stop after reach ( based on the radius protection area ), and is the same for water.

allow-lava-flow: false

allow-water-flow: false



 # =================================================================================

 # if true, the stick piston will get the block of and push back. If false, will block.

allow-sticky-piston-push-back: false



# =================================================================================

# if true, the tnt will destroy other blocks except the owned blocks.



protect-owned-from-tnt: true



disable-save-database-broadcast: false





# ==================================================================================

# Show itens name id on click for use on whitelist or blacklist

log-itens: false




#change this to use blacklist or whitelist

 

use-whitelist-or-blacklist: blacklist

 

# ==================================================================================

# The items listed below will not be protected.

# You MUST use item ids name, you can get here: https://minecraftitemids.org.

# You can also leave empty.

blacklist:

    - SAPLING

    - LEAVES

    - TALLGRASS

    - DEADBUSH

 

 

# ==================================================================================

# Only the items listed below will be protected.

# You MUST use item ids name, you can get here: https://mcreator.net/wiki/minecraft-block-and-item-list-registry-and-code-names.

# You can also leave empty.

whitelist:

  - ACACIA_DOOR

  - BIRCH_DOOR

  - TRAP_DOOR

  - JUNGLE_DOOR

  - WOODEN_DOOR

  - CHEST

  - TRAPPED_CHEST

  - ENDER_CHEST

  - ENDER_CHEST



# ===================================================================================

# if true, only owner and your friends list can open the door, trapdor, etc

#

# IF YOU CHANGE THE MODE FOR WHITELIST, REMMEMBER TO ADD DOOR, CHESTER, TRAPDOR AND

# GATE THERE

#

#  the protection not work for this

#  - SPRUCE_TRAP_DOOR

#  - JUNGLE_TRAP_DOOR

#  - DARK_OAK_TRAP_DOOR

#  - ACACIA_TRAP_DOOR

#

#



block-door-from-others: true

block-trapdoor-from-others: true

block-gate-from-others: true

block-chest-from-others: true



#=====================================================================================

# The door will close automatically by default after 2 seconds, if you want to disable, set to -1

# MUST be in SECONDS, integer only



close-door-after: 2

close-trapdoor-after: 2

close-gate-after: 2









# ==================================================================================

# Time in MINUTES between each database save.

# Players on the server will be informed when the database is saving.

# Default: 60  *Time must be a number*

save-interval: 60

# ==================================================================================

# Advanced logging. Shows when your admins/mods are bypassing block protection, and

# also shows if players without the correct permissions are trying to use the admin

# commands. Set to true to display in console/save to log. Default: true

advlog: true











 

Dependencies:
Vault
: Vault is required for BlockProtection to work on your server. Vault is used as an API so that BlockProtection can hook into almost every permissions system.

[​IMG] You can get Vault Link.

WorldEdit is Soft Dependencie. Needed for selected region block protection transfer.

if you have suggestion or help, pm me :)
Resource Information
Author:
----------
Total Downloads: 1,518
First Release: Sep 18, 2022
Last Update: Sep 22, 2022
Category: ---------------
All-Time Rating:
6 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings