๐
1 file
4,594 chars
๐
pasted-code-1772379788790.txt
txt
1 lines
โถ
pasted-code-1772379788790.txt
txt
1 lines
I want you to create a Minecraft Spigot/Paper plugin for the latest version of Minecraft (1.20+). The plugin must be fully INVENTORY INVENTORY GUI-based and focused on Party PvP modes. The plugin name can be: PartyPvP. The plugin must be clean, modular, and production-ready. ๐ก MAIN FEATURE When a player right-clicks a custom Diamond Sword, it must open a INVENTORY INVENTORY GUI menu. The Diamond Sword: Material: DIAMOND_SWORD Display Name: ยงcยงlParty PvP Menu Cannot be dropped Cannot be moved in inventory Cannot be used for combat The plugin must detect: Right-click only Correct custom name Ignore fake swords ๐ฎ MAIN INVENTORY INVENTORY GUI Title: ยงcยงlParty PvP Menu Size: 27 slots Layout: Slot 11 โ Iron Sword โ Party FFA Slot 13 โ Diamond Chestplate โ Party Split Slot 15 โ Nether Star โ Party vs Party Slot 22 โ Barrier โ Close Menu Each item must: Have custom display name Have lore explaining mode Play click sound when pressed โ GAME MODES 1๏ธโฃ Party FFA Requirements: Player must be in a party Minimum 2 members Flow: Teleport entire party to FFA arena 5-second countdown Heal all players Clear inventories Give kit (configurable) Enable friendly fire Last player alive wins Announce winner Teleport back after match Add: Spectator mode for eliminated players Firework celebration for winner Match state system (WAITING, STARTING, FIGHTING, ENDING) 2๏ธโฃ Party Split Requirements: Minimum 4 members Flow: Randomly split party into 2 equal teams Assign team colors Teleport to arena Countdown Team vs Team fight Last team alive wins Display scoreboard showing alive players per team Return players after match 3๏ธโฃ Party vs Party (Duel System) Requirements: Only party leader can start duel Minimum 2 players per party Flow: Open INVENTORY INVENTORY GUI listing all online party leaders Clicking one sends duel request Target leader receives Accept/Deny INVENTORY INVENTORY GUI If accepted: Open arena selection INVENTORY INVENTORY GUI Teleport both parties Start countdown Lock arena Start fight Match end: Winning party announced Show kills Teleport back Arena reset Add: Duel request timeout (30 seconds) Prevent spam requests Prevent multiple matches in same arena ๐ ARENA SYSTEM Create ArenaManager with: Each arena must store: Name Spawn locations (Team A, Team B, FFA spawn) Spectator spawn Enabled/Disabled state Features: Prevent arena reuse while active Auto reset players after match Configurable arenas via config.yml ๐ฅ PARTY SYSTEM (Basic Required) Include a simple party system: Commands: /party create /party invite /party join /party leave /party kick /party promote /party disband Party structure: Leader Members Store parties using UUIDs (not player names). ๐ SCOREBOARD SYSTEM During matches show: Mode name Alive players Team colors (if split) Countdown timer Remove scoreboard after match. ๐ก PROTECTION SYSTEM During matches: Disable commands Disable teleport Prevent leaving party Handle disconnect: 30 second reconnect timer If not returned โ eliminate โ CONFIGURATION config.yml must allow: Toggle each mode on/off Set max party size Set kits Set countdown duration Enable/disable fireworks Enable friendly fire Set arena list All messages must be configurable. ๐งฑ STRUCTURE REQUIREMENTS Use clean OOP structure: PartyManager MatchManager ArenaManager GUIManager DuelRequestManager ScoreboardManager Use: UUID-based storage HashMaps for active matches Enum for MatchState Enum MatchState: WAITING STARTING FIGHTING ENDING ๐ฏ ADDITIONAL REQUIREMENTS Fully async-safe where needed No memory leaks Proper event handling Proper null checks Clean code comments No deprecated API usage Compatible with latest Paper API ๐ BONUS (If Possible) ELO system for Party vs Party Leaderboard command MySQL or SQLite support PlaceholderAPI support Generate the full working plugin structure including: Main class plugin.yml All managers Example config.yml Basic arena example Complete event listeners The code must compile without errors. have u added that if the player will click on and specific slot of pvp like mace pvp then he will be teleported there with his party member so add these commands like set arena spawn A spawn B spectator people will be in spectator mode and ffa spawns will be in middle of the map if I am spectating the match then the players can see me or not they shouldnt so do one thing that add the solo queue in this plugin too and i guess u know what should be in it and the specator people can see each other and the match players cant see spectotor people and also add /spectate command so an external person can spectate the ongoing match
๐
1 file
4,656 chars
๐
pasted-code-1772388069619.txt
txt
2 lines
โถ
pasted-code-1772388069619.txt
txt
2 lines
I want you to create a Minecraft Spigot/Paper plugin for the latest version of Minecraft (1.20+). The plugin must be fully INVENTORY INVENTORY INVENTORY GUI-based and focused on Party PvP modes. The plugin name can be: PartyPvP. The plugin must be clean, modular, and production-ready. ๐ก MAIN FEATURE When a player right-clicks a custom Diamond Sword, it must open a INVENTORY INVENTORY INVENTORY GUI menu. The Diamond Sword: Material: DIAMOND_SWORD Display Name: ยงcยงlParty PvP Menu Cannot be dropped Cannot be moved in inventory Cannot be used for combat The plugin must detect: Right-click only Correct custom name Ignore fake swords ๐ฎ MAIN INVENTORY INVENTORY INVENTORY GUI Title: ยงcยงlParty PvP Menu Size: 27 slots Layout: Slot 11 โ Iron Sword โ Party FFA Slot 13 โ Diamond Chestplate โ Party Split Slot 15 โ Nether Star โ Party vs Party Slot 22 โ Barrier โ Close Menu Each item must: Have custom display name Have lore explaining mode Play click sound when pressed โ GAME MODES 1๏ธโฃ Party FFA Requirements: Player must be in a party Minimum 2 members Flow: Teleport entire party to FFA arena 5-second countdown Heal all players Clear inventories Give kit (configurable) Enable friendly fire Last player alive wins Announce winner Teleport back after match Add: Spectator mode for eliminated players Firework celebration for winner Match state system (WAITING, STARTING, FIGHTING, ENDING) 2๏ธโฃ Party Split Requirements: Minimum 4 members Flow: Randomly split party into 2 equal teams Assign team colors Teleport to arena Countdown Team vs Team fight Last team alive wins Display scoreboard showing alive players per team Return players after match 3๏ธโฃ Party vs Party (Duel System) Requirements: Only party leader can start duel Minimum 2 players per party Flow: Open INVENTORY INVENTORY INVENTORY GUI listing all online party leaders Clicking one sends duel request Target leader receives Accept/Deny INVENTORY INVENTORY INVENTORY GUI If accepted: Open arena selection INVENTORY INVENTORY INVENTORY GUI Teleport both parties Start countdown Lock arena Start fight Match end: Winning party announced Show kills Teleport back Arena reset Add: Duel request timeout (30 seconds) Prevent spam requests Prevent multiple matches in same arena ๐ ARENA SYSTEM Create ArenaManager with: Each arena must store: Name Spawn locations (Team A, Team B, FFA spawn) Spectator spawn Enabled/Disabled state Features: Prevent arena reuse while active Auto reset players after match Configurable arenas via config.yml ๐ฅ PARTY SYSTEM (Basic Required) Include a simple party system: Commands: /party create /party invite /party join /party leave /party kick /party promote /party disband Party structure: Leader Members Store parties using UUIDs (not player names). ๐ SCOREBOARD SYSTEM During matches show: Mode name Alive players Team colors (if split) Countdown timer Remove scoreboard after match. ๐ก PROTECTION SYSTEM During matches: Disable commands Disable teleport Prevent leaving party Handle disconnect: 30 second reconnect timer If not returned โ eliminate โ CONFIGURATION config.yml must allow: Toggle each mode on/off Set max party size Set kits Set countdown duration Enable/disable fireworks Enable friendly fire Set arena list All messages must be configurable. ๐งฑ STRUCTURE REQUIREMENTS Use clean OOP structure: PartyManager MatchManager ArenaManager GUIManager DuelRequestManager ScoreboardManager Use: UUID-based storage HashMaps for active matches Enum for MatchState Enum MatchState: WAITING STARTING FIGHTING ENDING ๐ฏ ADDITIONAL REQUIREMENTS Fully async-safe where needed No memory leaks Proper event handling Proper null checks Clean code comments No deprecated API usage Compatible with latest Paper API ๐ BONUS (If Possible) ELO system for Party vs Party Leaderboard command MySQL or SQLite support PlaceholderAPI support Generate the full working plugin structure including: Main class plugin.yml All managers Example config.yml Basic arena example Complete event listeners The code must compile without errors. have u added that if the player will click on and specific slot of pvp like mace pvp then he will be teleported there with his party member so add these commands like set arena spawn A spawn B spectator people will be in spectator mode and ffa spawns will be in middle of the map if I am spectating the match then the players can see me or not they shouldnt so do one thing that add the solo queue in this plugin too and i guess u know what should be in it and the specator people can see each other and the match players cant see spectotor people and also add /spectate command so an external person can spectate the ongoing match
Kodari can make mistakes. Review important code before using.
Files
No files in this session
Code