❄ FxPractice — Minecraft Practice Plugin
- Plugin Information
Develop a fully functional, lightweight, highly customizable Minecraft Paper plugin named FxPractice.
Plugin Branding:
- Plugin Name: "FxPractice"
- Author: "NotErrorXPlayZz"
- Main Prefix: "&#FF2E2E&lPRACTICE &8▶"
- Platform: Paper
- Minecraft Version: 1.21.4+
- Language: Java
- Color Support: HEX / RGB, Legacy Colors, and MiniMessage where appropriate.
Dependencies and Compatibility
This plugin will be used alongside my other custom plugins:
- "FxPracticeCore"
- "FxDuels"
- "FxArenaReset"
- "FxKitSystem"
Important Requirements:
- FxPractice must be a standalone arena and FFA management plugin.
- Do not implement features belonging to the other four plugins.
- Design the code so these plugins can integrate with FxPractice later.
- Do not require the other four plugins to load FxPractice unless a specific integration is necessary.
- Do not create fake APIs or assume that these plugins already have a defined API.
- If an external kit system is required, implement a clean integration interface so FxKitSystem can be connected later.
- The plugin must save all arena and FFA data persistently, including after server restarts.
---
- Commands and Aliases
Main command:
"/practice"
Aliases:
- "/p"
- "/fxp"
- "/fp"
- "/fxpractice"
Every alias must execute the same command system.
Main Commands
Command| Description "/practice"| Display the main help menu "/practice wand"| Give the Arena Select Wand "/practice createarena <name>"| Create a new arena using selected positions "/practice deletearena <name>"| Delete an existing arena "/practice editarena <name>"| Enter arena editing mode "/practice savearena <name>"| Save arena changes "/practice arenalist"| Display the paginated arena list "/practice reload"| Reload plugin configurations and messages
Arena Kit Commands
"/practice arena <arena> kit link <kit_name>"
Link an existing kit to the specified arena.
"/practice arena <arena> kit unlink <kit_name>"
Unlink a kit from the specified arena.
"/practice arena <arena> kit unlinkall"
Unlink every kit associated with the specified arena.
Requirements:
- Only link valid kits.
- Prevent duplicate kit links.
- Show configurable success and error messages.
- Save linked kits persistently.
- Unlinking a kit must not delete the actual kit.
Arena Settings Commands
"/practice arena <arena> maxplayer <amount>"
Set the maximum player capacity of an arena.
"/practice arena <arena> visibility <private/public>"
Set the arena visibility.
"/practice arena <arena> setspawnpoint <player>"
Set a numbered player spawnpoint at the command executor's current location.
Examples:
"/practice arena Sumo setspawnpoint 1"
"/practice arena Sumo setspawnpoint 2"
Here, "1" and "2" represent spawnpoint numbers, NOT player names.
The command executor's location will be saved as the specified spawnpoint.
Requirements:
- Allow configurable spawnpoint numbers.
- Prevent invalid numbers.
- Store each spawnpoint's world, X, Y, Z, yaw, and pitch.
- Confirm which numbered spawnpoint was created.
- Do not confuse spawnpoint numbers with player usernames.
---
- Arena Selection Wand
Command:
"/practice wand"
Give the executing player a special Diamond Axe.
Item Properties
Material: "DIAMOND_AXE"
Display Name:
"&#FF2E2E&lArena Select Wand"
Lore:
- "&7Wand"
- "&r"
- "&#FF2E2EInformation:"
- "&#FF2E2E● Left-click &fto select Position 1!"
- "&#FF2E2E● Right-click &fto select Position 2!"
- "&r"
- "&e▶ &l&nLEFT CLICK&r &eto Select pos1"
- "&e▶ &l&nRIGHT CLICK&r &eto Select pos2"
Wand Functionality
Left-click a block:
- Save the clicked block's coordinates as Position 1.
- Send a configurable confirmation message.
Right-click a block:
- Save the clicked block's coordinates as Position 2.
- Send a configurable confirmation message.
Requirements:
- Each player must have independent selections.
- Selections must not interfere with other players.
- Prevent the wand from breaking blocks or triggering unwanted interactions.
- Identify the wand using a persistent item identifier rather than its display name alone.
- Prevent ordinary Diamond Axes from acting as selection wands.
- Support both block-selection positions and validate that both positions exist before creating an arena.
Creating an Arena
After selecting both positions, execute:
"/practice createarena <name>"
The plugin must:
- Verify that Position 1 and Position 2 are selected.
- Verify that both positions belong to the same world.
- Calculate and save the cuboid region.
- Save the arena configuration.
- Create the arena successfully.
- Send the configured success message.
If either position is missing, show a configurable error message explaining how to select both positions.
The arena region must persist after server restarts.
---
- Arena Editing and Saving
"/practice editarena <name>"
- Verify that the arena exists.
- Teleport the executor to the arena region or its configured editing location.
- Enable arena editing mode for that player.
- Send the configured editing message.
"/practice savearena <name>"
- Save the current arena configuration and region data.
- Persist all configured spawnpoints, linked kits, visibility, and maximum player count.
- Exit the editing mode associated with that arena when appropriate.
- Send the configured success message.
"/practice deletearena <name>"
- Verify that the arena exists.
- Delete its saved arena configuration and data.
- Clear related editing selections and temporary state.
- Do not delete unrelated kits or other arenas.
- Send the configured deletion message.
Arena Data
Each arena must support:
- Arena name.
- World name.
- Position 1.
- Position 2.
- Multiple numbered spawnpoints.
- Maximum player count.
- Visibility: PUBLIC or PRIVATE.
- Linked kits.
- Saved configuration.
- Editing state.
Use a persistent data structure that can support future integration with FxDuels, FxPracticeCore, and FxArenaReset.
---
- Arena List GUI / Interactive Chat List
Command:
"/practice arenalist"
Display a paginated list of all registered arenas.
Required Appearance
&#FF2E2EThis is the list of all arena! &7Page List %current%/%max%
&7- %arena_name% &7- %arena_name% &7- %arena_name% &7- %arena_name% &7- %arena_name% &7- %arena_name%
&6◀ Previous page - Next page ▶
Functionality
- Display six arena entries per page.
- Show the current page and maximum page count.
- Make every arena name clickable.
- Clicking an arena name teleports the player to that arena's saved location.
- Make Previous Page and Next Page clickable.
- Previous Page must open the previous page.
- Next Page must open the next page.
- Hide or disable Previous Page on the first page.
- Hide or disable Next Page on the last page.
- Handle empty arena lists correctly.
- Prevent invalid page numbers.
Use Adventure components with click events and hover text.
Important: Teleportation from this list is an administrative arena-inspection feature. It must not automatically join a duel or start an FFA match.
If the arena has no dedicated teleport location, use a safe location inside or near its saved region. Never teleport a player to an invalid world or unsafe location without validation.
---
- FFA Management
FFA means Free For All.
FFA management must use a separate data structure from normal arenas.
FFA Commands
Command| Description "/practice createffa <name>"| Create an FFA region "/practice deleteffa <name>"| Delete an existing FFA "/practice editffa <name>"| Enter FFA editing mode "/practice saveffa <name>"| Save FFA configuration "/practice ffalist"| Display the paginated FFA list
FFA Kit Commands
"/practice ffa <ffa_name> kit link <kit_name>"
"/practice ffa <ffa_name> kit unlink <kit_name>"
"/practice ffa <ffa_name> kit unlinkall"
Requirements:
- Link valid kits to the selected FFA.
- Prevent duplicate links.
- Unlink individual kits.
- Support unlinking all kits.
- Preserve the actual kits.
- Save changes persistently.
FFA Settings
"/practice ffa <ffa_name> maxplayer <amount>"
Set the maximum player capacity for the specified FFA.
"/practice ffa <ffa_name> visibility <public/private>"
Set the specified FFA's visibility.
"/practice ffa <ffa_name> setspawnpoint"
Save the command executor's current location as the FFA spawnpoint.
Requirements:
- Store world, coordinates, yaw, and pitch.
- Validate that the world exists.
- Confirm the saved spawnpoint.
- Persist the data after restarts.
Command parsing requirement: The FFA name must be included when setting FFA properties.
Correct examples:
"/practice ffa Boxing maxplayer 20"
"/practice ffa Boxing visibility public"
Do not accidentally interpret the word "ffa" as an actual FFA name.
FFA Region Creation
Use the same Arena Select Wand as normal arenas.
- Select Position 1.
- Select Position 2.
- Execute "/practice createffa <name>".
- Validate both positions and their world.
- Save the FFA region and its configuration.
FFA Editing
"/practice editffa <name>"
Enable editing mode for the specified FFA.
"/practice saveffa <name>"
Save the FFA's region, spawnpoint, linked kits, visibility, and maximum player count.
"/practice deleteffa <name>"
Delete the specified FFA data without affecting unrelated arenas or kits.
---
- FFA List
Command:
"/practice ffalist"
Required Appearance
&#FF2E2EThis is the list of all FFA! &7Page List %current%/%max%
&7- %ffa_name% &7- %ffa_name% &7- %ffa_name% &7- %ffa_name% &7- %ffa_name% &7- %ffa_name%
&6◀ Previous page - Next page ▶
Functionality
Implement the same pagination system as "/practice arenalist".
- Six FFA entries per page.
- Clickable FFA names.
- Clickable Previous Page and Next Page.
- Correct current and maximum page numbers.
- Prevent navigation beyond available pages.
- Clicking an FFA name teleports the administrator to its saved inspection location.
- Handle empty FFA lists correctly.
Do not automatically join FFA combat when a name is clicked.
---
- Messages.yml
Create a separate "Messages.yml" file.
Every message must be configurable.
Support:
- HEX colors.
- Legacy color codes.
- Prefix placeholders.
- Arena name placeholders.
- FFA name placeholders.
- Kit name placeholders.
- Player spawnpoint number placeholders.
- Maximum player count placeholders.
- Pagination placeholders.
Prefix
prefix: "&#FF2E2E&lPRACTICE &8▶"
Arena Messages
createarena: "%prefix% ^FE47Arena %arena_name% has successfully created!"
deletearena: "%prefix% &#FF2E2EArena %arena_name% has successfully deleted!"
editarena: "%prefix% &#F2B234You can now edit this arena!"
savearena: "%prefix% ^FE47This arena has successfully saved!"
arenalinkkit: "%prefix% &#F2B234Kit %kit% has been linked with this arena!"
arenaunlinkkit: "%prefix% &#F2B234Kit %kit% has been unlinked from this arena!"
arenaspawnpoint: "%prefix% ^FE47You have successfully created player %num% spawnpoint!"
arenamaxplayer: "%prefix% &#F2B234Arena %arena_name% max players set to %number%"
arenavisibilitypublic: "%prefix% ^FE47Arena %arena_name% visibility set to &lPUBLIC!"
arenavisibilityprivate: "%prefix% ^FE47Arena %arena_name% visibility set to &#FF2E2E&lPRIVATE!"
Arena List Message
arenalist: header: "&#FF2E2EThis is the list of all arena!" page: "&7Page List %current%/%max%" entry: "&7- %arena_name%" previous: "&6◀ Previous page" next: "&6Next page ▶"
Make each arena entry clickable and teleport to its inspection location.
FFA Messages
createffa: "%prefix% ^FE47FFA has been successfully created!"
deleteffa: "%prefix% &#FF2E2EFFA has been successfully deleted!"
editffa: "%prefix% &#F2B234You can now edit this FFA!"
saveffa: "%prefix% ^FE47You have successfully saved this FFA!"
Use the same message format as the arena messages for:
- FFA kit linking.
- FFA kit unlinking.
- FFA maximum player count.
- FFA public visibility.
- FFA private visibility.
- FFA spawnpoint creation.
- FFA unlink-all confirmation.
For FFA maximum-player and visibility messages, replace the arena reference with the FFA name.
FFA List Message
ffalist: header: "&#FF2E2EThis is the list of all FFA!" page: "&7Page List %current%/%max%" entry: "&7- %ffa_name%" previous: "&6◀ Previous page" next: "&6Next page ▶"
Implement the same interactive pagination system as the arena list.
Additional Messages
Add configurable messages for:
- No permission.
- Player-only commands.
- Invalid command usage.
- Arena not found.
- FFA not found.
- Arena already exists.
- FFA already exists.
- No arenas available.
- No FFAs available.
- Missing Position 1.
- Missing Position 2.
- Positions belonging to different worlds.
- Invalid spawnpoint number.
- Invalid maximum player count.
- Invalid visibility.
- Invalid kit.
- Kit already linked.
- Kit not linked.
- No linked kits.
- Arena or FFA saved successfully.
- Reload successful.
- World not found.
- Unsafe or invalid teleport location.
All messages must use the configurable prefix wherever appropriate.
---
- Config.yml
Create a fully configurable "config.yml".
Include the following settings:
==========================================
FxPractice Configuration
Made By NotErrorXPlayZz
==========================================
settings: debug: false
# Number of entries displayed on each list page list-entries-per-page: 6
# Allow administrators to teleport using the arena list arena-list-teleport: true
# Allow administrators to teleport using the FFA list ffa-list-teleport: true
# Default visibility for newly created arenas and FFAs default-visibility: PRIVATE
# Default maximum player count default-max-players: 2
# Minimum permitted maximum player count minimum-max-players: 1
# Maximum permitted maximum player count maximum-max-players: 100
wand: material: DIAMOND_AXE name: "&#FF2E2E&lArena Select Wand"
lore: - "&7Wand" - "&r" - "&#FF2E2EInformation:" - "&#FF2E2E● Left-click &fto select Position 1!" - "&#FF2E2E● Right-click &fto select Position 2!" - "&r" - "&e▶ &l&nLEFT CLICK&r &eto Select pos1" - "&e▶ &l&nRIGHT CLICK&r &eto Select pos2"
prevent-block-breaking: true prevent-unwanted-interactions: true
arena: save-on-create: true save-on-edit: true require-both-positions: true require-same-world: true default-visibility: PRIVATE default-max-players: 2
ffa: save-on-create: true save-on-edit: true require-both-positions: true require-same-world: true default-visibility: PRIVATE default-max-players: 20
storage: # Persistent YAML storage type: YAML
# Automatically save changes auto-save: true
# Save interval in seconds, where applicable save-interval: 300
All applicable settings must actually be read and respected by the plugin. Do not include configuration options that do nothing.
The "Messages.yml" file must remain separate from "config.yml".
---
- plugin.yml
Generate a valid "plugin.yml" file.
Required details:
name: FxPractice version: 1.0.0 main: YOUR_ACTUAL_MAIN_CLASS api-version: '1.21' author: NotErrorXPlayZz description: A customizable arena and FFA management plugin.
Important: Replace "YOUR_ACTUAL_MAIN_CLASS" with the actual fully qualified Java main class.
Register the following command and aliases:
commands: practice: description: Main FxPractice command usage: "/practice" aliases: [p, fxp, fp, fxpractice]
Add suitable permissions, including:
permissions: fxpractice.admin: description: Access to all FxPractice administrative commands default: op
fxpractice.wand: description: Obtain and use the Arena Select Wand default: op
fxpractice.arena.create: description: Create arenas default: op
fxpractice.arena.delete: description: Delete arenas default: op
fxpractice.arena.edit: description: Edit and save arenas default: op
fxpractice.arena.list: description: View the arena list default: op
fxpractice.ffa.create: description: Create FFAs default: op
fxpractice.ffa.delete: description: Delete FFAs default: op
fxpractice.ffa.edit: description: Edit and save FFAs default: op
fxpractice.ffa.list: description: View the FFA list default: op
fxpractice.reload: description: Reload FxPractice configuration default: op
Implement permission checks inside the command executor.
Use "fxpractice.admin" as an administrative bypass permission.
Do not rely solely on "plugin.yml" permission declarations; enforce permissions in Java code.
---
- Reload System
Command:
"/practice reload"
Reload:
- "config.yml"
- "Messages.yml"
- Arena configurations.
- FFA configurations.
- Relevant cached settings.
Requirements:
- Validate configurations before applying them.
- Avoid clearing valid arena or FFA data.
- Do not require a server restart for normal configuration changes.
- Display a configurable success or failure message.
- Do not reload or interfere with the other four custom plugins.
---
- Persistent Storage Structure
Create the following data files when necessary:
plugins/ └── FxPractice/ ├── config.yml ├── Messages.yml ├── arenas/ │ └── <arena_name>.yml ├── ffa/ │ └── <ffa_name>.yml └── data/ └── player-selections.yml
The exact internal storage structure may be improved if needed.
Requirements:
- Save arena and FFA data separately.
- Store coordinates accurately.
- Store linked kits.
- Store visibility and maximum player count.
- Store all numbered arena spawnpoints.
- Store the FFA spawnpoint.
- Preserve data across server restarts.
- Use safe file handling and prevent corrupted data from crashing the plugin.
- Sanitize arena and FFA names before using them as filenames.
- Do not delete unrelated data when deleting an arena or FFA.
---
- Tab Completion
Implement dynamic tab completion for all commands.
Examples:
"/practice deletearena <arena_name>"
Should suggest existing arena names.
"/practice arena <arena_name> kit link <kit_name>"
Should suggest arena names and, when FxKitSystem integration is available, valid kit names.
"/practice deleteffa <ffa_name>"
Should suggest existing FFA names.
Other suggestions should include:
- "createarena"
- "deletearena"
- "editarena"
- "savearena"
- "arenalist"
- "createffa"
- "deleteffa"
- "editffa"
- "saveffa"
- "ffalist"
- "wand"
- "reload"
- "kit"
- "link"
- "unlink"
- "unlinkall"
- "maxplayer"
- "visibility"
- "setspawnpoint"
- "public"
- "private"
Never suggest nonexistent arenas or FFAs when completing commands that require existing objects.
---
- Code Quality and Error Handling
- Use a clean, modular Java architecture.
- Separate command handling, arena management, FFA management, configuration, messages, and storage.
- Use Paper-compatible APIs.
- Avoid deprecated APIs where practical.
- Avoid unnecessary repeating tasks and excessive server-thread work.
- Validate user input.
- Handle missing worlds safely.
- Prevent duplicate arena and FFA names.
- Avoid accidental data loss.
- Make command feedback consistent.
- Ensure all commands have working permissions.
- Ensure the plugin starts without errors on the supported Paper version.
- Do not use placeholder methods for required features.
- Do not provide pseudocode in place of working Java implementation.
- Do not claim successful compilation without actually compiling the project.
---
- Required Deliverables
Generate the complete, compilable Java project for FxPractice.
Include:
- Complete Java source code.
- "plugin.yml".
- "config.yml".
- "Messages.yml".
- Maven "pom.xml".
- Arena selection wand implementation.
- Arena creation, editing, saving, and deletion.
- FFA creation, editing, saving, and deletion.
- Persistent arena and FFA storage.
- Interactive paginated arena and FFA lists.
- Kit-linking management.
- Spawnpoint management.
- Maximum-player and visibility settings.
- Permission checks.
- Tab completion.
- Reload implementation.
- A compiled JAR, if the environment supports building the project.
The finished plugin must be suitable for a real Paper server.
Plugin Branding
Display the following branding in the plugin's startup console message and configuration headers:
"&#FF2E2E&lFxPractice &8▶ &fMade By &#FF2E2E&lNotErrorXPlayZz"
The author must also appear as "NotErrorXPlayZz" in "plugin.yml".
Final instruction: Focus exclusively on FxPractice. FxPracticeCore, FxDuels, FxArenaReset, and FxKitSystem will be developed separately. Build FxPractice with clean integration points so these plugins can connect to it in the future without duplicating their responsibilities.