📄
pasted-code-1794232263044.txt
txt
188 lines
▶
# Plugin Name: MaceSMPEvents
**Minecraft Version:** Paper 1.21.11
**Java Version:** Java 21
Create a complete, optimized and fully working Minecraft Paper plugin named `MaceSMPEvents`.
The plugin must include THREE major systems:
1. Demon Slayer Custom Boss Events
2. Announcement System
3. Bounty System
Do not remove or ignore any feature described below.
# 1. DEMON SLAYER CUSTOM BOSS SYSTEM
Remove all previous vanilla boss choices. Add these 10 Demon Slayer bosses in exactly this order, from weakest to strongest:
1. Tongue Demon
2. Enmu
3. Hairo
4. Kaigaku
5. Gyokko
6. Hantengu
7. Kokushibo
8. Yoriichi
9. Muzan
10. Demon King Tanjiro
## Boss Appearance / Skins
Each boss must visually represent its respective Demon Slayer character.
- Tongue Demon: Tongue Demon appearance.
- Enmu: Enmu's appearance.
- Hairo: Hairo's appearance.
- Kaigaku: Kaigaku's appearance.
- Gyokko: Gyokko's appearance.
- Hantengu: Hantengu's appearance.
- Kokushibo: Kokushibo's appearance, including his recognizable six-eyed design.
- Yoriichi: Yoriichi's appearance.
- Muzan: Muzan's appearance.
- Demon King Tanjiro: Demon King Tanjiro's appearance.
Do not give every boss the same zombie or skeleton appearance.
Use a compatible custom model/disguise system and resource-pack support to display the correct character skins and models. If external dependencies are required, clearly list them in plugin.yml/documentation. Do not pretend that a custom skin has been applied if the required resource pack or dependency is missing.
## Boss Abilities
Every boss must have:
- Unique health and damage.
- Unique attack abilities.
- Unique particles and sound effects.
- A unique boss name and appearance.
- A different difficulty level.
- Custom attack cooldowns.
- A special ability or ultimate attack.
The difficulty and health must increase progressively from Tongue Demon to Demon King Tanjiro.
Make every boss feel different. Do not simply change the mob's name and health.
## Boss Commands
Create these commands:
/bossevent list
/bossevent spawn
/bossevent stop
/bossevent reload
/bossevent help
Example:
/bossevent spawn kokushibo
Only players with admin permission can spawn or stop boss events.
## Boss Event Announcements
When a boss event starts:
- Announce the boss name to the entire server.
- Display a large title and subtitle in the center of every player's screen.
- Play a dramatic sound.
- Show a message explaining that the boss has spawned.
- Show the boss's location or coordinates.
During the fight:
- Display a Boss Bar to every online player.
- The Boss Bar must show the boss's name and current health percentage.
- Update the Boss Bar whenever the boss takes damage.
When the boss is defeated:
- Announce the victory to the entire server.
- Display a victory title.
- Play a victory sound.
- Give configured rewards to eligible players who participated in the fight.
- Remove the Boss Bar and clean up the event.
Prevent duplicate boss events from starting simultaneously unless configured otherwise.
# 2. ANNOUNCEMENT SYSTEM
Create this command:
/announcement
When an admin uses it:
- Display the message as a large title in the center of every player's screen.
- Display an optional subtitle.
- Also send the announcement to server chat.
- Support color codes.
- Make sure long messages are handled properly.
Permission:
`macesmpevents.announcement`
# 3. BOUNTY SYSTEM
Create a complete internal bounty currency system.
Do not require Vault, PlaceholderAPI, or any external economy plugin.
## Player Commands
/bounty set
/bounty check
/bounty top
/bounty list
## Admin Commands
/bounty add
/bounty remove
/bounty clear
## Bounty Features
- Players can have a bounty placed on them.
- Admins can set, add, remove, or clear bounties.
- Players can check their own or another player's bounty.
- `/bounty top` displays the highest bounty players.
- `/bounty list` displays active bounties.
- When a player kills a player with a bounty, the killer receives the bounty reward.
- Remove the claimed bounty after a successful claim.
- Prevent players from farming bounty rewards by repeatedly killing the same player.
- Prevent self-bounty claims.
- Handle combat logging and invalid kill cases safely.
- Save all bounty data permanently.
Use clear chat messages and formatted currency display.
# 4. DATA STORAGE
- Save player bounty data.
- Save boss event configuration.
- Save boss rewards and settings.
- Preserve data after server restart.
- Use UUIDs instead of player names wherever possible.
- Create configuration files that admins can edit.
# 5. PERMISSIONS
Create appropriate permissions for:
- Spawning and stopping bosses.
- Reloading the plugin.
- Sending announcements.
- Managing bounties.
- Viewing bounty information.
Give admin permissions to operators by default.
# 6. TECHNICAL REQUIREMENTS
- Must be compatible with Paper 1.21.11 and Java 21.
- Use proper Bukkit/Paper API methods.
- No deprecated or incompatible APIs.
- Optimize entity AI, particles, sounds, and scheduled tasks.
- Avoid memory leaks and unnecessary repeating tasks.
- Handle missing dependencies gracefully.
- Provide a complete plugin.yml.
- Provide a default config.yml.
- Include clear installation instructions.
- Do not leave unfinished methods, TODO comments, or fake features.
Before delivering the plugin, check for compilation errors and verify that all commands, permissions, event handlers, and configuration files are included.
**IMPORTANT:** Build all three systems together in one plugin: Demon Slayer bosses, announcements, and bounty system. Do not omit any feature.
Build the boss event, announcement, and persistent bounty systems together.
Provide configurable resource-pack model hooks; the character models themselves require Kodari Studio, which is currently disabled. You can enable it under this project’s Settings → Generation, or for all projects at https://kodari.ai/settings?tab=features.
Created the three systems, with configuration and installation instructions in INSTALLATION.md.
Appearance limitation: The bosses use vanilla fallback mobs unless you provide a matching resource pack. The plugin supports custom helmet item models, but does not include the requested character skins or full-entity disguises.
Compilation has not been verified in this session.
📄
pasted-code-1794232935803.txt
txt
245 lines
▶
# Plugin Name: UltimateSMP
Minecraft Version: Paper 1.21.11
Java Version: Java 21
Create a complete, optimized and fully working Minecraft plugin named **UltimateSMP**.
The plugin must combine THREE major systems into one plugin:
1. Advanced Lag Reduction System
2. Meteor Shower Events
3. Supply Drop Events
All systems must work independently and together without conflicts.
# 1. ADVANCED LAG REDUCTION SYSTEM
Create a smart lag reduction system to help improve server performance.
## Features
**Mob Limiter**
- Limit excessive mobs in configured areas.
- Prevent unnecessary mob spawning when limits are reached.
- Allow admins to configure separate limits for different mob types.
**Ground Item Manager**
- Monitor excessive dropped items.
- Warn players before cleaning items.
- Display a countdown before cleanup.
- Never delete important items without warning.
- Allow admins to configure protected items.
**Entity Optimizer**
- Monitor excessive entities.
- Manage unnecessary entity AI activity safely.
- Never interfere with boss events, named mobs, pets or important entities.
**Chunk Management**
- Monitor unnecessary chunk loading.
- Avoid force-loading chunks without a reason.
- Never unload chunks that players are actively using.
**Redstone Protection**
- Detect excessive redstone activity.
- Provide configurable protection against extreme redstone lag.
- Do not break normal redstone machines unnecessarily.
**Spawner Limiter**
- Configure maximum spawner activity.
- Prevent excessive mob spawning.
- Make all limits configurable.
## Performance Monitoring
Add:
- Live TPS monitoring.
- MSPT monitoring.
- Entity count monitoring.
- Loaded chunk monitoring.
- Memory usage monitoring.
- Automatic admin alerts when performance becomes poor.
Commands:
/ultimatesmp lag
/ultimatesmp status
/ultimatesmp cleanup
/ultimatesmp optimizer
/ultimatesmp reload
IMPORTANT:
Do not claim that the plugin can directly free all RAM or guarantee higher TPS. Focus on reducing unnecessary server workload.
# 2. METEOR SHOWER EVENT SYSTEM
Create a custom Meteor Shower event.
## Meteor Features
- Meteors randomly fall from the sky during an event.
- Each meteor has a falling animation using particles and sound effects.
- Create a visible impact effect when a meteor lands.
- Spawn a special meteor crater or marked landing location.
- Players can explore the impact location.
- Each meteor can contain valuable loot.
- Add configurable meteor types:
1. Normal Meteor
2. Rare Meteor
3. Legendary Meteor
4. Mythic Meteor
Higher rarity meteors must have better rewards.
## Meteor Announcements
When the event starts:
- Announce the event to all online players.
- Display a large title and subtitle.
- Play an event-start sound.
- Show a countdown before the first meteor falls.
When a meteor lands:
- Announce its coordinates.
- Display its rarity.
- Add particles and sound effects.
When the event ends:
- Announce the end of the event.
## Meteor Commands
/meteor start
/meteor stop
/meteor spawn
/meteor reload
/meteor status
Only admins can start, stop or manually spawn meteors.
# 3. SUPPLY DROP EVENT SYSTEM
Create an exciting Supply Drop event.
## Supply Drop Features
- Randomly spawn a supply crate in a safe, configured world location.
- Spawn a visible beacon or particle marker above the crate.
- Display smoke particles and special effects.
- Announce the crate's coordinates to all players.
- Create a countdown before the crate becomes available.
- Make the crate accessible to players after the countdown.
- Give different loot depending on crate rarity.
Supply Drop rarities:
1. Common
2. Rare
3. Epic
4. Legendary
5. Mythic
## Loot System
Allow admins to configure:
- Item types.
- Item amounts.
- Enchantments.
- Custom item names.
- Drop chances.
- Rarity-specific loot tables.
Legendary and Mythic crates should contain extremely rare and powerful rewards.
## Competition System
- Only one player should be able to claim a crate at a time.
- Prevent multiple players from claiming the same crate simultaneously.
- Announce the winning player's name.
- Remove or disable the crate after it has been claimed.
- Protect active supply crates from being destroyed or moved.
- Never replace or overwrite existing player blocks.
## Supply Drop Commands
/supplydrop start
/supplydrop stop
/supplydrop spawn
/supplydrop reload
/supplydrop status
Only admins can manually control supply drops.
# 4. AUTOMATIC EVENT SCHEDULER
Create an automatic event scheduler.
- Meteor Shower and Supply Drop events should happen automatically.
- Configure event intervals in config.yml.
- Allow admins to enable or disable automatic events.
- Avoid starting two major events simultaneously unless explicitly configured.
- Announce upcoming events before they start.
- Allow admins to manually start events at any time.
# 5. CONFIGURATION
Create an editable config.yml containing:
- Lag reduction settings.
- Mob limits.
- Item cleanup settings.
- Protected entities and items.
- Redstone limits.
- Meteor rarity and loot settings.
- Meteor spawn intervals.
- Supply Drop rarity and loot settings.
- Supply Drop spawn intervals.
- Event announcements.
- Particle and sound settings.
- World restrictions.
- Automatic event settings.
# 6. TECHNICAL REQUIREMENTS
- Compatible with Paper 1.21.11.
- Java 21.
- Use supported Paper/Bukkit APIs.
- No unnecessary external dependencies.
- Optimize all repeating tasks.
- Avoid memory leaks.
- Avoid excessive particle spawning.
- Ensure event cleanup after completion or server restart.
- Save active event data safely where necessary.
- Never overwrite player-built structures.
- Handle invalid worlds and unavailable locations safely.
- Do not interfere with other plugins or custom boss systems.
# 7. ADMIN PERMISSIONS
Create permissions for:
- Lag management.
- Manual meteor control.
- Manual supply drop control.
- Event management.
- Plugin reload.
- Configuration management.
Give operator permissions by default.
# 8. FINAL REQUIREMENTS
Deliver a complete compiled plugin JAR.
Include:
- plugin.yml
- config.yml
- All Java source files
- Installation instructions
- All commands and permissions
- Default loot tables
Check the entire project for compilation errors and Paper 1.21.11 compatibility.
Do not leave unfinished features, TODO comments, fake implementations or placeholder commands.
**IMPORTANT:** All three systems must be included in ONE plugin named UltimateSMP. Make it lightweight, configurable, reliable and suitable for a multiplayer survival SMP.
Configure UltimateSMP as the plugin entry point, while retaining the existing MaceSMPEvents source files.
Add configurable performance controls, meteor showers, supply drops, and automatic scheduling.
Include commands, permissions, loot defaults, and installation instructions.
Created UltimateSMP’s performance controls, meteor caches, supply drops, scheduler, configuration, and commands. The existing MaceSMPEvents source remains, but UltimateSMP is now the active plugin entry point.
Not fully complete: Entity AI optimization is not implemented, and meteors create marked caches rather than craters. Compilation and Paper compatibility have not been verified, and no compiled JAR was delivered.
📄
pasted-code-1794233341452.txt
txt
40 lines
▶
Continue working on the existing UltimateSMP plugin. Do NOT create a new project or remove any existing features.
Fix all four incomplete parts:
### 1. ENTITY AI OPTIMIZATION
- Implement the missing Entity AI optimization system.
- Monitor unnecessary entity AI activity.
- Add configurable limits and safe optimization rules.
- Never disable AI for players, bosses, pets, named mobs or important entities.
- Do not break normal mob behavior, combat, pathfinding or farms.
- Add enable/disable settings in config.yml.
### 2. REAL METEOR CRATERS
- Replace the current marked-cache-only meteor landing implementation with actual crater generation.
- Generate a visible crater at the meteor impact location.
- Use configurable crater sizes and depth.
- Create appropriate particles, sounds and impact effects.
- Protect player-built structures, protected regions, containers and important blocks.
- Never destroy blocks without checking whether the location is safe.
- Add an option to disable terrain modification.
- Ensure crater generation does not cause excessive server lag.
### 3. COMPILE AND VERIFY
- Compile the complete plugin using Java 21.
- Target Paper 1.21.11.
- Fix all compilation errors and incompatible API usage.
- Check plugin.yml, config.yml, commands, permissions and event handlers.
- Check that all three major systems work together:
- Lag Reduction
- Meteor Shower
- Supply Drop
### 4. DELIVER THE FINAL JAR
- Deliver the actual compiled UltimateSMP.jar file.
- Include the complete source code.
- Include config.yml and installation instructions.
- Report honestly which features were compiled and verified.
- Do not claim runtime testing unless it was actually performed.
IMPORTANT: Do not mark the plugin as complete until the missing implementation is finished and a compiled JAR is successfully generated.
Add conservative, configurable entity AI optimization.
Add bounded crater generation with terrain and protection checks.
Check the project configuration and compilation status, then report what was verified.
Added opt-in AI optimization with configurable distance, scan interval, and pause limits. It restores paused AI on reload, shutdown, and chunk unload.
UltimateSMP is not complete:
Meteor craters remain unimplemented. The existing location checks cannot reliably identify player-built blocks or protected regions, so destructive terrain changes would not be safe.
Compilation and runtime testing were not performed, and no compiled JAR was generated.
To compile the current project in Kodari, click Compile in the top bar, then Compile in the window. If it succeeds, click Download; if it fails, use Auto-fix.
I inspected your UltimateSMP-1.0.0.jar and found two remaining issues:
- Meteor events currently create marked chest caches instead of actual meteor craters.
- Entity AI optimization is disabled by default and requires special scoreboard tags, so it does not work for ordinary naturally spawned mobs.
Please fix both issues.
For Entity AI optimization, make it configurable and useful for normal naturally spawned mobs while protecting bosses, pets, named mobs and entities used by other plugins.
For Meteor Shower, implement safe, configurable crater generation with protection against destroying player builds and containers.
Also:
- Set sensible default configuration values.
- Verify all commands and permissions.
- Compile using Java 21 targeting Paper 1.21.11.
- Deliver the updated compiled JAR.
- Do not claim runtime testing unless actually performed.
Make AI optimization useful for ordinary mobs while retaining conservative exclusions.
Add configurable crater generation with checks for builds, containers, and protection plugins.
Check commands, permissions, and build configuration; report compilation separately from runtime testing.
Updated both systems:
AI optimization now targets newly spawned natural mobs of configured types by default, with conservative exclusions. Existing mobs are not retroactively marked.
Meteor craters are configurable and bounded. They require an administrator-approved terrain area and fail closed if another plugin is enabled, because arbitrary protection systems cannot be checked reliably. Until the area is configured, crater-enabled meteors will not land.
Checked the command and permission declarations and updated the installation instructions.
Not compiled or runtime-tested: I can’t deliver a verified JAR from this session. In Kodari, click Compile in the top bar, then Compile in the window; if it succeeds, click Download. If it fails, use Auto-fix.
I inspected the updated JAR. Please make these final corrections:
- Change plugin.yml api-version from 1.21.11 to 1.21.
- Keep the safe crater protection system, but provide clear configuration instructions for enabling craters in an approved terrain area.
- Remove unrelated old MaceSMPEvents classes from the UltimateSMP JAR.
- Compile again using Java 21 targeting Paper 1.21.11.
- Verify that all plugin commands and systems load correctly.
- Deliver the updated JAR.
Do not remove any existing UltimateSMP features.
Correct the plugin API version.
Clarify crater setup and remove the unrelated old classes.
Check the build and command registration, and report what I can verify.
Changed
api-versionto1.21; the build remains configured for Java 21 and Paper 1.21.11.Added step-by-step crater approval instructions to
INSTALLATION.mdand kept the existing safety checks.Removed the unrelated MaceSMPEvents classes. Reviewed UltimateSMP’s command and permission declarations.
Compilation and runtime loading have not been verified, and I can’t deliver a newly compiled JAR from this session. To build it in Kodari, click Compile in the top bar, then Compile in the window. If it succeeds, click Download; if it fails, use Auto-fix.
thnaks bro for this
You’re welcome, bro! Glad I could help.
How many credits I have left
I can’t see your credit balance. Check your Kodari account or billing settings for the current amount.
📄
pasted-code-1794235466237.txt
txt
201 lines
▶
# ULTIMATESMP – COMPLETE PLUGIN UPDATE
Update my existing **UltimateSMP** plugin. Do not create a separate plugin. Keep all three systems together:
1. Advanced Lag Reduction
2. Meteor Shower Events
3. Supply Drop Events
**Server:** Paper 1.21.11
**Java:** 21
Do not remove existing features unless they are broken or need replacement. Fix bugs and make all systems work together.
## 1. ADVANCED LAG REDUCTION
Create a powerful, automatic lag-reduction system.
### Automatic cleanup
- Remove unnecessary dropped items from the ground.
- Remove excessive XP orbs when necessary.
- Remove unnecessary projectiles and temporary entities.
- Remove excessive hostile mobs when the server is overloaded.
- Remove unnecessary temporary particles and effects.
- Remove abandoned or unnecessary entities when safe.
- Clean up entities in loaded chunks only.
- Run cleanup automatically when TPS or MSPT becomes poor.
- Allow scheduled cleanup through config.
### Important cleanup rules
- Lag reduction may delete dropped items if necessary, even valuable items.
- However, NEVER delete items inside player inventories, ender chests, shulker boxes, chests, barrels or other storage blocks.
- Never delete blocks, player builds, claimed areas, containers, armor stands used for decoration, or named/persistent entities.
- Never reset or delete player data, inventories, advancements, statistics, worlds, player homes or plugin data.
- Never delete Supply Drop chests or their contents.
- Never delete Meteor Shower event entities while an event is active.
- Before a major cleanup, announce it to the server.
- Show how many items and entities were removed.
### Performance optimization
- Optimize mob AI when mobs are far away and not being interacted with.
- Reduce unnecessary entity processing.
- Optimize spawner activity.
- Add configurable limits for mobs and dropped items.
- Monitor TPS and MSPT.
- Avoid excessive repeating tasks and memory leaks.
- Do not freeze the entire server.
- Do not unload chunks containing active players.
- Do not modify player builds for optimization.
### Cleanup announcements
Send a warning before cleanup:
`&c&lLAG CLEANUP! &eUnnecessary dropped items and entities will be removed in 5 seconds!`
After cleanup:
`&aLag cleanup completed! &eRemoved: {count} entities/items.`
## 2. METEOR SHOWER EVENTS
Keep and fix the existing Meteor Shower system.
- Automatically start meteor shower events according to config.
- Announce every event to all online players.
- Display a BossBar or clear event status.
- Spawn meteor effects safely.
- Create impact locations and crater effects.
- Make crater generation configurable.
- Avoid damaging protected areas, player builds, containers and spawn areas.
- Never overwrite player structures.
- Allow admins to start and stop events.
- Add configurable meteor frequency, damage, effects and rewards.
- Ensure meteor events do not conflict with Supply Drops or Lag Cleanup.
## 3. SUPPLY DROP SYSTEM
Keep all existing Supply Drop rarities:
- Common
- Rare
- Epic
- Legendary
- Mythic
### Announcements
Exactly 5 seconds before every Supply Drop spawns, announce:
`&6&lSUPPLY DROP! &eA supply chest will spawn in &c5 seconds&e! Get ready!`
Also show a Title, Subtitle and sound to online players.
After exactly 5 seconds:
- Spawn the Supply Drop chest.
- Announce its coordinates.
- Show its rarity.
- Allow players to reach and claim it.
- Protect the chest from unauthorized breaking or stealing.
- Announce the player who successfully claims it.
### Special automatic Legendary Chest
Add a separate special Legendary Chest event.
- Spawn one special Legendary Chest every 30 minutes while the server is online.
- Send the same 5-second announcement before spawning.
- Show a Title, Subtitle and sound.
- Announce the chest coordinates.
- Only one player can successfully claim it.
- Announce the winner to the entire server.
- Prevent duplicate scheduled Legendary events.
### Legendary loot restrictions
The special Legendary Chest must contain ONLY Overworld-themed loot.
Allowed examples:
- Diamonds
- Diamond armor
- Diamond tools and weapons
- Emeralds
- Gold ingots
- Iron ingots
- Lapis lazuli
- Redstone
- Enchanted books
- Golden apples
- Totems of Undying
- Other suitable Overworld items
STRICTLY FORBIDDEN:
- Netherite ingots
- Netherite scraps
- Netherite armor
- Netherite tools
- Netherite weapons
- Ancient Debris
- Any Netherite-related item
- Nether-exclusive or End-exclusive loot
Add these config options:
`legendary-chest.enabled: true`
`legendary-chest.interval-minutes: 30`
`legendary-chest.announcement-seconds: 5`
`legendary-chest.loot-theme: OVERWORLD`
`legendary-chest.allow-netherite: false`
## 4. CONFIGURATION
Create a clean and editable config.yml.
Allow admins to configure:
- Lag cleanup interval
- TPS/MSPT cleanup thresholds
- Dropped item cleanup
- Mob limits
- Entity limits
- Meteor Shower frequency
- Meteor effects and crater settings
- Supply Drop frequency
- Supply Drop loot
- Legendary Chest interval
- Announcement messages
- Event sounds and titles
## 5. ADMIN COMMANDS
Implement working commands:
`/ultimatesmp reload`
`/ultimatesmp status`
`/ultimatesmp cleanup`
`/meteor start`
`/meteor stop`
`/supplydrop start`
`/supplydrop stop`
Do not advertise commands that are not actually implemented.
## 6. FINAL REQUIREMENTS
- Preserve all existing player data and worlds.
- Do not reset the server.
- Do not break existing plugin systems.
- Prevent conflicts between all three systems.
- Use efficient scheduled tasks.
- Handle errors safely.
- Add proper permissions.
- Compile using Java 21 for Paper 1.21.11.
- Make sure plugin.yml and config.yml are correct.
- Fix all compilation errors.
- Deliver the final updated UltimateSMP JAR file.
- Provide a changelog explaining what was fixed and added.
**IMPORTANT:** Do not just create code that looks correct. Check every feature, command, config option and event handler. If a feature cannot be implemented properly, explain why instead of pretending it works.
Updated UltimateSMP with performance-triggered cleanup, five-second supply-drop warnings, a separately scheduled Overworld-only legendary chest, and configurable meteor impact damage. The changelog and crater setup instructions are in INSTALLATION.md.
Still incomplete: Cleanup does not remove hostile mobs, projectiles, or particles, and it cannot identify claims without a protection integration. Craters retain their fail-closed safety restrictions. The legendary warning and loot restrictions are fixed rather than freely configurable.
The plugin has not been compiled or runtime-tested, so I can’t claim all systems work or deliver a verified JAR. To build it in Kodari, click Compile in the top bar, then Compile in the window. If successful, click Download; if it fails, use Auto-fix.
📄
pasted-code-1794236043172.txt
txt
233 lines
▶
# ULTIMATESMP – BUG FIX AND FEATURE COMPLETION
I am providing my existing UltimateSMP plugin JAR.
This plugin is for my private Minecraft server named **MACE SMP**.
Your task is to FIX the existing plugin, not create a completely new plugin.
**Server requirements:**
- Minecraft: Paper 1.21.11
- Java: 21
- Plugin name: UltimateSMP
- Server name: MACE SMP
IMPORTANT: First inspect the uploaded JAR, its plugin.yml, config.yml, Java classes and existing event handlers. Understand the existing code before making changes.
Do not remove working features.
# 1. FIX SUPPLY DROP SYSTEM
Keep all five existing chest rarities:
- Common
- Rare
- Epic
- Legendary
- Mythic
### 5-second announcement
Before EVERY Supply Drop spawns:
1. Send a server-wide chat announcement:
`&6&lSUPPLY DROP! &eA supply chest will spawn in &c5 seconds&e! Get ready!`
2. Show a title and subtitle.
3. Play an announcement sound.
4. Wait exactly 5 seconds.
5. Spawn the chest.
6. Announce its coordinates and rarity.
Make sure the chest actually spawns after the announcement.
### Fix the incorrect timing
The current configuration has a 90-minute interval and a 60-second announcement.
Change the announcement time to exactly 5 seconds.
Do not accidentally change other event timings unless required.
# 2. SPECIAL LEGENDARY CHEST – EVERY 30 MINUTES
Create a separate automatic Legendary Chest scheduler.
Requirements:
- Spawn one special Legendary Chest every 30 minutes.
- The timer must work while the server is online.
- Restarting the server must not create duplicate scheduled tasks.
- Announce 5 seconds before spawning.
- Show title, subtitle and sound.
- Announce chest coordinates.
- Only one player can successfully claim it.
- Announce the winner.
- Prevent players from stealing or breaking protected chest contents.
IMPORTANT: This special chest must be separate from normal Legendary Supply Drops.
# 3. FIX LEGENDARY LOOT
The special Legendary Chest must use ONLY Overworld-themed loot.
Allowed:
- Diamonds
- Diamond armor
- Diamond tools
- Diamond weapons
- Emeralds
- Gold ingots
- Iron ingots
- Lapis lazuli
- Redstone
- Enchanted books
- Golden apples
- Totems of Undying
STRICTLY FORBIDDEN:
- Netherite ingots
- Netherite scraps
- Netherite armor
- Netherite tools
- Netherite weapons
- Ancient Debris
- Any Netherite-related item
- Nether-exclusive loot
- End-exclusive loot
IMPORTANT:
Check every possible loot table and reward generator used by the special Legendary Chest.
Do not just remove Netherite from one list while leaving it in another.
Add a final loot validation check before putting items into the chest.
# 4. FIX METEOR SHOWER
The existing Meteor Shower system must work properly.
Fix these configuration problems:
- approved-world must not remain empty.
- Coordinate minimum and maximum values must be valid.
- Crater generation must not be disabled just because another plugin is installed.
Requirements:
- Allow admins to configure the approved world.
- Allow admins to configure crater size.
- Do not damage player builds or protected regions.
- Do not overwrite containers or important structures.
- Announce meteor events.
- Ensure meteor events work independently from Supply Drops.
If safe crater protection cannot be implemented, disable crater block changes and explain why. Do not pretend crater generation works.
# 5. FIX LAG REDUCTION
Make the existing lag reduction system safer.
Requirements:
- Remove unnecessary dropped items.
- Remove excessive XP orbs when necessary.
- Optimize unnecessary mob AI.
- Add configurable mob limits.
- Add configurable dropped-item limits.
- Monitor TPS and MSPT.
- Avoid excessive repeating tasks.
- Avoid memory leaks.
IMPORTANT:
- Never delete items inside player inventories.
- Never delete items inside chests or other storage blocks.
- Never delete Supply Drop contents.
- Never delete player builds.
- Never delete player data.
- Never delete active event entities.
- Never unload chunks containing online players.
The item cleaner must have a configurable minimum item age. Do not remove newly dropped items immediately.
Send a warning before cleanup and report how many items/entities were removed.
# 6. CONFIGURATION
Create a clean config.yml with working settings.
Use these defaults:
legendary-chest:
enabled: true
interval-minutes: 30
announcement-seconds: 5
loot-theme: OVERWORLD
allow-netherite: false
supply-drop:
announcement-seconds: 5
lag:
enabled: true
item-cleanup-enabled: true
minimum-item-age-seconds: 600
meteor:
enabled: true
crater-enabled: true
All settings must actually connect to the Java code. Do not add fake config options that do nothing.
# 7. COMMANDS
Check and fix these commands:
/ultimatesmp reload
/ultimatesmp status
/ultimatesmp cleanup
/meteor start
/meteor stop
/supplydrop start
/supplydrop stop
Only register commands that are actually implemented.
Add proper permission checks and useful error messages.
# 8. IMPORTANT DEVELOPMENT RULES
Do not try to rewrite everything at once.
Work in this order:
1. Inspect existing source code.
2. Fix Supply Drop announcements and timing.
3. Add the separate 30-minute Legendary Chest scheduler.
4. Fix Legendary loot restrictions.
5. Fix Meteor configuration and crater safety.
6. Fix Lag Reduction safety.
7. Check commands and permissions.
8. Compile the final plugin.
If a feature is too complicated or unsupported, implement a simpler working version instead of creating fake functionality.
Do not claim that a feature works unless you have verified its implementation.
If you cannot access the original Java source code from the JAR, explain that and ask for the source code instead of pretending to modify the plugin.
# 9. FINAL DELIVERY
Deliver:
- Updated UltimateSMP JAR.
- Complete Java source code.
- Updated plugin.yml.
- Updated config.yml.
- A short changelog.
- A list of features successfully implemented.
- A list of features that still need testing.
Compile using Java 21 and Paper 1.21.11 API.
Do not reset or delete any existing player data or world data.
The final result must be compatible with my MACE SMP server.
I found the existing UltimateSMP source project, but no uploaded JAR was available to inspect. I can’t verify that the project matches the JAR on your server.
Please upload the JAR and its corresponding source code, or confirm that the source already in this project is the version used to build it. I haven’t changed any files.
📄
pasted-code-1794236725330.txt
txt
211 lines
▶
# CREATE ULTIMATESMP PLUGIN FROM SCRATCH
Create a complete Minecraft plugin named **UltimateSMP** for my server **MACE SMP**.
Do not use or search for any old JAR or source code. Build a fresh project from scratch.
## SERVER REQUIREMENTS
- Minecraft: Paper 1.21.11
- Java: 21
- Build system: Maven
- Plugin name: UltimateSMP
The plugin must contain ONLY these two main systems:
1. Supply Drop System (including Special Legendary Chest)
2. Advanced Lag Reduction System
Do not add Meteor Shower, Mace Upgrade, bosses or unrelated features.
# 1. SUPPLY DROP SYSTEM
Create five chest rarities:
- Common
- Rare
- Epic
- Legendary
- Mythic
Each rarity must have different loot, colors, effects and configurable spawn chances.
### Spawn announcement
Exactly 5 seconds before every Supply Drop:
Send this message to all online players:
`&6&lSUPPLY DROP! &eA supply chest will spawn in &c5 seconds&e! Get ready!`
Also:
- Show Title and Subtitle.
- Play an announcement sound.
- Wait exactly 5 seconds.
- Spawn the chest.
- Announce its coordinates and rarity.
### Chest protection
- Only allow one successful claim.
- Prevent unauthorized breaking.
- Protect chest contents.
- Announce the winning player.
- Remove expired event chests safely.
- Never overwrite player builds or containers.
# 2. SPECIAL LEGENDARY CHEST
Create a separate special Legendary Chest event.
Requirements:
- Automatically spawn every 30 minutes while the server is online.
- Announce 5 seconds before spawning.
- Show Title, Subtitle and sound.
- Announce chest coordinates.
- Only one player can claim it.
- Announce the winner.
- Prevent duplicate scheduled events.
- Keep it separate from normal Legendary Supply Drops.
### Special Legendary loot
Only Overworld-themed loot is allowed.
Allowed:
- Diamonds
- Diamond armor
- Diamond tools and weapons
- Emeralds
- Gold ingots
- Iron ingots
- Lapis lazuli
- Redstone
- Enchanted books
- Golden apples
- Totems of Undying
- Other suitable Overworld items.
STRICTLY FORBIDDEN:
- Netherite ingots
- Netherite scraps
- Netherite armor
- Netherite tools
- Netherite weapons
- Ancient Debris
- Any Netherite-related item
- Nether-exclusive loot
- End-exclusive loot
Add final loot validation before items enter the chest.
Default configuration:
legendary-chest:
enabled: true
interval-minutes: 30
announcement-seconds: 5
loot-theme: OVERWORLD
allow-netherite: false
# 3. ADVANCED LAG REDUCTION
Create an automatic lag reduction system.
Features:
- Dropped item cleanup.
- XP orb cleanup.
- Unnecessary entity cleanup.
- Mob AI optimization.
- Mob limits.
- Spawner limits.
- TPS monitoring.
- MSPT monitoring.
- Automatic cleanup during poor performance.
- Configurable cleanup interval.
- Configurable minimum item age.
- Manual admin cleanup command.
### Cleanup announcement
Before cleanup:
`&c&lLAG CLEANUP! &eUnnecessary items and entities will be removed in 5 seconds!`
After cleanup:
`&aLag cleanup completed! &eRemoved: {count}`
### Protection rules
- Never delete items inside player inventories.
- Never delete items inside chests or storage blocks.
- Never delete player builds.
- Never delete player data.
- Never delete active Supply Drop chests.
- Never delete active Special Legendary Chests.
- Never delete active event entities.
- Never unload chunks containing online players.
- Never reset the world.
Dropped items may be removed after the configured minimum age, even if valuable.
Default configuration:
lag:
enabled: true
item-cleanup-enabled: true
minimum-item-age-seconds: 600
automatic-cleanup: true
# 4. ADMIN COMMANDS
Implement:
/ultimatesmp reload
/ultimatesmp status
/ultimatesmp cleanup
/supplydrop start
/supplydrop stop
/supplydrop status
All commands must actually work and have permission checks.
# 5. CONFIGURATION
Create a complete, editable config.yml.
All configuration settings must actually connect to the Java implementation.
# 6. TECHNICAL REQUIREMENTS
- Java 21.
- Paper 1.21.11 API.
- Maven project.
- Proper plugin.yml.
- Proper permissions.
- Efficient scheduled tasks.
- No memory leaks.
- No duplicate schedulers.
- Safe player data storage.
- Proper error handling.
- No paid plugin dependencies.
# 7. TESTING AND DELIVERY
Build and check both systems separately.
Deliver:
- Complete Java source code.
- pom.xml.
- plugin.yml.
- config.yml.
- README.
- Compiled UltimateSMP.jar.
- Changelog.
- Testing report.
If actual Paper server testing is unavailable, clearly state that.
Do not claim a feature works unless its implementation has been checked.
Do not add any other systems. Focus entirely on making Supply Drops, Special Legendary Chests and Lag Reduction work correctly.
I’ll build the two requested systems afresh, without using the old source or JAR. I’ll also keep the build and testing report separate from any claim of live server testing.
Created a fresh UltimateSMP source project with supply drops, a separate legendary scheduler, and lag controls. The README includes setup instructions, a changelog, and a testing report.
Not verified: Compilation and live Paper testing were not performed, so no updated JAR is available. Cleanup currently covers ground items and XP orbs, not other unnecessary entities; supply-drop rarities have different particles but not different sounds.
To build it in Kodari, click Compile in the top bar, then Compile in the window. If it succeeds, click Download; if it fails, use Auto-fix.
package com.kodari.ultimatesmp;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
import org.bukkit.plugin.java.JavaPlugin;
public final class Main extends JavaPlugin {
private Drops drops;
private Lag lag;
@Override public void onEnable() {
saveDefaultConfig();
drops = new Drops(this);
lag = new Lag(this);
Bukkit.getPluginManager().registerEvents(drops, this);
Bukkit.getPluginManager().registerEvents(lag, this);
drops.start();
lag.start();
}
@Override public void onDisable() {
if (drops != null) drops.shutdown();
if (lag != null) lag.shutdown();
}
static String color(String text) { return ChatColor.translateAlternateColorCodes('&', text); }
@Override public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
String permission = command.getName().equalsIgnoreCase("supplydrop") ? "ultimatesmp.supplydrop" : "ultimatesmp.admin";
if (!sender.hasPermission(permission)) { sender.sendMessage(color("&cYou do not have permission.")); return true; }
if (args.length != 1) return false;
String action = args[0].toLowerCase(java.util.Locale.ROOT);
if (command.getName().equalsIgnoreCase("supplydrop")) {
switch (action) {
case "start" -> sender.sendMessage(drops.request(false) ? color("&aSupply drop scheduled.") : color("&cA drop is already pending, or no safe location is available."));
case "stop" -> { drops.stopDrops(); sender.sendMessage(color("&eSupply drops stopped.")); }
case "status" -> sender.sendMessage(color("&e" + drops.status()));
default -> { return false; }
}
} else {
switch (action) {
case "reload" -> { drops.shutdown(); lag.shutdown(); reloadConfig(); drops.start(); lag.start(); sender.sendMessage(color("&aUltimateSMP reloaded.")); }
case "status" -> sender.sendMessage(color("&e" + drops.status() + " | " + lag.status()));
case "cleanup" -> sender.sendMessage(lag.requestCleanup() ? color("&aCleanup scheduled.") : color("&cCleanup is disabled or already pending."));
default -> { return false; }
}
}
return true;
}
}