Yessentials_v0.0.5_v26.52.3.mcaddon
What's new
# ๐ Yessentials v0.0.5 - Changelog
The most revolutionary and optimized version of Yessentials has arrived! We have rebuilt the way you interact with commands from the ground up to provide a modern, native, and seamless experience.
### โจ New Features
- **๐ 100% Native Integration (Slash Commands):** Say goodbye to the old `!` prefix! All Yessentials commands are now fully integrated into Minecraft's native system (`/ys:<command>`).
- **๐ฎ Magic Player Autocomplete:** Commands like `/ys:tpa` and `/ys:pay` now detect and autocomplete the names of online players.
- **๐ฏ Safe Native Selector Support:** You can now use official Minecraft selectors (`@r`, `@p`, `@s`) in commands like `/ys:tpa` or `/ys:pay`! Additionally, a safety barrier was added to block mass selectors (like `@a` or `@e`) to prevent accidental commands or abuse against multiple targets simultaneously.
- **โก Extreme Performance:** The legacy chat interception system has been entirely eradicated from the codebase. By utilizing native commands processed directly by Bedrock, your server saves valuable resources, preventing lag on heavily populated realms.
- **๐ฌ Improved Contextual Menus:** You can now type free-text arguments in commands (like `/ys:warp [name]` or `/ys:sethome [name]`) to skip interfaces, or leave them blank to open the spectacular visual menus!
- **๐ Help Menu Revamp:** The help command (`/ys:help`) has been rewritten to display the modern aesthetic format.
- **โ๏ธ Faction Quick Shortcuts:** The `/f` menu now includes powerful shortcuts for executing actions without opening menus. Type `/f kick <player>`, `/f sethome`, `/f home`, `/f disband`, `/f info`, and `/f top` to manage your empire instantly.
### ๐ New Commands and Systems (TPA)
- **Smart Request Queue:** If multiple players send you teleport requests (TPA) at the same time, they no longer overwrite! The system neatly queues them up so you can answer them one by one from oldest to newest.
- **New `/ys:tpaccept` and `/ys:tpdeny`:** For the fastest players, we added direct native shortcuts. Use them empty to automatically respond to the first player in your queue, or add a name (e.g., `/ys:tpaccept Juan`) to find and accept that specific player regardless of their place in line. Goodbye to mandatory menus!
### ๐ ๏ธ Technical Fixes and Improvements
- **Critical Faction Translations:** Resolved a severe bug in the text engine that caused crashes when creating or leaving factions (`TypeError: cannot read property 'created'`). All on-screen and chat visual alerts for factions are now properly connected to the `es_ES` and `en_US` languages.
- **Intuitive Parameter Names:** In native chat autocomplete, cryptic variables like `arg1`, `arg2` have been renamed to readable descriptions like `[Name_Or_Data]`, `[TAG_Or_Extra]` in the `/admin`, `/f` and `/kitadmin` commands.
- **Raw Selector Support:** Fixed a deep architectural flaw in the command manager that converted selected entities into useless `"[object Object]"` strings. Commands now receive pure data.
- **Configuration Cleanup:** The `COMMAND_PREFIX` option has been permanently deleted from the `config.js` file. It's no longer needed!
- **Console Cleanup:** Added a consolidated global log (`Successfully registered X/X native commands`) to prevent unwanted spam in the BDS yellow console during world startup.
- **Local Fixes:** Modified the TPA request received alert translation so the game now instructs the player to accept or deny using `/ys:tpaccept` or `/ys:tpa`.
- **Internal Synchronization:** Fixed imports (`CustomCommandParamType`) to ensure maximum stability with the recent `@minecraft/server` v1.14.0 modules.
### โ๏ธ Extreme Performance Optimization (Phase 1 Completed)
- **Centralized Event Bus:** Dozens of redundant listeners that choked the server every time someone took damage or placed blocks have been removed. Now a single core (`GlobalEventManager`) processes the event using Native C++ Bedrock Filters and routes it to scripts, drastically improving server TPS.
- **Master Tick Loop:** Internal clocks for all modules (garbage collector, stats, combat, floating texts, and protections) have been unified into a single synchronized heartbeat (`GlobalTickManager`), completely eliminating lag caused by 8+ parallel background timers.
### ๐ฎ Compatibility and Data Migration (Phase 2)
- **Full Compatibility with Minecraft 1.26.52.3:** The addon has been tested, validated, and its _manifest_ updated to indicate full native support for the latest betas and stable API versions.
- **Bulletproof Database Persistence:** Fixed an issue where the packager generated new UUIDs causing Bedrock to wipe the database on existing worlds (`Database Wipe Bug`). The packager now freezes UUIDs, ensuring money and factions are never lost after updating the addon.
- **Limitless Storage (Chunking):** All global variables (Factions, Kits, Warps, Bans, Mutes, and Floating Texts) now utilize a mathematical chunking engine shielded against byte limits, making the Addon incorruptible regardless of server size.
- **Safe Migration Engine:** When installing this version over an existing world, the code will intercept old databases and migrate them to the new chunked format invisibly, ensuring 0% data loss.
### ๐ฐ Faction System Reform (Bases, Economy & Diplomacy)
- **๐ Hybrid Base System (Nexus):** The 6 old protection stones have been removed. Now there is a single **Faction Nexus** block (Beacon texture). Players cannot place it by hand (they will be denied); they must use `/f claim`, which deducts the cost from their faction's bank and automatically places it at their feet, registering the territory.
- **๐ Base Upgrades from UI:** The leader and officers can punch the Faction Nexus to open a special UI and press **"โญ Upgrade Territory"**. If the faction bank has sufficient funds, the protection radius will be expanded without needing to break or move the block, up to a maximum of 5 configurable levels.
- **๐ค Full Diplomacy (NAPs):** Added `/f ally <TAG>` and `/f neutral <TAG>` commands. Alliances allow sharing peace. "Friendly Fire" damage is now globally blocked for members of the same faction and for allied factions. Furthermore, Guardian NPCs will not attack faction allies.
- **๐ Smart Diplomacy Chat:** The text chat has been revolutionized to perceive whose side you are on: You will see your faction's TAGs in Green, your allies' in Turquoise, and the rest of the server's in Red.
- **๐ฆ Centralized Banking:** Faction bank system created. Use `/f balance deposit <amount>` to deposit funds from your personal money, or `/f balance take <amount>` if you are an Officer/Leader to withdraw funds to your personal inventory. The current bank amount is displayed visually in the `/f` menu and also by typing `/f balance`.
- **๐ Internal Rank System:** Commands and UI buttons have been enabled in "Manage Permissions" so the leader can promote players (`/f promote`), demote officers (`/f demote`), or even transfer supreme command to another player (`/f leader`).
- **๐ Privacy & Customization:** Added `/f open` and `/f close` to toggle public/private access. Added `/f desc` and `/f rename` for faction personalization. `/f info` now displays detailed stats including bank balance and privacy status!
### ๐ง Visual Fixes and Base Demolition (Partial Phase 3)
- **๐ ๏ธ New `/f unclaim` Command:** Now the leader or officers can remove the faction's base if they wish to move or dismantle it. This removes the protection, deletes holograms, and clears the "Home" registry.
- **โ๏ธ Safe Nexus Destruction:** If an officer or the leader physically destroys the Faction Nexus block, the system now detects the action and automatically executes the `/f unclaim` procedure. If an intruder or unranked member tries to break it, the system will block them and send a security warning.
This mod has no additional files

