plugin call StrikePractice and author Sinnzdev and more pls add
๐
1 file
4,028 chars
๐
pasted-code-1777526044544.txt
txt
200 lines
โถ
pasted-code-1777526044544.txt
txt
200 lines
Create a high-performance Minecraft Paper/Spigot PvP practice plugin inspired by PvPClub (mcpvp.club).
========================
MAIN GOAL
========================
A fast PvP duel system with instant matchmaking, INVENTORY GUI-based gameplay, spawn items, auto kits, and smooth arena reset.
========================
SPAWN SYSTEM (VERY IMPORTANT)
========================
When players join the server or return to spawn:
Give them custom hotbar items (spawn items):
Slot 0: Queue Menu (e.g. Diamond Sword)
Slot 1: Party Menu (optional)
Slot 2: Spectate Menu (e.g. Ender Eye)
Slot 8: Leave Queue (only visible when in queue)
Item Behavior:
- Right-click Queue Item โ open queue INVENTORY GUI
- Right-click Spectate โ open spectate INVENTORY GUI
- No commands needed
Prevent:
- Dropping spawn items
- Moving spawn items
- Losing spawn items
========================
QUEUE INVENTORY GUI SYSTEM
========================
Queue Menu (INVENTORY GUI):
- Crystal PvP
- Sword PvP
- Mace PvP
- SMP Kit
- Netherite Pot (NethPot)
Each option:
- Shows if Ranked/Unranked
- Shows queue status
Click โ instantly join queue
========================
AUTO KIT SYSTEM
========================
- Each queue has a predefined kit
- When player joins match:
โ Automatically give kit
- NO need to edit kit manually
Optional:
- Allow kit editor (but default kits always exist)
========================
CORE MATCH SYSTEM
========================
- Instant matchmaking (very fast)
- Ranked & Unranked queues
- ELO/MMR system
Flow:
1. Player clicks queue (INVENTORY GUI)
2. System finds opponent
3. Auto teleport both players
4. 3-second countdown
5. Fight starts
6. Detect winner
7. Reset arena
8. Return players to spawn with items
Leaving match:
- /leavequeue = forfeit (lose)
========================
COMMAND RESTRICTION
========================
Players cannot use commands except:
/leavequeue
Rules:
- In queue โ only /leavequeue
- In match โ NO commands
- Block all others
========================
ARENA SYSTEM (CORNERS)
========================
Each arena requires:
- Spawn1
- Spawn2
- Corner1
- Corner2
Commands:
/arena create
/arena setspawn1
/arena setspawn2
/arena setcorner1
/arena setcorner2
/arena save
/arena delete
/arena list
========================
FAWE RESET SYSTEM
========================
Use FAWE (FastAsyncWorldEdit):
- On /arena save:
Save region (corner1 โ corner2) as schematic
- After match:
Paste schematic instantly using FAWE (async)
Rules:
- No block-by-block reset
- Must be instant and smooth
========================
ARENA PROTECTION
========================
- Prevent leaving arena
- If leave โ teleport back or lose
- Only allow changes inside match
========================
STATS SYSTEM
========================
- Wins / Losses / Winrate
- ELO per kit
- Leaderboards
- /stats command
========================
INVENTORY GUI / UX
========================
- Clean PvPClub-style menus
- Queue INVENTORY GUI
- Spectate INVENTORY GUI
- Scoreboard during match
- Action bar info
========================
EXTRA FEATURES
========================
- Spectator mode
- Party duels
- FFA mode (optional)
- Combo counter (optional)
========================
CONFIG
========================
elo:
win: 10
lose: 5
match:
countdown: 3
spawn-items:
queue: DIAMOND_SWORD
spectate: ENDER_EYE
========================
DATABASE
========================
- MySQL or SQLite
- Store stats and ELO
========================
PERFORMANCE
========================
- Async matchmaking
- FAWE for instant reset
- Optimized for many players
========================
IMPORTANT
========================
- NO command-based gameplay
- Everything via INVENTORY GUI + items
- Only /leavequeue allowed
- Must feel exactly like PvPClub:
fast, smooth, clean
Kodari can make mistakes. Review important code before using.
Files
No files in this session
Code