--- π Attached 1 file(s):
File: pasted-code-1792414572134.txt
so make me a quick action dialog that is also in esc menu named soulshardmc exactly like this also use seprate ymal for each other ones are command based but these ones are like this but change it a little dont make the list that long make it 10 long only and add player to list adds player name on top permenet on that menu and after those are recommentded by server make it aplhabatical but add .username in last bedrock username and a next button at side of add playeer to name byutton and below them a back button big size also make sure i can add more of the menus and remove friends and make sure mouse should now resaet when i switch bw menus and also add a placeholder checkr %playercombatstatus_status% if this says yes block the tile ill tell what and block it like when u press on that button dont close dont do nothing but this message and soundcommand-blocked-in-combat:
chat: {enabled: true, text: "&cThat command is disabled during combat!"}
actionbar: {enabled: true, text: "&cThat command is disabled during combat!"}
sound: {enabled: true, sound: "ENTITY_VILLAGER_NO", volume: 1.0, pitch: 1.0} also add coinshop warps and change quick buy to shop spawn afk and make sure to add tooltip and everything use name main name as SoulshardMC add a permenet back button in bottom of the kamenu menu not command based uk what make these menu like this dont change a thing i added new sses also blocked command are spawn afk home rtp auction rtpqueue orders sell teleport
this is the plugin kamenu https://github.com/Katacr/KaMenu





Check KaMenuβs supported menu/config syntax before generating compatible files.
Create the SoulshardMC quick-action menu and separate command menu configs, with the requested layout and combat feedback.
Add a persistent, editable friends list and menu navigation where KaMenuβs features allow it.
Created the KaMenu configuration for SoulshardMC: the ESC entry opens a 10-button quick-actions page, with a second page for the remaining shortcuts. Friends are stored persistently, appear before alphabetically sorted online recommendations, and can be added or removed. Pay and teleport use paginated player lists, with bottom back buttons and tooltips.
The requested combat check blocks home, spawn, afk, rtp, auction, rtpqueue, orders, sell, and teleport with the chat message, actionbar, and sound. Regular menus use KaMenuβs WAIT_FOR_RESPONSE transitions; KaMenu doesnβt expose a separate cursor-position reset setting.
To install, copy pause_menu.yml to plugins/KaMenu/, menus/ to plugins/KaMenu/menus/, and js/ to plugins/KaMenu/js/. Make sure PlaceholderAPI and the expansion providing %playercombatstatus_status% are installed. Reload the menus, run /km pause register, then restart the server for the ESC entry to update. Native ESC dialogs require a supported server version: Paper/Folia 1.21.7+ or Spigot 1.21.6+.
The command buttons use names such as coinshop, shardshop, and warps; if your server uses different command aliases, change those action lines in the YAML.
ok first make it as same as ss no colourfull shit and also dont add a waiting for server sccreen on clicks i dont want that and also i never said i wanted friends make them exactly same as ss no colourfull shit and add all in 1 page no next page in main page only also dont add extra stuff text like combat restiction saying u in the title dont add extra stuff and instead of reopening menu when ur in combat make it like it never does anything no colse no open just deny message
Main menu: put every quick action on one plain, monochrome page; remove the extra page and separate Friends menu.
Player lists: keep 10 entries per page, sorted saved players first and then alphabetical online recommendations, with
.usernamefor Floodgate players.Click behavior: remove the waiting overlay; combat-blocked clicks send only the denial feedback, without closing, opening, or resetting the menu.
Updated the menu to a plain, monochrome style. All quick actions are on one main page; the separate Friends and More pages are removed. Pay and Teleport keep the screenshot-style 10-player list, search, saved players, and pagination.
Combat-blocked clicks now send only the requested chat message, actionbar, and soundβno close, open, reset, or waiting overlay. KaMenu uses one-shot callbacks for dialog buttons, so after a blocked click the dialog stays visible, but that button wonβt respond again until the menu is reopened. Reusing it would require a reset, which reopens the menu.
bro there is an error also the menu is little wide so make it like ss and add all the things that are in this except duel and friends and keep the extra that i said like shardshop coinshop and etc and the commands that open another dialog are not working idk why and also change the tooltip to click to open in gray and also remove the back button bron main menu and also make the main menu opened with quick actions and aslo all next menu opener like pay and teleport are not wroking and add stats too same as pay and teleport those commands are pay playername ammount also accept formatted and stats playername and tpa or tpahere playername also when u click on any player to check instead of command cause change in plans make this exact menu send this dialog to player but instead of close add back button that takes u back to main gui and aslo when u do esc co close in any menu dont take back to old dialog one esc closese all menus and all menus can be closed with esc
--- π Attached 1 file(s):
File: stats.yml
self-title: "My stats"
other-title: "%player%'s stats"
description: "&7Statistics for &f%player%&7."
player-head:
enabled: true
width: 16
height: 16
tooltip: "&f%player%"
body-width: 400
stat-line: "&7%label%: &f%value%"
empty-message: "&7No stats are configured."
close-button:
label: "Close"
tooltip: "Close stats"
width: 150
leaderboard-back-button:
label: "Back to leaderboard"
tooltip: "Return to the selected leaderboard"
width: 200
metrics:
money: {enabled: true, label: "Money"}
kills: {enabled: true, label: "Player Kills"}
deaths: {enabled: true, label: "Deaths"}
playtime: {enabled: true, label: "Playtime"}
blocks-placed: {enabled: true, label: "Blocks Placed"}
blocks-broken: {enabled: true, label: "Blocks Broken"}
mobs-killed: {enabled: true, label: "Mobs Killed"}
shards: {enabled: true, label: "Shards"}
coins: {enabled: true, label: "Coins"}
money-spent: {enabled: true, label: "Money Spent"}
money-made: {enabled: true, label: "Money Made"}



Fix the missing menu references and dialog navigation first.
Rework the main quick-actions page to match the screenshot, keeping requested extras and adding Stats.
Wire Pay, Teleport, and Stats player actions/commands, with gray βClick to openβ tooltips and consistent Back/Esc behavior.
The main quick-actions page is now a narrower, monochrome, two-column layout with Home, Spawn, AFK, RTP, Auction, RTP Queue, Orders, Sell, Shop, Shard Shop, Coin Shop, Warps, Pay, Teleport, Stats, Leaderboard, and Settings. Duel, Friends, pagination, and the main-page Back button are removed. Tooltips are gray.
Pay accepts comma/currency-style formatting such as
1,000; Teleport usestpa <player>andtpahere <player>. Submenu Back buttons return to the main menu, while Esc closes instead of navigating back. Combat-blocked clicks only send the denial messageβno close or reopen.Added the Stats player picker and the supplied
stats.ymlmetrics configuration. Selecting a player currently invokesstats <player>so the configured stats dialog can be shown. This workspace has no direct API for opening that other pluginβs dialog or wiring its Back button to KaMenu; the config only defines its presentation.
The Pay and Teleport menu IDs already match their files under menus/soulshardmc/. Reload KaMenu after copying the updated files so it registers them; the missing-menu message indicates those definitions arenβt currently loaded. One KaMenu limitation remains: blocked-click callbacks are one-shot, so after the first denial that same button wonβt respond again until the menu is reopened.
how do i put the js should i put whole folder or filw where
Copy the whole js folder into KaMenuβs data folder, keeping the folder structure:
plugins/KaMenu/js/soulshardmc/player-list.js
So if youβre uploading through your serverβs file manager, upload js into plugins/KaMenu/. Donβt put player-list.js directly in the KaMenu folder. Then reload or restart the server so KaMenu loads it.
also change make the pay menu and stats menu and tp menu to like default all are recommended but on last button is a add player to lisy and under two button are firsdt back page then next and under main button main by default no player is added by u so all are showing recommended but as soon as u add a player make it appear at first and in tooltip show added by you in gray and under that redoffline or greenonline and also why and buttons that are next to each other should me same size they are uneven in tp players gui search and add did u made them more wide i said make them skinny like how it was in the other server and also its still not in quickactions idk why and still also if a command is executed by this that opens another dialog menu it dosnt work make it work like for eg first close the main menu then execute command by player or anything for eg /home opens dialog menu but when i click home button in this it dosnt work
--- π Attached 1 file(s):
File: pasted-code-1792420882067.txt
[20:10:52 INFO]: [KaMenu] KaProxy cross-server action channel disabled
[20:10:52 WARN]: [KaMenu] Failed to load menu file: C:\Users\Smart\Documents\test\plugins\KaMenu\menus\pay_players.yml, error: while parsing a block mapping
in 'reader', line 28, column 5:
player_list:
^
expected <block end>, but found '<block mapping start>'
in 'reader', line 74, column 7:
tooltip: '&7Click to open'
^
[20:10:52 WARN]: [KaMenu] Failed to load menu file: C:\Users\Smart\Documents\test\plugins\KaMenu\menus\teleport_players.yml, error: while parsing a block mapping
in 'reader', line 30, column 5:
player_list:
^
expected <block end>, but found '<block mapping start>'
in 'reader', line 84, column 7:
tooltip: '&7Clic
^
[20:10:52 WARN]: [KaMenu] [KaMenu] Custom command /zcd skipped: menu 'example/main_menu' not found
[20:10:52 WARN]: [KaMenu] [KaMenu] Invalid custom command config: zcd
[20:10:52 WARN]: [KaMenu] [KaMenu] Custom command /actions skipped: menu 'example/actions_demo' not found
[20:10:52 WARN]: [KaMenu] [KaMenu] Invalid custom command config: actions
[20:10:52 WARN]: [KaMenu] [KaMenu] Custom command /menu skipped: menu 'example/main_menu' not found
[20:10:52 WARN]: [KaMenu] [KaMenu] Invalid custom command config: menu
[20:10:52 INFO]: [com.zaxxer.hikari.HikariDataSource] HikariPool-1 - Starting...
[20:10:52 INFO]: [com.zaxxer.hikari.pool.HikariPool] HikariPool-1 - Added connection org.sqlite.jdbc4.JDBC4Connection@53776fdb
[20:10:52 INFO]: [com.zaxxer.hikari.HikariDataSource] HikariPool-1 - Start completed.
[20:10:52 INFO]: [PlaceholderAPI] Successfully registered internal expansion: kamenu [2.0.8]
[20:10:52 INFO]: ________________________________________________________
[20:10:52 INFO]:
[20:10:52 INFO]: _ __ __ __
[20:10:52 INFO]: | |/ / ____ | \/ | ___ _ __ _ _
[20:10:52 INFO]: | ' / | || |\/| |/ _ \ '_ \| | | |
[20:10:52 INFO]: | . \ | [] || | | | __/ | | | |_| |
[20:10:52 INFO]: |_|\_\|_,\_\|_| |_|\___|_| |_|\__,_|
[20:10:52 INFO]:
[20:10:52 INFO]: Plugin Version: 2.0.8
[20:10:52 INFO]: Server Version: 1.21.11
[20:10:52 INFO]: Dialog Platform: Paper
[20:10:52 INFO]: Database: sqlite
[20:10:52 INFO]: Language: en_US
[20:10:52 INFO]: Vault: Hooked
[20:10:52 INFO]: PlaceholderAPI: Hooked
[20:10:52 INFO]: Loaded Menus: 4
[20:10:52 INFO]: Registered Commands: 1
[20:10:52 INFO]: Loaded Action Packages: 1
[20:10:52 INFO]: Loaded JavaScript Packages: 1
[20:10:52 INFO]: ________________________________________________________
[20:10:52 INFO]: [InvTools] Enabling InvTools v1.0.0
[20:10:52 INFO]: [FakePlayerPlugin] Enabling FakePlayerPlugin v2.1.5
[20:10:52 INFO]: [FakePlayerPlugin] [κ°α΄α΄] Config migration starting: v74 β v79. Creating backup firstβ¦
[20:10:52 INFO]: [FakePlayerPlugin] [κ°α΄α΄] Database connected via SQLite (plugins\FakePlayerPlugin\data\fpp.db).
[20:10:52 INFO]: [FakePlayerPlugin] [κ°α΄α΄] Bot identity registry: backfilled 3 identities from session history.
[20:10:52 INFO]: [FakePlayerPlugin] [κ°α΄α΄] SkinPoolService: loaded 4 rarity pool(s) with 83 skin(s) + main skin.
[20:10:53 INFO]: [PlaceholderAPI] Successfully registered internal expansion: fpp [2.1.5]
[20:10:53 INFO]: [FakePlayerPlugin] [κ°α΄α΄] ββββββββββββββββββββββββββββββββββββββββββββββββββ
[20:10:53 INFO]: [FakePlayerPlugin] [κ°α΄α΄] FakePlayerPlugin v2.1.5
[20:10:53 INFO]: [FakePlayerPlugin] [κ°α΄α΄] real fake players for Paper & Folia 1.21+
[20:10:53 INFO]: [FakePlayerPlugin] [κ°α΄α΄] created by F_PP
[20:10:53 INFO]: [FakePlayerPlugin] [κ°α΄α΄] ββββββββββββββββββββββββββββββββββββββββββββββββββ
[20:10:53 INFO]: [FakePlayerPlugin] [κ°α΄α΄] ββ Runtime βββββββββββββββββββββββββββββββββββββββ
[20:10:53 INFO]: [FakePlayerPlugin] [κ°α΄α΄] Build ............. D261013-143106-6f02 (dev)
[20:10:53 INFO]: [FakePlayerPlugin] [κ°α΄α΄] [+] Database .......... SQLite (local) (schema v27)
[20:10:53 INFO]: [FakePlayerPlugin] [κ°α΄α΄] Config version .... v79 β
[20:10:53 INFO]: [FakePlayerPlugin] [κ°α΄α΄] ββ Features ββββββββββββββββββββββββββββββββββββββ
[20:10:53 INFO]: [FakePlayerPlugin] [κ°α΄α΄] [+] Persistence ....... enabled
[20:10:53 INFO]: [FakePlayerPlugin] [κ°α΄α΄] [+] Task persistence .. db + yaml
[20:10:53 INFO]: [FakePlayerPlugin] [κ°α΄α΄] [+] Chunk loading ..... enabled
[20:10:53 INFO]: [FakePlayerPlugin] [κ°α΄α΄] ββ Integrations ββββββββββββββββββββββββββββββββββ
[20:10:53 INFO]: [FakePlayerPlugin] [κ°α΄α΄] [-] LuckPerms ......... disabled
[20:10:53 INFO]: [FakePlayerPlugin] [κ°α΄α΄] [+] Metrics ........... enabled
[20:10:53 INFO]: [FakePlayerPlugin] [κ°α΄α΄] ββ Limits ββββββββββββββββββββββββββββββββββββββββ
[20:10:53 INFO]: [FakePlayerPlugin] [κ°α΄α΄] Max bots .......... 50
[20:10:53 INFO]: [FakePlayerPlugin] [κ°α΄α΄] ββββββββββββββββββββββββββββββββββββββββββββββββββ
[20:10:53 INFO]: [FakePlayerPlugin] [κ°α΄α΄] Ready in 509ms - type /fpp help to begin
[20:10:53 INFO]: [FakePlayerPlugin] [κ°α΄α΄] ββββββββββββββββββββββββββββββββββββββββββββββββββ
[20:10:53 INFO]: [EconomyCore] Enabling EconomyCore v1.0.0
[20:10:53 INFO]: [PlaceholderAPI] Successfully registered internal expansion: economycore [1.0.0]
[20:10:53 INFO]: [DialogSettings] Enabling DialogSettings v1.0.0
[20:10:53 INFO]: [DialogSettings] Loaded 8 dialog(s).
[20:10:53 INFO]: [DialogSettings] ViaVersion found: client versions are detected per player.
[20:10:53 INFO]: [CustomCommands] Enabling CustomCommands v1.0.0
[20:10:53 WARN]: [CustomCommands] Could not save messages.yml to plugins\CustomCommands\messages.yml because messages.yml already exists.
[20:10:53 INFO]: [Crates] Enabling Crates v1.0.0
>

Fix the YAML load errors and align Pay/Teleport/Stats player menus with the requested compact layout and saved-player behavior.
Repair quick-action registration and command-to-dialog transitions.
Make clicking a player open the requested player-facing stats dialog, with Back and Esc handling.
Fixed the malformed indentation in the Pay and Teleport player menus. Make sure the files stay in
plugins/KaMenu/menus/soulshardmc/βyour error log shows KaMenu loading them from the flatmenus/folder, which doesnβt match thesoulshardmc/...menu IDs.Made the main menu narrower and moved
closebefore commands that open other dialogs, so closing the current menu wonβt immediately close the dialog opened by the command. Added a KaMenu/quickactionscommand forsoulshardmc/main; an external Quick Actions plugin still needs to be pointed at/quickactions.Pay, Teleport, and Stats player lists now use compact, even-width controls, show recommended players by default, and put saved players first with βAdded by youβ and online/offline tooltips. Fixed the submenu Back button definitions and kept Esc enabled.
Stats still uses
/stats <player>after closing the picker. The providedstats.ymldoesnβt specify a direct DialogSettings open action or a route back to this KaMenu menu, so I canβt wire that handoff without DialogSettingsβ supported API/config.
the menus look very bad and its not showing list of online players and make the manin more slim like in the old ss i gave u and also make this as the stats menu but change button name to back the placeholder for values are# Counts are raw by default; add _formatted for compact values (for example, 1444 -> 1.44k).
%leaderstats_kills% / %leaderstats_kills_formatted%
%leaderstats_deaths% / %leaderstats_deaths_formatted%
%leaderstats_blocks_broken% / %leaderstats_blocks_broken_formatted%
%leaderstats_blocks_placed% / %leaderstats_blocks_placed_formatted%
%leaderstats_mobs_killed% / %leaderstats_mobs_killed_formatted%
Block and kill aliases are alternate names for the same stat, not separate placeholders:
playerkills, player_kills, blockbroken, blocksbroken, blockplaced, and blocksplaced.
Other stats: %leaderstats_playtime%, %leaderstats_playtime_formatted%, %leaderstats_money%,
%leaderstats_shards%, %leaderstats_coins%, %leaderstats_money_spent%, and %leaderstats_money_made%.
Playtime and money keep their existing formatting. Leaderboard ranks use %leaderstats_rank_<stat>%.
economy: # Vault is optional. If no Vault economy provider is installed, money is stored as 0. vault-balance-refresh-seconds: 60 currency-format: '#,##0.##' # These PlaceholderAPI values are sampled for online players and saved in stats.db. # The numeric part is used for leaderboard sorting; the resolved text is shown in menus. placeholders: shards: '%economycore_xshards_short%' coins: '%economycore_xcoins_short%' money-spent: '%shop_money_spent_formatted%' money-made: '%shop_money_earned_formatted%' and money is vault all are used formatted ones and make a plugin to set the main for quickaction



Fix the player menus: show online players, make the controls compact/even, and slim the main menu.
Set up the stats display with the requested placeholders and Vault money.
Find the QuickActions integration and make the main menu reachable through it.
Player menus: Fixed the repeat-list source so KaMenu calls the JavaScript package, reduced the main-menu buttons from 200 to 120 width, and made the player-menu inputs and buttons consistently narrower. Online players appear as recommendations; saved players sort first, with the saved/online status in their tooltips.
Stats: Selecting a player now opens a KaMenu stats dialog with a Back button. It reads the formatted LeaderStats placeholders for counts and playtime, plus the supplied placeholders for shards, coins, money spent/made, and Vault-backed money. The external stats configβs leaderboard button label is also now Back.
QuickActions: KaMenu already maps
/quickactionstosoulshardmc/main. That command mapping does not add a button to a separate QuickActions plugin; its entry must run/quickactions. This workspace has no QuickActions plugin configuration or API to wire that UI directly.
Keep the files in their nested pathsβmenus/soulshardmc/ and js/soulshardmc/βrather than flattening them into menus/ or js/. Then run /km reload all (and /km reload js if needed).
function normalisePlayerName(value) {
return String(value).replace(/^\./, '').toLowerCase();
}
function displayPlayerName(bukkitPlayer) {
var playerName = String(bukkitPlayer.getName());
try {
var FloodgateApi = Java.type('org.geysermc.floodgate.api.FloodgateApi');
if (FloodgateApi.getInstance().isFloodgatePlayer(bukkitPlayer.getUniqueId()) && playerName.charAt(0) !== '.') {
return '.' + playerName;
}
} catch (ignored) {
}
return playerName;
}
var savedNames = [];
try {
savedNames = JSON.parse(list('players') || '[]');
} catch (ignored) {
savedNames = [];
}
var search = normalisePlayerName(args.length > 0 ? args[0] : '').trim();
var onlineEntries = {};
var onlinePlayers = server.getOnlinePlayers().toArray();
for (var i = 0; i < onlinePlayers.length; i++) {
var onlinePlayer = onlinePlayers[i];
var onlineName = String(onlinePlayer.getName());
onlineEntries[normalisePlayerName(onlineName)] = {
name: displayPlayerName(onlinePlayer),
target: onlineName
};
}
var result = [];
var seen = {};
for (var j = savedNames.length - 1; j >= 0; j--) {
var savedName = String(savedNames[j]);
var savedKey = normalisePlayerName(savedName);
if (!savedKey || seen[savedKey] || (search && savedKey.indexOf(search) === -1)) {
continue;
}
seen[savedKey] = true;
var onlineSaved = onlineEntries[savedKey];
result.push({
name: onlineSaved ? onlineSaved.name : savedName,
target: onlineSaved ? onlineSaved.target : savedName,
isSaved: true
});
}
var recommendations = [];
var currentPlayerKey = normalisePlayerName(name);
for (var key in onlineEntries) {
if (!Object.prototype.hasOwnProperty.call(onlineEntries, key) || seen[key] || key === currentPlayerKey || (search && key.indexOf(search) === -1)) {
continue;
}
recommendations.push({
name: onlineEntries[key].name,
target: onlineEntries[key].target,
isSaved: false
});
}
recommendations.sort(function (first, second) {
var firstName = normalisePlayerName(first.name);
var secondName = normalisePlayerName(second.name);
if (firstName < secondName) return -1;
if (firstName > secondName) return 1;
return 0;
});
for (var k = 0; k < recommendations.length; k++) {
result.push(recommendations[k]);
}
JSON.stringify(result);