Give me plugin promot for ai to make minecraft java plugin, in which there is four kingdoms end kingdom, nether kingdom, overworld kingdom and void kingdom. This four kingdoms have there own effects. End kingdom have effect parmanent invisbility effect, Nether Have Parmanent fire ressestance, overworld have parmanent speed effect and void kingdom can have all effects (fire ress, speed, invis and strenght 4). Void kingdom Can Access by a special portal that crafted by three special weapons that obtained by killing the owner of end kingdom, overworld kingdom and nether kingdom, this three special weapons can set by admin using INVENTORY INVENTORY GUI of plugin, This void kingdom portal can crafted on crafting table by placing this three special weapons horizentaly . this portal give acces to go void kingdom that is in void, The Player that first go to void kingdom he beccome owner of void kingdom. Also Add custom blocks in void kingdom that admin see by INVENTORY INVENTORY GUI and there is own custom biome in void that matches the void theme. Void Kingdom have also special ability to teleport to any player and force teleprt any player to him using plugin INVENTORY INVENTORY GUI. Every kingdom have there singature trim that automatically applies on there armor that can select by owner of kingdom by using INVENTORY INVENTORY GUI of this plugin also the admin can acces this. Owner of kingodm can add players in kingdom using INVENTORY INVENTORY GUI of plugin. There Is only One nether Portal In Server That only Admin can light it and there is only one portal in nether to back in overworld. and also there is only one stronghold in server to acces end that can admin select using INVENTORY INVENTORY GUI. If any player kill owner of any kingdom he got the kingdom (when somone got kingdom show it in on screen of player). Also change player nametags to player to hide there identity if some kill any player death msg will show like player were killed by player like this. also make plugin full customizeable by INVENTORY INVENTORY GUI by admin or config of plugin. All INVENTORY INVENTORY GUI prefect working and also rename player name tag that above players to player to hide there identiy. Void Kingdom also have own custom stucture. admin can use INVENTORY INVENTORY GUI or command to tp to void kingdom. No One Can Allow To join any kingdom only admin can add or leave or owner can do
Copy-Paste Prompt for an AI Minecraft Plugin Developer
Create a complete production-ready Minecraft Java plugin called Kingdoms for Paper/Spigot.
The plugin must be modular, fully configurable, and use working inventory-based GUIs for all administrative and player management features.
Technical Requirements
Use Java 8 or newer.
Use Bukkit/Paper APIs.
Use XSeries for cross-version materials, sounds, particles, enchantments, potion effects, attributes, and item flags.
Use a clean modular architecture.
Use inventory GUI menus instead of chat-only configuration wherever requested.
Include all required classes, listeners, managers, commands, permissions, configuration files, language files, recipes, and
plugin.yml.Do not provide incomplete, placeholder, or pseudocode implementations.
Ensure every referenced class, method, command, listener, permission, and configuration path exists.
The plugin must safely save and load all kingdom data after restarts.
Use UUIDs instead of player names for ownership and membership storage.
All important messages, GUI titles, item names, lore, effects, sounds, timings, and settings must be configurable.
Kingdom System
Add exactly four kingdoms:
Overworld Kingdom
Nether Kingdom
End Kingdom
Void Kingdom
Each kingdom must have:
A unique name and color.
An owner.
A member list.
A configurable icon.
A configurable armor trim.
Configurable effects.
A management GUI.
Persistent data storage.
A configurable spawn location.
Configurable access rules.
Players cannot join a kingdom by themselves. A player may only be added by:
A server administrator, or
The current owner of that kingdom.
Owners and administrators must also be able to remove players from kingdoms through the GUI.
A player can only belong to one kingdom at a time.
Kingdom Effects
Apply the effects while a player belongs to the corresponding kingdom. Effects must be continuously restored if removed or expired.
Overworld Kingdom
Permanent Speed.
Speed level must be configurable.
Nether Kingdom
Permanent Fire Resistance.
End Kingdom
Permanent Invisibility.
Void Kingdom
Permanent Fire Resistance.
Permanent Speed.
Permanent Invisibility.
Strength IV.
Strength IV means the potion amplifier must be 3.
All effects must be configurable and may be enabled or disabled by an administrator.
When a player leaves or loses a kingdom, remove the kingdom effects that were applied by the plugin without unnecessarily removing unrelated potion effects.
Kingdom Ownership
Each kingdom has one owner.
Administrators must be able to:
Set or change a kingdom owner.
Remove an owner.
Add and remove members.
View kingdom members.
View ownership history.
Configure kingdom settings.
Teleport to kingdom locations.
Configure kingdom spawn locations.
If a player kills the current owner of a kingdom in a valid player-versus-player kill:
The killer becomes the new owner of that kingdom.
The previous owner is removed as owner.
The new owner is announced to the server.
The new owner receives the kingdom’s special weapon, if applicable.
The ownership change is saved immediately.
A title and subtitle are shown to the new owner.
A configurable broadcast message is sent.
Prevent ownership transfer from happening because of:
Suicide.
Fall damage.
Environmental damage.
Mobs.
Commands.
Fake or invalid damage events.
Repeated death-event processing.
Add a configurable ownership-transfer cooldown or protection system to prevent accidental duplicate transfers.
Special Kingdom Weapons
The End, Overworld, and Nether kingdoms each have one configurable special weapon.
Administrators must configure each special weapon through an inventory GUI.
The GUI must allow administrators to:
Create or select the weapon.
Set its material.
Set its display name.
Set its lore.
Set enchantments.
Set custom model data where supported.
Set item flags.
Set the kingdom associated with it.
Save and edit the item.
Reset it to its default item.
When the owner of the End, Overworld, or Nether kingdom is killed by another player, the killer receives the corresponding special weapon.
The weapons must have a persistent item identifier using PersistentDataContainer, not only a display name or lore check.
The three weapons must be required to craft the Void Portal.
Void Kingdom Portal
Create a special Void Kingdom portal system.
The Void Portal recipe must use the three special weapons:
[ End Weapon ] [ Overworld Weapon ] [ Nether Weapon ]
The recipe must require the three weapons to be placed horizontally in a crafting table.
The recipe must validate the actual persistent weapon identifiers and must not accept ordinary items with renamed display names.
The recipe must be configurable by an administrator.
When a valid Void Portal is activated:
Create or use the Void Kingdom world.
Teleport the player into the Void Kingdom.
If no Void Kingdom owner exists, the first player to successfully enter becomes the Void Kingdom owner.
Announce the new Void Kingdom owner.
Show the new owner a title and subtitle.
Save the owner immediately.
Prevent another player from becoming owner if an owner already exists.
The portal must have:
Configurable frame material.
Configurable activation method.
Configurable portal size.
Configurable destination location.
Configurable sounds and particles.
Configurable cooldown.
Protection against duplication.
Protection against unauthorized portal creation if enabled.
Only the three special weapons may be used to create the portal. They must not be duplicated or consumed incorrectly during crafting.
Void Kingdom World
Create a dedicated Void Kingdom world.
The world must:
Have a void-themed environment.
Use a configurable world name.
Use a configurable seed.
Use a void generator or an equivalent empty-world generator.
Have a custom Void-themed biome where supported by the server version.
Have configurable time, weather, gamerules, and world border.
Have a safe configurable spawn platform.
Have a custom Void Kingdom structure.
Save and load correctly after server restarts.
If the server version does not support fully custom biomes through the Bukkit API, implement the closest stable compatible solution and clearly isolate version-specific code.
Create a configurable Void Kingdom structure containing configurable blocks, decoration, and layout.
Custom Void Blocks
Administrators must be able to configure custom blocks used in the Void Kingdom through an inventory GUI.
The custom block GUI must allow administrators to:
Select a block material.
Set its display name.
Set its lore.
Set custom model data where supported.
Set hardness or break restrictions where possible.
Set whether players can place it.
Set whether players can break it.
Set drops.
Set sounds and particles.
Set the worlds where it is allowed.
Add, edit, delete, and save custom blocks.
Use persistent metadata to identify custom blocks reliably.
Void Kingdom Abilities
The Void Kingdom owner must have a GUI containing special abilities.
Add these abilities:
Teleport to Any Player
The Void Kingdom owner can select any online player from a GUI and teleport to that player.
Requirements:
Show online players with player-head icons.
Show player names and kingdom information.
Include a confirmation menu.
Include a configurable cooldown.
Include configurable sounds and messages.
Prevent use if the owner is dead, offline, or otherwise invalid.
Respect configured world and combat restrictions.
Force Teleport Any Player
The Void Kingdom owner can select an online player from a GUI and force that player to teleport to the Void Kingdom owner.
Requirements:
Include a confirmation menu.
Include a configurable cooldown.
Notify both players.
Include configurable sounds and effects.
Respect configured combat, world, and permission restrictions.
Prevent abuse through cooldowns and validation.
Administrators must also be able to use these abilities if enabled in configuration.
Armor Trim System
Each kingdom must have a unique signature armor trim.
The current kingdom owner must be able to select the kingdom’s trim through an inventory GUI.
Administrators must also be able to configure trims.
The trim menu must allow selection of:
Trim pattern.
Trim material.
Whether the trim is automatically applied.
Whether existing trims are replaced.
Whether trim application affects all armor pieces.
Whether the feature is enabled.
Automatically apply the selected kingdom trim to the armor of kingdom members when:
They join the server.
They join or change kingdom.
They equip armor.
Their inventory changes where necessary.
The plugin reloads.
Do not destroy unrelated armor data. Preserve enchantments, lore, attributes, custom model data, and other metadata.
Use version-safe logic for armor trims. If a server version does not support armor trims, disable the feature gracefully and notify administrators.
Nametag and Identity Hiding
Hide player identities above players.
Players belonging to kingdoms must appear above their character as:
Player
Do not display their real username in the visible nametag.
Use scoreboard teams or another reliable server-supported method.
Requirements:
Apply the hidden nametag when a player joins.
Reapply it after respawn, world change, and reload.
Prevent duplicate scoreboard teams.
Restore and clean up correctly when the plugin disables.
Make the displayed replacement name configurable.
Optionally allow administrators to see real names.
Keep the real UUID internally for all permissions, ownership, and data operations.
Death Messages
Replace normal player death messages with configurable identity-hiding messages.
For a player-versus-player kill, the default format should be similar to:
Player was killed by Player.
Do not reveal real player names unless configured by an administrator.
Support configurable messages for:
Player killed by player.
Player killed by mob.
Player killed by environment.
Void death.
Unknown death cause.
Nether Portal Restrictions
There must be only one official Nether Portal in the entire server.
Administrators must be able to select and manage it through an inventory GUI and commands.
Requirements:
Only administrators can light the official Nether Portal.
Block unauthorized Nether portal creation or activation.
Save the official portal location.
Prevent duplicate official Nether portals.
Teleport players through the official portal only.
Prevent portal duplication exploits.
Make the portal location configurable and persistent.
There must be only one official portal in the Nether that returns players to the Overworld.
Requirements:
Save its location.
Allow administrators to select it.
Block or disable unauthorized return portals.
Ensure players return to the configured Overworld portal.
Handle missing or invalid portal locations safely.
End Stronghold
There must be only one official stronghold used to access the End.
Administrators must be able to select the official stronghold through an inventory GUI or command.
Requirements:
Store the stronghold location persistently.
Allow administrators to select or replace it.
Prevent unauthorized stronghold access if configured.
Ensure End access uses the configured stronghold.
Provide a command for administrators to teleport to it.
Handle invalid or deleted locations safely.
Make all restrictions configurable.
Inventory GUI System
Create a reusable inventory GUI framework with:
Central GUI manager.
GUI listener.
Button handlers.
Click protection.
Open and close handling.
Pagination.
Confirmation menus.
Back buttons.
Cancel buttons.
Search or filtering where useful.
Player-head icons.
Configurable titles and item layouts.
Safe handling of shift-click, drag-click, hotbar swaps, double-click, and number-key clicks.
Create the following menus:
Main admin menu.
Kingdom management menu.
Kingdom owner menu.
Member management menu.
Special weapon editor.
Void portal settings menu.
Void custom block editor.
Void structure settings menu.
Armor trim selector.
Void ability menu.
Player selection menu.
Nether portal management menu.
End stronghold management menu.
Plugin settings menu.
Confirmation menus.
All GUI inventories must prevent unauthorized item movement and must not allow item duplication.
Commands
Create commands similar to:
/kingdom
/kingdom help
/kingdom info
/kingdom menu
/kingdom admin
/kingdom setowner <kingdom> <player>
/kingdom add <kingdom> <player>
/kingdom remove <kingdom> <player>
/kingdom leave <player>
/kingdom weapons
/kingdom portal
/kingdom void
/kingdom voidtp
/kingdom stronghold
/kingdom netherportal
/kingdom reload
Use a sensible command structure if a better design is appropriate.
Commands must include:
Permission checks.
Tab completion.
Clear error messages.
Offline-player support where appropriate.
Safe validation.
Configurable messages.
Permissions
Create permissions for at least:
kingdoms.admin
kingdoms.admin.menu
kingdoms.admin.ownership
kingdoms.admin.weapons
kingdoms.admin.portal
kingdoms.admin.void
kingdoms.admin.trim
kingdoms.admin.reload
kingdoms.owner
kingdoms.owner.members
kingdoms.owner.trim
kingdoms.owner.abilities
kingdoms.bypass
kingdoms.seerealnames
Make permissions configurable where practical.
Configuration
Create a complete config.yml containing settings for:
Kingdom names and colors.
Kingdom icons.
Potion effects.
Effect durations and amplifiers.
Ownership transfer rules.
Special weapons.
Void portal recipe.
Void world.
Void biome.
Void structure.
Custom blocks.
Void abilities.
Ability cooldowns.
Armor trims.
Nametags.
Death messages.
Nether portal restrictions.
End stronghold restrictions.
Sounds.
Particles.
GUI titles and layouts.
Messages.
Debug logging.
Data storage.
Version compatibility.
Create a separate language/messages file if appropriate.
Persistence
Persist:
Kingdom owners.
Kingdom members.
Ownership history.
Weapon settings.
Portal locations.
Stronghold location.
Void world settings.
Custom block settings.
Void structure settings.
Armor trim selections.
Player cooldowns where required.
Any generated locations.
Use YAML, SQLite, or another reliable storage method. Data must survive restarts and plugin reloads.
Events and Protection
Implement all required listeners for:
Player join.
Player quit.
Player death.
Player respawn.
Player world change.
Player teleport.
Player interact.
Inventory click.
Inventory drag.
Inventory close.
Crafting.
Portal creation.
Portal activation.
Entity damage.
Block place.
Block break.
Armor equip or inventory changes.
Plugin reload.
World initialization.
Make sure event handlers do not conflict with each other and do not process the same event repeatedly.
Deliverables
Return the complete plugin source code, including:
build.gradle.plugin.yml.config.yml.Language/messages file.
Main plugin class.
Kingdom models and managers.
Player data manager.
Ownership manager.
Weapon manager.
Void world manager.
Portal manager.
Stronghold manager.
Custom block manager.
Structure manager.
Armor trim manager.
Nametag manager.
Death message manager.
GUI framework.
All GUI implementations.
Commands and tab completers.
Event listeners.
Utility classes.
Default data files if needed.
Before finishing, verify that:
The project compiles.
Every imported class exists.
Every method call has a matching method definition.
Every command is registered.
Every listener is registered.
Every GUI button has a working handler.
All configuration paths are valid.
All persistent data is loaded and saved.
GUI clicks cannot duplicate or steal items.
The three special weapons are required for the horizontal Void Portal recipe.
Only the first player entering the Void Kingdom becomes its owner.
Killing a kingdom owner correctly transfers ownership once.
Players cannot join kingdoms without administrator or owner approval.
Nametags hide real player identities.
The official Nether portals and End stronghold restrictions work correctly.
The plugin fails gracefully when a location, world, material, biome, or version-specific feature is unavailable.
No files in this session