xmrtoxic
📎 1 file 3,448 chars
📄
pasted-code-1770148830802.txt
txt 173 lines
▶
Plugin Name

SoulJudgement

Minecraft Version

Minecraft 1.21
Server Software: PaperMC 1.21
Java Version: 21

Plugin Goal

Create a Minecraft plugin where:

New players join disguised (fake name + Steve skin)

Their real identity is hidden internally

They are judged through a soul-based combat system

Losing 4 souls automatically bans the player from the server

Only way to unban → ritual crafting system with 4 souls + diamond block

All chat messages and death messages for disguised players show the fake name (Player) instead of real IGN

Plugin must load GREEN in /pl, be fully exploit-safe, and work without admin intervention.

1️⃣ Disguise System

On first join:

Name = Player

Skin = Steve

All disguised players look identical

Real IGN + UUID stored internally

Disguise handled via ProtocolLib (soft-dependency)
2️⃣ Identity Sword Mechanic

Players rename a sword in an Anvil

If sword display name matches real IGN of a disguised player:

Sword becomes a Valid Judgement Sword for that player only

Validation uses UUID, not name spoofing

3️⃣ Soul Drop System

Killing a disguised player with their Valid Judgement Sword:

Drops custom item:

Material: AMETHYST_SHARD

Name: 's Soul

Lore: A bound soul

Player’s UUID stored in item

Soul Death Counter increases by 1

4️⃣ Automatic Ban on 4 Souls

Core mechanic:

When a player reaches 4 soul deaths, they are automatically banned by the server

Ban reason: "Your soul has been sealed."

Player marked as Ritual-Banned

No admin intervention required

Only unban method = ritual crafting

5️⃣ Ritual Unban Crafting

Crafting requirements:

4× Souls of the same banned player (UUID must match)

1× Diamond Block

Crafting in Crafting Table only

Cancel default output

Prevent hopper or automation usage

6️⃣ Ritual Activation

On valid ritual craft:

Play Totem of Undying animation

Play ritual sound effect

Start 9-minute ritual timer

Broadcast: "A forbidden ritual has begun..."
7️⃣ Ritual Completion (Unban)

After 9 minutes:

Automatically unban the player

Broadcast: "The soul of  has been restored."

Optional: lightning, particles, sound effects

8️⃣ Chat & Death Message Disguise

All chat messages from disguised players show fake name (Player)

Example: [Player] Hello everyone!

All death messages for disguised players show fake name:

Example: [Player] was slain by Zombie

Optional config to enable/disable chat & death disguise

9️⃣ Anti-Exploit Protection

Soul items: cannot stack, rename, or duplicate, UUID-locked

Prevent: Anvil NBT abuse, hopper automation, item cloning

All checks UUID-based, not name-based

🔧 Configuration (config.yml)

Required soul deaths before auto-ban (default: 4)

Ritual duration (default: 9 minutes)

Enable/disable disguise system

Enable/disable chat & death message disguise

Messages, sounds, particles

World-specific enable/disable

🔧 Technical Requirements

Paper API 1.21

Java 21

plugin.yml must include:

api-version: 1.21
softdepend: [ProtocolLib]


Plugin must load GREEN in /pl

🎯 Final Goal

Fully functional Minecraft 1.21 plugin

Losing 4 souls automatically bans the player from the server

Disguised players appear as Player in chat, tab, and death messages

Exploit-safe and requires no admin intervention
Kodari can make mistakes. Review important code before using.
Files

No files in this session

Code