tạo 1 plugin cho 1.21.11 paper có chức năng tạo khu claim bằng cách cầm cây gậy có tên là kSpoe088gJ người chơi khi click vào 1 block bất kì sẽ đánh dấu block đó bằng khối vàng và đặt 1 khối ánh sáng với độ sáng là 15 và khi bấm lại block khác sẽ hiện ra 1 block vàng và block độ sáng 15 nữa thì sẽ tạo ra 1 khu vực claim trong khu vực đó chỉ có người claim mới có thể đập phá block có thể dùng lệnh /claim setting để mở bảng trong đây sẽ có các tuỳ chọn là block đất tên không đập phá block ở dưới là mở hoặc bật còn ở dưới là click vào để tắt hoặc bật cái thứ là xẻng vàng tên là đặt block khi bật người chơi khác có thể đặt block được vào đây ngoại trừ người tạo claim và khối TNT tên là nổ ở trong khu claim đó sẽ không thể nổ được block và lệnh /trust + tên người chơi người chơi đc trust sẽ bỏ qua các tuỳ chọn trong setting và đc phép làm tất cả những gì trong đấy
KodariJun 26 at 6:35 am 2
I’ll create a claim system plugin for Paper 1.21.
ClaimSystem
A claim system plugin that lets players create land claims using a stick wand named kSpoe088gJ. Players mark two corners with gold blocks and light blocks to form a cuboid claim. Only the owner can break blocks by default. Includes a /claim setting GUI with toggles for block break protection and block placement permission, TNT explosion immunity inside claims, and a /trust command to grant full access to trusted players.</project_description<project_name>ClaimSystem</project_name>
A claim protection plugin for Paper 1.21.11. Players use a stick named "kSpoe088gJ" to select two corners, marking them with gold blocks and light blocks (level 15). The claim protects block breaking, block placing, and TNT explosions. Includes /claim setting GUI with toggle options (dirt block for break protection, golden shovel for block placement, TNT for explosions) and /trust command for bypassing restrictions.
ClaimSystem
A claim protection plugin for Paper 1.21.11. Players use a stick named &quot;kSpoe088gJ&quot; to select two corners, marking them with gold blocks and light blocks (level 15). The claim protects block breaking, block placing, and TNT explosions. Includes /claim setting GUI with toggle options (dirt block for break protection, golden shovel for block placement, TNT for explosions) and /trust command for bypassing restrictions.
I’ll create all files for the claim system now.
All files created. Here’s a summary of the plugin structure:
ClaimSystem — Full claim protection plugin for Paper 1.21.11
File
Purpose
ClaimSystem.java
Main plugin class, registers everything
Claim.java
Data model: owner, bounds, settings, trusted players
ClaimManager.java
CRUD for claims, saves/loads to config.yml
ClaimWandListener.java
Stick “kSpoe088gJ” — click to mark corners with gold + light blocks, creates claim on second click
ClaimProtectionListener.java
Blocks break/place by non-owners, cancels TNT explosions inside claims
ClaimSettingGUI.java
/claim setting
— 3 toggles: dirt (break), golden shovel (place), TNT (explosion)
ClaimCommand.java
/claim setting
command handler
TrustCommand.java
/trust <player>
— trusted players bypass all restrictions
Key mechanics:
Hold stick named kSpoe088gJ → right-click a block → gold block + light (level 15) appear at corner 1 → click another → same markers → claim is created, markers disappear
Only claim owner can break/place blocks by default