A
📎 1 file 10,208 chars
📄
pasted-code-1778914865696.txt
txt 568 lines
▶
PLUGIN NAME: SMP Plugin

PLUGIN TYPE:
Advanced Minecraft SMP Plugin with Mob Token Powers

SUPPORTED SERVER SOFTWARE:
• Bukkit
• Spigot
• Paper
• Purpur

SUPPORTED VERSIONS:
Minecraft 1.13.x → 26.1.2

MAIN IDEA:
Create a professional, optimized, multiplayer-friendly SMP plugin with a Mob Token power system.

Players receive special Mob Tokens that grant unique passive and active abilities.

Every player receives a random Mob Token through a cinematic spinning wheel when joining the server for the first time.

The plugin must be highly optimized, configurable, modern, smooth, and safe for large SMP servers.

---

## FIRST JOIN TOKEN SPIN SYSTEM

When a player joins for the FIRST TIME:

1. Freeze player movement.
2. Hide hotbar temporarily.
3. Dark cinematic screen effect.
4. Open animated spinning wheel INVENTORY GUI.
5. Wheel cycles through all token names.
6. Play spinning sounds.
7. Randomly select token.
8. Show particles and title animation.
9. Give token item into inventory.
10. Save token permanently.
11. Automatically activate all powers.

TITLE:
“YOU RECEIVED  TOKEN”

FEATURES:
• Smooth wheel animation
• Configurable rewards
• Configurable spin duration
• Sound effects
• Rarity chances
• Admin reroll support
• Async loading

---

## TOKEN ITEM SYSTEM

• Token item uses:

* custom player head
* OR custom model data
  • Glowing enchanted appearance.
  • Custom lore.
  • Custom rarity colors.
  • Cannot be dropped.
  • Cannot be burned.
  • Cannot despawn.
  • Cannot be destroyed.
  • TOKEN MUST NEVER DROP ON DEATH.
  • Token automatically stays with player after death.
  • Token always remains inside player inventory.
  • Token cannot be removed by normal players.
  • Token cannot be thrown using Q key.
  • Token cannot be moved to other players.
  • Token can be placed inside:
* chest
* barrel
* shulker box
* ender chest
  • Admins can bypass protections.
  • Right-click opens token info INVENTORY GUI.

SHOW:
• powers
• cooldowns
• rarity
• passive effects
• active abilities

---

## TOKEN POWERS

Zombie Token — “Undead Strength”
• Strength I
• Night Vision
• Regeneration I
• Poison immunity

Skeleton Token — “Archer’s Focus”
• Strength II
• Speed I
• +50% Bow Damage
• Faster arrow velocity
• Arrow trail particles

Spider Token — “Web Walker”
• Jump Boost III
• Speed II
• Wall climbing
• Web immunity
• Sticky climbing mechanic

Pig Token — “Swift Hooves”
• Speed III
• Saturation
• Faster food regeneration

Creeper Token — “Blast Shield”
• Explosion immunity
• Fire Resistance
• Resistance III
• Explosive leap ability

Blaze Token — “Infernal Aura”
• Full fire immunity
• Strength II
• Fire attacks
• Flame aura particles

Guardian Token — “Ocean’s Grace”
• Water Breathing
• Dolphin’s Grace
• Night Vision underwater
• Faster swimming

Snow Golem Token — “Frozen Heart”
• Speed I
• Resistance II
• Infinite snowballs
• Freeze enemies with snowballs

Wither Skeleton Token — “Dark Presence”
• Wither immunity
• Strength II
• Wither effect attacks
• Dark smoke aura

Bat Token — “Echolocation”
• Night Vision
• Slow Falling
• Speed II
• Detect nearby mobs/entities

Wolf Token — “Pack Leader”
• Haste II
• Strength I
• Summons 3 loyal wolves
• Wolves auto-respawn

Squid Token — “Ink Cloud”
• Dolphin’s Grace II
• Blind nearby enemies
• Ink escape ability underwater

Enderman Token — “Void Shift”
• Instant teleportation (15 blocks)
• Enderman particles
• Reduced fall damage after teleport

Bee Token — “Buzz Rush”
• Speed III
• Slow Falling
• Saturation II
• Poison sting attacks

Horse Token — “Stallion Sprint”
• Speed IV
• Jump Boost III
• Sprint trail particles

Chicken Token — “Feather Fall”
• Complete fall damage immunity
• Slow Falling
• Double jump

Ravager Token — “Berserker Rage”
• Strength III
• Resistance II
• Charge attack
• Knockback immunity

Warden Token — “Sonic Shriek”
• Sonic Boom attack
• Entity detection through walls
• Darkness immunity
• Heavy footstep effects

Witch Token — “Brew Master”
• Random positive potion effects
• Auto potion drinking
• Splash potion attacks

Ender Dragon Token — “Dragon’s Might”
• Creative flight
• Strength III
• Dragon breath attack
• Purple dragon aura
• Flight particles

---

## EXPANDED ENDER CHEST SYSTEM

Create a custom expanded Ender Chest system like the picture shown.

FEATURES:
• Larger Ender Chest inventory.
• Double-size Ender Chest.
• Custom INVENTORY GUI size.
• Smooth loading.
• Saved per-player.
• Async loading and saving.
• Compatible with offline players.
• Real-time synchronization.

LAYOUT:
• Use 6-row Ender Chest INVENTORY GUI.
• More storage slots than normal Ender Chest.
• Clean vanilla-like design.

PLAYER COMMAND:
• /echest
Opens personal expanded Ender Chest.

ADMIN COMMAND:
• /esee 
Opens another player's expanded Ender Chest.

FEATURES:
• Online player support
• Offline player support
• Live editing
• Instant saving
• Inventory logging
• Async optimization

---

## TOKEN BALANCING SYSTEM

• Every ability configurable.
• Cooldowns configurable.
• Damage multipliers configurable.
• Particle effects toggleable.
• PvP balancing support.
• Admin can disable tokens.
• Anti-abuse system.
• Async cooldown system.
• No laggy repeating tasks.

---

## TOKEN RARITY SYSTEM

RARITIES:
• Common
• Rare
• Epic
• Legendary
• Mythic

FEATURES:
• Different rarity colors
• Different spin chances
• Broadcast rare token rewards
• Configurable rarity chances

---

## INVENTORY GUI SYSTEM

/tokens

Opens animated token INVENTORY GUI.

INVENTORY GUI FEATURES:
• Shows all tokens
• Shows rarity
• Shows abilities
• Shows cooldowns
• Locked/unlocked state
• Click token for detailed info
• Animated borders
• Sounds
• Particles
• Search support
• Pagination support

---

## ADMIN COMMANDS

/tokensadmin give  
Give token directly.

/tokensadmin giveitem  
Give physical token item.

/tokensadmin remove 
Remove token.

/tokensadmin reroll 
Force reroll token.

/tokensadmin setprogress   
Modify saved data.

/tokensadmin reload
Reload all configs and files.

/tokensadmin check 
Inspect:
• token
• cooldowns
• kills
• deaths
• abilities
• progress

/tokensadmin bypass
Toggle admin bypass mode.

/unban 
Unban banned player.

FEATURES:
• Works with temp/permanent bans
• Console support
• Shows:
“This player is not banned.”
if target is not banned

---

## PVP CONTROL SYSTEM

/pvp on
• Enable PvP globally for server.

/pvp off
• Disable PvP globally for server.

/pvp  on
• Enable PvP for player.

/pvp  off
• Disable PvP for player.

FEATURES:
• Global PvP toggle
• Player-specific PvP toggle
• Configurable messages
• Saves permanently
• Instant update without restart
• Admin bypass support
• Token combat abilities disabled when PvP disabled
• Prevent player damage when disabled
• Projectile damage blocked
• Explosion damage blocked
• Actionbar warnings
• Broadcast toggle messages
• Async optimized

---

## INVSEE SYSTEM

/invsee 

Editable inventory INVENTORY GUI.

FEATURES:
• Main inventory
• Armor slots
• Offhand
• Hotbar
• Cursor slot
• Live sync
• Real-time editing
• Offline player support
• Instant saving
• Async loading
• Vanish bypass support

---

## COMMAND TAB COMPLETION

ALL commands must support advanced tab completion.

FEATURES:
• Auto-suggest commands
• Auto-suggest subcommands
• Auto-suggest token names
• Auto-suggest config keys
• Auto-suggest online players
• Auto-suggest offline players
• Permission-based suggestions
• Async completion system

EXAMPLES:
• /tokensadmin give 
→ show active players

• /tokensadmin give player 
→ show token names

• /unban 
→ show banned players

• /invsee 
→ show all online/offline players

• /esee 
→ show all online/offline players

• /pvp 
→ show:
on
off
player names

---

## DATABASE SYSTEM

SUPPORT:
• SQLite
• MySQL

SAVE:
• Tokens
• Cooldowns
• Player stats
• Inventories
• Punishments
• Progress
• Logs
• PvP states
• Expanded Ender Chest data

FEATURES:
• Async database tasks
• Cached player data
• UUID support
• Offline player support
• Fast loading system

---

## CONFIG FILES

config.yml:
• Token settings
• Cooldowns
• Ban settings
• Database settings
• INVENTORY GUI settings
• Messages
• Sounds
• Particles
• PvP settings
• Ender Chest settings

messages.yml:
• Hex colors
• MiniMessage support
• Full customization

tokens.yml:
• Token powers
• Rarities
• Cooldowns
• Effects

---

## PERMISSIONS

smp.tokens
smp.admin
smp.invsee
smp.esee
smp.reload
smp.give
smp.bypass
smp.unban
smp.pvp
smp.pvp.toggle
smp.pvp.bypass
smp.echest

---

## EXTRA FEATURES

• PlaceholderAPI support
• LuckPerms support
• Vault support
• Discord webhook logs
• Anti-dupe protection
• Combat logging prevention
• TPS friendly
• Memory optimized
• Async optimization
• Custom model data support
• Resource pack support
• Actionbar cooldown display
• Bossbar timers
• Particle optimization
• Death animations
• Join animations
• Custom sounds
• Full tab completion
• Secure admin systems
• Offline player lookup system
• Vanish support
• Modular code structure
• OOP architecture
• Clean API design

---

## PLUGIN STRUCTURE

Use clean modular OOP structure:

• MainPlugin
• TokenManager
• AbilityManager
• GUIManager
• DatabaseManager
• CooldownManager
• SpinWheelManager
• CommandManager
• InventoryManager
• BanManager
• PvPManager
• EnderChestManager
• ConfigManager

---

## IMPORTANT

• Must work smoothly on multiplayer SMP servers.
• Fully optimized for Paper async systems.
• No memory leaks.
• No laggy repeating tasks.
• Secure admin systems.
• All abilities configurable.
• All cooldowns configurable.
• Production-quality plugin.
• Professional code quality.
• Stable on large servers.
• Lightweight and optimized.
Kodari AI
KodariMay 16 at 7:03 am 770 (v2)

I’ll create a comprehensive SMP plugin with Mob Token powers, spinning wheel animation, expanded ender chest, and all requested features.

SMPTokens
Advanced SMP plugin featuring a Mob Token power system with 25+ unique tokens granted via animated spinning wheel. Includes expanded Ender Chest, PvP controls, admin tools, and comprehensive GUI interfaces. Fully async-optimized with MySQL/SQLite support for large multiplayer servers.

Plan

  1. Core Plugin Structure - Main class, managers, configuration loaders

  2. Token System - Token enum, abilities, rarity, passive/active effects

  3. GUI Framework - Reusable inventory system with spinning wheel, token menus

  4. Database Layer - Async SQLite/MySQL with connection pooling

  5. Command System - Full tab completion for all admin/player commands

  6. Event Handlers - Token protection, abilities, PvP control, first-join spin

  7. Expanded Systems - Custom ender chest, invsee, PvP toggle

[Generation stopped]

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
manifest.kod
Code
3 95