If you're familiar with the game Rust, ClaimBlocks have a similar interface and mechanics as cupboards.
How it works On the surface, ClaimBlocks allows players to protect a square radius of chunks. To pick up your ClaimBlock, simply right click it and select the remove button. If you own a ClaimBlock, you also have the ability to clear the authorization list.
Players can authorize themselves on another player's ClaimBlock by right clicking on the block and selecting the authorize button. The authorize button doubles as the indicator for whether or not a player is authorized.
Usage Players can purchase ClaimBlocks of any tier using a simple command. Configuring a ClaimBlock is a simple as right clicking it. Players can use the same functionality to authorize themselves on another player’s ClaimBlock.
Installation Simply drag and drop the jar file into your plugins folder.
Vault and an economy plugin are required for any economy features to function.
Requires Java 16
Configuration ClaimBlocks is highly configurable, and includes the ability to change all text to your liking. Plugin configuration is simple and includes comments for easy interpretation.
Code (YAML):
claimblock: # block type block: RED_WOOL
# Limit of claim blocks per player # Permission claimblocks.admin to bypass limit: 1
# Claim protection settings protection: # Players block-break: true
block-burn: true
# https://hub.spigotmc.org/javadocs/spigot/org/bukkit/event/block/BlockFadeEvent.html block-fade: true
# Players block-place: true
# Prevent players to break claim blocks owned by other players claimblock-break: true
# Block damage only explosions: true
unauthorized-entity-damage: true
# Prevents player interaction # Set to [] to disable protected-blocks: - CHEST
- DOOR
- LEVER
- BUTTON
# Requires vault and an economy plugin economy: # Allow the purchase of ClaimBlocks enabled: true
# Max tiers supported: 2147483647 # Max cost is a tangible infinite # Cost for every tier cost: - 1:1000.00
- 2:9000.00
- 3:27000.00
- 4:36000.00
- 5:45000.00
# Do not change version: 0
Commands Player /claimblocks - claimblocks.command
/claimblocks help - claimblocks.command
/claimblocks buy help - claimblocks.command.buy - List tiers and pricing
/claimblocks buy <tier> - claimblocks.command.buy
Admin /claimblocks reload
/claimblocks give <player> <tier>
claimblocks.admin
claimblocks.*
Developer API The plugin has various events you can use for your plugins. I will soon have gradle and maven support.
Possible future functionality Upgrade tier Leave suggestions in the discussion tab or in a review.