So, it will have these admin(requires OP and luckperms permissions) commands:
- /tpworld (world) #Documentation: Teleports the executing player to the spawn point of a specified world. Requires tab-complete tracking of all active Bukkit/Paper worlds loaded on the server instance. Example: /tpworld world_nether
- /maintenance (on, off) (level) #Documentation: Toggles server lockdown mode. Tab-completes 'on' or 'off' followed by an integer restriction level. When enabled, it kicks all active non-exempt players and blocks subsequent joins unless the user's permission group matches or exceeds the specified level. Example: /maintenance on 2
- /selectmode (containers(Minigame), spawns(Minigame), winnerspawn(for the Lobby)) #Documentation: Toggles a localized editor state for the administrator's player profile. Tab-completes 'containers' or 'spawns'. When active, standard block interaction events are intercepted so that right-clicking a block logs its coordinates into the plugin's configuration file as either a loot chest or a player spawn point. Example: /selectmode spawns
- /Minigame (start, stop, setlobby, setminigame, setloot, locklobby, closelobby) #Documentation: Main execution tree for managing the server's minigame cycle. Tab-completes all sub-arguments. State validation rule: 'start' cannot be executed if a game instance is already running; 'locklobby' and 'closelobby' only work when a game is in the pre-game countdown phase. Example: /Minigame start
- /SupportGoal ((show, hide), (setGoal) (Value in $: 10000)) #Documentation: Configures and triggers the global donation progress indicator display. Requires an asynchronous HTTP API connection to the website server to fetch ongoing payment gateway metrics. Example: /SupportGoal setGoal 10000
Here are commands that require admin permissions via the luckperms, but dont require the OP. these are gonna be distributed between Admins, Moderators, Helpers:
- /announce (local, all, test) (message: "Very cool announcement") #Documentation: Broadcasts a text string across specified text channels. Tab-completes 'local' (sends only to the execution world), 'all' (sends to the entire network instance), or 'test' (sends only to the executor for formatting review). Example: /announce all Server rebooting in 10 minutes.
- /Votepools ((start) (local, all, test) (Options: "Option one","Option two","option three","option four",...), (end) (Pool id), (cancel) (pool id)) #Documentation: Initiates or concludes a dynamic player poll. Tab-completes sub-arguments and generated unique Pool IDs. State validation rule: A new pool vote cannot be started if an existing poll is currently open in that same target scope. Example: /Votepools start all "Map A","Map B"
- /reports (page) #Documentation: Queries the plugin's internal database for player-submitted bug and player reports, rendering them in a paginated interactive text format or INVENTORY GUI. Tab-completes integer page numbers based on the current size of the report list. Example: /reports 1
- /Overwatch (on, off) #Documentation: Toggles the staff member's administrative stealth profile. Tab-completes 'on' and 'off'. When enabled, it triggers standard server vanish mechanics, hiding the player entity from view, removing them from the player tab-list, and disabling their movement/interaction footprint. Example: /Overwatch on
- /MInfo (player: Player) #Documentation: Queries the plugin's moderation database to pull a target player's history profile, including active punishments, previous warnings, and IP correlations. Tab-completes all online players, plus offline cached players. Example: /MInfo BadPlayer
- /MBan (player: BadPlayer) (lenght: 1s, 1m, 1h, 1d, 1mo, 1y, inf) (reason: "Modified client") #Documentation: Writes a ban record into the moderation database. Tab-completes online players and time-unit suffixes. The plugin must parse the time string into a Unix timestamp and intercept the AsyncPlayerPreLoginEvent to block connection attempts until expiration. Example: /MBan BadPlayer 30d Flying
- /MKick (player: BadPlayer) (reason: "Annoying") #Documentation: Directly invokes the Player#kick(Component) method on a target player if they are online. Tab-completes online players. Fires a packet to disconnect the client immediately while logging the event. Example: /MKick BadPlayer Spamming
- /MMute (player: BadPlayer) (lenght: 1s, 1m, 1h, 1d, 1mo, 1y, inf) (reason: "Bad language") #Documentation: Inserts a mute record into the database. Tab-completes online players and time suffixes. Intercepts the AsyncChatEvent to block the player's messages from being broadcast if the current system time is less than the expiration timestamp. Example: /MMute BadPlayer 1h Chat flood
- /MWarn (player: BadPlayer) (reason: "Rule breaking") #Documentation: Increments the warning count for a player in the storage database and displays a visual warning notice on their client screen. Tab-completes online players. Example: /MWarn BadPlayer Minor toxicity
- /Rename ((New name), (leave empty to reset to default)) #Documentation: Alters the display name and tab list name profile of the staff member using standard Paper chat components. If the string argument is left empty, it flushes the custom profile and defaults to their original username. Example: /Rename IncognitoMod
- /freeze (player: badPlayer) #Documentation: Toggles a frozen state flag on a target player. Tab-completes online players. While active, the plugin intercepts PlayerMoveEvent (restricting XZ movement while allowing head rotation) and blocks block breaking/placing events. Example: /freeze BadPlayer
- /MPardon (action: ban, warn, freeze, mute) (player: player, all) #Documentation: Removes or invalidates active punishment records in the moderation database. Tab-completes the action types, and then matches cached player names or 'all' to wipe punishments in bulk. Example: /MPardon mute BadPlayer
And here are the global commands that can be used by anyone who has the permissions set by the luckperms plugin, otherwise these commands are recognized as the commands that any player can use:
- /join (lobby id) #Documentation: Teleports a player into a designated minigame lobby instance. Tab-completes active, open lobby IDs. State validation rule: Fails if the targeted lobby is currently flagged as locked, closed, or full. Example: /join SW-04
- /queue #Documentation: Places the executing player into an automated matchmaking queue system. State validation rule: Execution is blocked if the player is already registered in a queue or actively participating inside an ongoing game instance. Example: /queue
- /poolvote (option: 1, 2, 3, 4, 5, 6, ...) #Documentation: Registers a player's choice to an active poll instance. Tab-completes the integers representing open options for the current vote. State validation rule: Throws an error if no pool is active or if the player has already cast a vote in the current poll. Example: /poolvote 2
- /report (Player/Game: (player: SomePlayer) (reason: "I think They are breaking rules"), (Category: Error, Glitch, Bug, Balance, Gameplay) (Priority: Minor, Moderate, Major) (Description: "When game starts, players dont get teleported")) #Documentation: Constructs and sends a detailed report entry to the staff data queue. Tab-completes player names for the first argument tree, or category listings ('Error', 'Glitch', etc.) and priority labels for the second tree. Example: /report Game Bug Major Queue fails to launch
- /friend ((add, remove, join, invite, accept, decline, blacklist, list) (player: BestFriendPlayer), (requests)) #Documentation: Base processing node for the social tracking database. Tab-completes all sub-actions, active pending requests, or names from the player's current friend/blacklist arrays. Example: /friend add GoodPlayer
- /msg (player: player) (message: "Sup friend") #Documentation: Opens a direct, private chat channel between two players. Tab-completes all currently online players across the server instance. Example: /msg FriendPlayer Hey there
- /vote #Documentation: Prints configured URL voting links directly to the executing player's chat component area, utilizing clickable text events. Example: /vote
- /support #Documentation: Outputs technical support instructions, discord invite hooks, or ticketing resource documentation into the player's chat view. Example: /support
- /website #Documentation: Dispatches a clickable chat link leading directly to the server's primary web domain destination. Example: /website
- /leaderboards #Documentation: Queries the primary database to pull and display ranking matrices (e.g., top kills, top wins) in chat or via an interactive virtual inventory display. Example: /leaderboards
- /stats #Documentation: Fetches and displays the executing player's recorded gameplay metrics from the local storage file or database. Example: /stats
- /profile (player: SomePlayer) #Documentation: Looks up and presents a comprehensive overview of a specified player's statistics and cosmetics. Tab-completes online players. Example: /profile SomePlayer
- /cosmetics #Documentation: Opens a Virtual INVENTORY GUI menu displaying available particle effects, trails, or cosmetic equipment options tracked on the player's data profile. Example: /cosmetics
And these comands are for players with paid ranks and stuff, this will have to connect with the website's server via an API that will confirm the purchase for this player and give them the rank or purchased item or just confirm the purchase:
- /NameColor #Documentation: Opens a custom INVENTORY GUI panel allowing premium players to select hex codes or chat formatting colors for their display name. Requires an active API authentication link verifying the player possesses the required store tier. Example: /NameColor
- /CreateLobby (private, public, friends only, requests only) (player limit min:2 max:20: 2, 10, 19) (name: "Very very cool friendly lobby") #Documentation: Generates a dynamically allocated private virtual world instance or room. Tab-completes privacy options and integer ranges between 2 and 20. State validation rule: A player is strictly blocked from executing this command if they are already registered as the owner of an active lobby instance. Example: /CreateLobby private 10 CustomMatch
- /lobby ((Requests, join, close, clean, reset, pause, settings), (accept, decline) (player that sent a join request: RandomPlayer)) #Documentation: Control panel interface for the custom lobby owner. Tab-completes sub-arguments and usernames currently held in the lobby's pending request queue. State validation rule: This command throws an error if the executor does not currently own an active private lobby. Example: /lobby accept RandomPlayer
- /vipRank (hide, show) #Documentation: Alters the visibility flag of the player's premium prefix within the AsyncChatEvent and Team packet structures. Tab-completes 'hide' and 'show'. Requires a store API check to confirm rank ownership before executing. Example: /vipRank hide
- /vipCosmetics #Documentation: Opens a specialized INVENTORY GUI container detailing exclusive premium cosmetic effects. Requires an active web-server API callback validation to unlock specific items based on recent web store purchase transactions. Example: /vipCosmetics
The Gameplay:
- Initial Connection Protocol #Documentation: Intercepts the AsyncPlayerPreLoginEvent and PlayerJoinEvent. Automatically runs an asynchronous query against the server's local database and active virtual room maps to match the player with an open instance where 'privacy' is set to public, status is 'WAITING', and current player count is less than max capacity. Example condition: If true, transitions player state; if false, drops player into a fallback void holding-queue.
- Void Phase Handshake #Documentation: While the matchmaking query is resolving, the player entity is bound to coordinates (0, 0, 0) inside a localized virtual empty chunk context. Intercepts and cancels PlayerMoveEvent, EntityDamageEvent, FoodLevelChangeEvent, and AsyncChatEvent. Sends a repeating action-bar message package stating "Processing session data, please wait..." to ensure the client connection remains active without causing network timeout. Example action: Implements a strict packet-level block on client-side entity movement inputs.
- Post-Join Data Load #Documentation: Fires immediately upon successful routing to an available minigame lobby instance. Asynchronously queries the database for player parameters, loading individual scores into the global leaderboard matrices, initializing the sidebar Objective Scoreboard component wrapper via Paper's Component API, and printing structural system information data strings directly into the client's chat feed buffer. Example action: Refreshes the local scoreboard layout with live player metrics.
- World Instance Cloning #Documentation: Triggered when the lobby state changes from 'WAITING' to 'STARTING' and countdown matches 0. Invocates Paper's WorldCreator API to perform a bitwise system file copy of the template minigame world's directory files into a unique runtime directory named dynamically via a random alphanumeric suffix string generator (e.g., "Minigame_789465sfs894"). Example action: Instantiates an isolated temporary world folder on the physical server drive.
- Coordinate Map Parsing #Documentation: Reads and parses a localized JSON/YML configuration payload stored within the cloned world directory template folder. Extracted node matrices define specific structural vector arrays previously written by administrators via the /selectmode tool, isolating data into explicit data structures for container vector layouts and player spawn point coordinate registers. Example condition: If config file is missing, the engine throws an IllegalStateException and aborts the loading thread.
- Systematic Spawn Distribution #Documentation: Iterates through the list of online lobby players and matches each unique UUID index sequence with an available vector coordinate pulled from the coordinate map array. Validation rule: If total player count exceeds the physical index count of the spawn array list, the assignment algorithm loops back to index 0, multi-stacking multiple player entities onto matching coordinate points. Example action: Spawns 12 players across 10 locations, stacking 2 players on locations 0 and 1.
- Pre-Match Countdown Lock #Documentation: Teleports all assigned player profiles into their matched spawn locations while enabling a persistent freeze flag status wrapper. Intercepts and cancels all instances of PlayerMoveEvent (except pitch/yaw head adjustments), BlockBreakEvent, BlockPlaceEvent, and PlayerInteractEvent while iterating an asynchronous task timer that ticks a title packet down from 10 to 0 on the players' screens. Example action: Displays countdown titles while hard-locking player XZ movement coordinates.
- Match Activation State #Documentation: Triggered exactly when the pre-match countdown timer returns 0. Flushes the global freeze flag wrapper from the match registry context. Modifies environmental flags to allow full usage of PlayerInteractEvent specifically on explicit block profiles including doors, trapdoors, levers, and buttons while preserving hard structural cancellation rules for block modification packets. Example condition: PlayerInteractEvent returns true for chest blocks, but returns false if attempting to ignite flint and steel or break blocks.
- Environment Modification Shield #Documentation: Listens to and forcefully terminates all events that alter the structural data layer of the map instance. This directly intercepts and cancels BlockBreakEvent, BlockPlaceEvent, EntityExplodeEvent, BlockBurnEvent, and PlayerBucketEmptyEvent/PlayerBucketFillEvent, ensuring the temporary cloned instance remains perfectly unchanged by player interactions throughout the match. Example action: Blocks a player attempting to break a glass block or place water.
- Phantom Bat Spectator Protocol #Documentation: Intercepts the PlayerDeathEvent, cancels the default screen overlay, and switches the player's game mode to custom spectator status. Spawns a server-side Bat entity profile linked directly to the player's coordinate transformation loop. The bat entity is structurally modified via DataWatchers to remain semi-transparent, removes its custom name tag display visibility, cancels its collision boxes, and blocks all forms of EntityDamageEvent. Example action: The dead player flies freely while tracking an invulnerable phantom bat model at their relative coordinates.
- Periodic Chest Loot Refill #Documentation: Instantiates a recurring task timer that executes exactly every 120 seconds (2 minutes). The execution script iterates through the compiled container vector layout map, randomly selects a predefined item loot table array previously configured by server administrators, flushes the existing item slot stacks inside those containers, and writes new random items into the block inventories. Example action: Clears all chests and populates them with Tier 2 loot configurations at the 4-minute mark.
- Dynamic Worldborder Shrink #Documentation: Coordinates directly with each periodic chest loot refill execution sequence. Modifies the Paper WorldBorder API parameters of the temporary minigame world instance to contract at a structural execution velocity of exactly 1 block per second until it reaches its target scale. Example calculation: A shrink target of 20 blocks will execute over a continuous linear progression window lasting exactly 20 seconds.
- Final Endgame Match Evaluation #Documentation: Evaluates match variables continuously after the 5th refill round concludes. If the system detects that the total living player count is greater than 1 when the worldborder hits its minimum 15x15 anchor coordinate matrix, it halts the round timer, evaluates remaining player metadata, and declares the entity holding the highest integer kill count (and highest remaining health double value as a secondary tie-breaker) the winner. Example action: Selects PlayerA with 5 kills over PlayerB with 2 kills.
- Server Session Reset and Clean #Documentation: Triggers instantly upon match termination. Flushes player states, runs Player#teleport() to route regular players back to the main lobby world spawn coordinates, and routes the designated winning player entity to the dedicated winner spawn vector. Unloads the temporary cloned world instance via Bukkit#unloadWorld() and deletes the dynamic directory file structure from the disk to free up resources. Example action: Deletes folder "Minigame_789465sfs894" from the server root directories.
- Lobby Instance Locking Persistence #Documentation: Maintains active state parameters for the core lobby world registration node even when all active players have migrated to the temporary game world instance. The allocation manager blocks any incoming external matchmaking hooks from assigning new connecting players to this lobby block until the ongoing match lifecycle flags clear or an available player slot explicitly opens via a participant disconnecting mid-game. Example condition: Lobby state remains 'BUSY' and closed to new players until the match concludes.
And add any visual content like sidebar, player list tags and stuff and etc.. to make it look visually appealing, so also some action titles and stuff. and also animated texts and titles and stuff and bossbars and etc...