trtxtrn

Can you make a custom coins system. Coins can only be obtained thru codes. Make a coinshop and let me edit the INVENTORY GUI easily

Kodari AI
KodariAug 6 at 4:03 pm 1
CoinVaultShop
A Minecraft plugin featuring a code-based coin economy system with an editable GUI shop. Players redeem unique codes to earn coins, then spend them in a customizable inventory shop. The shop GUI uses a button-based framework where items, prices, and click actions are easily configurable. Includes a GUIManager for centralized inventory handling, automatic event processing, and memory-efficient cleanup. Admins can generate codes, manage coin balances, and customize shop contents through the flexible InventoryButton system. The plugin provides a complete coin redemption and shopping experience with a clean, extensible architecture for easy modification.
  1. Build the plugin foundation, persistent coin/code storage, and commands.

  2. Add a configurable coin shop with an editable inventory layout and item catalog.

  3. Add the reusable inventory GUI framework, configuration, and build metadata.

trtxtrn

it says missing required files. also whats the placeholder for the coins

Kodari AI
KodariAug 6 at 4:07 pm 1
CoinVault
A Minecraft plugin that introduces a virtual currency system with a persistent coin balance stored per player. It provides commands for players to check their balance, and for admins to give, take, set, and reset coins. The plugin features a configurable starting balance, automatic balance saving to a YAML data file, and a simple placeholder API integration for use in other plugins and scoreboards. CoinVault is designed to be lightweight, dependency-free, and easily integrated into any server economy setup.
  1. Create the complete Gradle/Paper plugin structure and required resources.

  2. Implement persistent code-only coin redemption, coin balance commands, and admin code generation.

  3. Add an editable YAML-driven coin shop with a reusable GUI framework.

  4. Add the PlaceholderAPI expansion; the coin placeholder will be %coinvaultshop_coins%.

Created the required CoinVaultShop files, including:

  • Persistent coin storage in coins.yml

  • Code storage and redemption in codes.yml

  • /coins balance

  • /coins redeem <code>

  • /coinadmin create <amount> [uses]

  • /coinadmin reload

  • /coinshop

  • Editable shop.yml inventory GUI

  • PlaceholderAPI support

The coin placeholder is:

Plain Text
%coinvaultshop_coins%

Example usage:

Plain Text
/coinadmin create 500
/coinadmin create 1000 10
/coins redeem ABCD1234EFGH
/coins balance
/coinshop

Edit the shop here:

Plain Text
plugins/CoinVaultShop/shop.yml

Change the slot, material, name, lore, price, and console commands. Then run:

Plain Text
/coinadmin reload
trtxtrn

we already got a coins system its /redeemcode. use codes from there

Kodari AI
KodariAug 6 at 4:18 pm 1
  1. Replace the plugin’s duplicate code/economy path with integration to the existing /redeemcode system.

  2. Keep the shop GUI and make purchases use the existing coin balance/provider rather than local coins.yml.

  3. Remove commands and resources that would create or redeem a second code system, while preserving the shop and placeholder where possible.

The project does not contain the existing /redeemcode system—it only has its own /coins redeem implementation. I need the name of the plugin that provides /redeemcode, plus either:

  • its coin balance placeholder, and the command/API used to remove coins; or

  • its developer/API documentation.

For example:

Plain Text
Plugin: ExampleCoins
Balance placeholder: %examplecoins_balance%
Remove command: /examplecoins remove <player> <amount>

Then I’ll remove the duplicate coins.yml, CodeManager, /coins redeem, and /coinadmin create logic, and make the shop charge the existing coin system.

trtxtrn

how do i give coins to players with this plugin

Kodari AI
KodariAug 6 at 4:20 pm 1

With the current plugin, coins are given through redeemable codes:

Plain Text
/coinadmin create <amount> [uses]

Examples:

Plain Text
/coinadmin create 500
/coinadmin create 1000 10

This creates a code worth the specified amount. Give the generated code to the player, who redeems it with:

Plain Text
/coins redeem <code>

Players can check their balance with:

Plain Text
/coins balance

You need the coinvaultshop.admin permission to create codes. There is currently no direct /givecoins command.

trtxtrn

make me a command that gives coins to a player

Kodari AI
KodariAug 6 at 4:22 pm 1
  1. Add /coinadmin give <player> <amount> using the plugin’s existing CoinManager.

  2. Add tab completion/usage messaging only if the current command wiring supports it, and document the new syntax in plugin.yml.

Added:

Plain Text
/coinadmin give <player> <amount>

Example:

Plain Text
/coinadmin give Steve 500

This gives Steve 500 coins and requires:

Plain Text
coinvaultshop.admin

The player must be online.

trtxtrn

everytime i buy something the shop items dissapear

Kodari AI
KodariAug 6 at 4:33 pm 1

Fixed. The shop items were disappearing because ShopManager cleared the inventory every time the shop closed:

Java
event.getInventory().clear();

That close handler has been removed. The configured shop items will now remain visible when players reopen the shop.

trtxtrn

make it like this. I want to be able to add the items in each category thru /coinsadmin . let me place items in there then write the price for each as a command

5 images attached
Kodari AI
KodariAug 6 at 4:47 pm 2
  1. Add category editing through /coinsadmin, including opening a category editor while holding the item.

  2. Add commands to set the held item’s price and save it to that category.

  3. Update the shop GUI to show categories, category items, prices, and purchase actions persistently.

Implemented the category-based coin shop.

Use these commands:

Plain Text
/coinsadmin category create <id> <name>

Example:

Plain Text
/coinsadmin category create crates Crate Keys

Open the category editor:

Plain Text
/coinsadmin category edit crates

Place items into the inventory slots, then close the editor to save them.

Set an item’s price:

Plain Text
/coinsadmin price crates <slot> <price>

Example, if the item is in slot 13:

Plain Text
/coinsadmin price crates 13 500

Set the category icon using the item in your main hand:

Plain Text
/coinsadmin category icon crates

Other commands:

Plain Text
/coinsadmin category list
/coinsadmin category delete <id>
/coinsadmin reload

Players use:

Plain Text
/coinshop

The command now works as both:

Plain Text
/coinadmin
/coinsadmin

Items are saved in shop.yml. If an item has no configured console command, the shop gives the actual item directly to the player.

trtxtrn

it broke the plugin completely

Kodari AI
KodariAug 6 at 5:05 pm 2

I’m checking the command registration and shop GUI changes for the startup/runtime failure, then I’ll restore a safe working path without removing the category editor.

The category editor itself is usable, but the price command was checking for an editor that the command has already closed. That made every price assignment fail. I’m fixing it to use the item saved when the editor closes.

Fixed the broken price workflow.

The issue was that /coinsadmin price ... required the editor to still be open, even though closing the editor is what saves the items. The command now uses the saved item from shop.yml.

Use this sequence:

Plain Text
/coinsadmin category edit general

Place items in the GUI and close it.

Then set a price:

Plain Text
/coinsadmin price general 13 500

Finally open the shop:

Plain Text
/coinshop

Restart the server or reload the plugin after applying the update.

trtxtrn

thats on every command i try

1 image attached
Kodari AI
KodariAug 6 at 5:31 pm 3

The screenshot shows the plugin is not loading correctly—the %coinvaultshop_coins% placeholder is also unresolved. That is why every command returns the generic error; it is not a command syntax problem.

Please send the server console error from startup, specifically the section containing one of these:

Plain Text
Error occurred while enabling CoinVaultShop

or

Plain Text
Unhandled exception executing command

Also verify that you replaced the entire old JAR and restarted the server, rather than using /reload. The exact stack trace is required to fix the startup failure instead of guessing.

trtxtrn

[18:05:38 INFO]: UUID of player bgmashina is 86bd4fe0-4ad3-393e-a935-2569f752a4ee [18:05:38 INFO]: [HorriblePlayerLoginEventHack] You have plugins listening to the PlayerLoginEvent, this will cause re-configuration APIs to be unavailable: [LuckPerms, Themis] [18:05:39 INFO]: bgmashina joined the game [18:05:39 INFO]: bgmashina[/46.10.237.70:55564] logged in with entity id 53 at ([world]1090.3294611476251, 158.9726764011623, 1044.5896283921882) [18:05:39 INFO]: [voicechat] Received secret request of bgmashina (20) [18:05:39 INFO]: [voicechat] Sent secret to bgmashina [18:05:47 INFO]: bgmashina issued server command: /coinshop [18:05:47 ERROR]: Command exception: /coinshop org.bukkit.command.CommandException: Cannot execute command 'coinshop' in plugin CoinVaultShop v1.0.0 - plugin is disabled. at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37) ~[purpur-api-1.21.11-R0.1-SNAPSHOT.jar:?] at io.papermc.paper.command.brigadier.bukkit.BukkitCommandNode$BukkitBrigCommand.run(BukkitCommandNode.java:83) ~[purpur-1.21.11.jar:1.21.11-2568-f57bd86] at com.mojang.brigadier.context.ContextChain.runExecutable(ContextChain.java:73) ~[brigadier-1.3.10.jar:?] at net.minecraft.commands.execution.tasks.ExecuteCommand.execute(ExecuteCommand.java:30) ~[purpur-1.21.11.jar:1.21.11-2568-f57bd86] at net.minecraft.commands.execution.tasks.ExecuteCommand.execute(ExecuteCommand.java:13) ~[purpur-1.21.11.jar:1.21.11-2568-f57bd86] at net.minecraft.commands.execution.UnboundEntryAction.lambda$bind$0(UnboundEntryAction.java:8) ~[purpur-1.21.11.jar:1.21.11-2568-f57bd86] at net.minecraft.commands.execution.CommandQueueEntry.execute(CommandQueueEntry.java:5) ~[purpur-1.21.11.jar:1.21.11-2568-f57bd86] at net.minecraft.commands.execution.ExecutionContext.runCommandQueue(ExecutionContext.java:104) ~[purpur-1.21.11.jar:1.21.11-2568-f57bd86] at net.minecraft.commands.Commands.executeCommandInContext(Commands.java:477) ~[purpur-1.21.11.jar:1.21.11-2568-f57bd86] at net.minecraft.commands.Commands.performCommand(Commands.java:382) ~[purpur-1.21.11.jar:1.21.11-2568-f57bd86] at net.minecraft.commands.Commands.performCommand(Commands.java:370) ~[purpur-1.21.11.jar:1.21.11-2568-f57bd86] at net.minecraft.server.network.ServerGamePacketListenerImpl.performUnsignedChatCommand(ServerGamePacketListenerImpl.java:2456) ~[purpur-1.21.11.jar:1.21.11-2568-f57bd86] at net.minecraft.server.network.ServerGamePacketListenerImpl.lambda$handleChatCommand$15(ServerGamePacketListenerImpl.java:2429) ~[purpur-1.21.11.jar:1.21.11-2568-f57bd86] at net.minecraft.server.TickTask.run(TickTask.java:18) ~[purpur-1.21.11.jar:1.21.11-2568-f57bd86] at net.minecraft.util.thread.BlockableEventLoop.doRunTask(BlockableEventLoop.java:177) ~[purpur-1.21.11.jar:1.21.11-2568-f57bd86] at net.minecraft.util.thread.ReentrantBlockableEventLoop.doRunTask(ReentrantBlockableEventLoop.java:24) ~[purpur-1.21.11.jar:1.21.11-2568-f57bd86] at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:1561) ~[purpur-1.21.11.jar:1.21.11-2568-f57bd86] at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:188) ~[purpur-1.21.11.jar:1.21.11-2568-f57bd86] at net.minecraft.util.thread.BlockableEventLoop.pollTask(BlockableEventLoop.java:151) ~[purpur-1.21.11.jar:1.21.11-2568-f57bd86] at net.minecraft.server.MinecraftServer.pollTaskInternal(MinecraftServer.java:1541) ~[purpur-1.21.11.jar:1.21.11-2568-f57bd86] at net.minecraft.server.MinecraftServer.pollTask(MinecraftServer.java:1535) ~[purpur-1.21.11.jar:1.21.11-2568-f57bd86] at net.minecraft.server.MinecraftServer.recordTaskExecutionTimeWhileWaiting(MinecraftServer.java:1240) ~[purpur-1.21.11.jar:1.21.11-2568-f57bd86] at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1377) ~[purpur-1.21.11.jar:1.21.11-2568-f57bd86] at net.minecraft.server.MinecraftServer.lambda$spin$2(MinecraftServer.java:392) ~[purpur-1.21.11.jar:1.21.11-2568-f57bd86] at java.base/java.lang.Thread.run(Thread.java:1474) ~[?:?] [18:05:49 INFO]: bgmashina issued server command: /coinshop [18:05:49 ERROR]: Command exception: /coinshop org.bukkit.command.CommandException: Cannot execute command 'coinshop' in plugin CoinVaultShop v1.0.0 - plugin is disabled. at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37) ~[purpur-api-1.21.11-R0.1-SNAPSHOT.jar:?] at io.papermc.paper.command.brigadier.bukkit.BukkitCommandNode$BukkitBrigCommand.run(BukkitCommandNode.java:83) ~[purpur-1.21.11.jar:1.21.11-2568-f57bd86] at com.mojang.brigadier.context.ContextChain.runExecutable(ContextChain.java:73) ~[brigadier-1.3.10.jar:?] at net.minecraft.commands.execution.tasks.ExecuteCommand.execute(ExecuteCommand.java:30) ~[purpur-1.21.11.jar:1.21.11-2568-f57bd86] at net.minecraft.commands.execution.tasks.ExecuteCommand.execute(ExecuteCommand.java:13) ~[purpur-1.21.11.jar:1.21.11-2568-f57bd86] at net.minecraft.commands.execution.UnboundEntryAction.lambda$bind$0(UnboundEntryAction.java:8) ~[purpur-1.21.11.jar:1.21.11-2568-f57bd86] at net.minecraft.commands.execution.CommandQueueEntry.execute(CommandQueueEntry.java:5) ~[purpur-1.21.11.jar:1.21.11-2568-f57bd86] at net.minecraft.commands.execution.ExecutionContext.runCommandQueue(ExecutionContext.java:104) ~[purpur-1.21.11.jar:1.21.11-2568-f57bd86] at net.minecraft.commands.Commands.executeCommandInContext(Commands.java:477) ~[purpur-1.21.11.jar:1.21.11-2568-f57bd86] at net.minecraft.commands.Commands.performCommand(Commands.java:382) ~[purpur-1.21.11.jar:1.21.11-2568-f57bd86] at net.minecraft.commands.Commands.performCommand(Commands.java:370) ~[purpur-1.21.11.jar:1.21.11-2568-f57bd86] at net.minecraft.server.network.ServerGamePacketListenerImpl.performUnsignedChatCommand(ServerGamePacketListenerImpl.java:2456) ~[purpur-1.21.11.jar:1.21.11-2568-f57bd86] at net.minecraft.server.network.ServerGamePacketListenerImpl.lambda$handleChatCommand$15(ServerGamePacketListenerImpl.java:2429) ~[purpur-1.21.11.jar:1.21.11-2568-f57bd86] at net.minecraft.server.TickTask.run(TickTask.java:18) ~[purpur-1.21.11.jar:1.21.11-2568-f57bd86] at net.minecraft.util.thread.BlockableEventLoop.doRunTask(BlockableEventLoop.java:177) ~[purpur-1.21.11.jar:1.21.11-2568-f57bd86] at net.minecraft.util.thread.ReentrantBlockableEventLoop.doRunTask(ReentrantBlockableEventLoop.java:24) ~[purpur-1.21.11.jar:1.21.11-2568-f57bd86] at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:1561) ~[purpur-1.21.11.jar:1.21.11-2568-f57bd86] at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:188) ~[purpur-1.21.11.jar:1.21.11-2568-f57bd86] at net.minecraft.util.thread.BlockableEventLoop.pollTask(BlockableEventLoop.java:151) ~[purpur-1.21.11.jar:1.21.11-2568-f57bd86] at net.minecraft.server.MinecraftServer.pollTaskInternal(MinecraftServer.java:1541) ~[purpur-1.21.11.jar:1.21.11-2568-f57bd86] at net.minecraft.server.MinecraftServer.pollTask(MinecraftServer.java:1535) ~[purpur-1.21.11.jar:1.21.11-2568-f57bd86] at net.minecraft.server.MinecraftServer.recordTaskExecutionTimeWhileWaiting(MinecraftServer.java:1240) ~[purpur-1.21.11.jar:1.21.11-2568-f57bd86] at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1377) ~[purpur-1.21.11.jar:1.21.11-2568-f57bd86] at net.minecraft.server.MinecraftServer.lambda$spin$2(MinecraftServer.java:392) ~[purpur-1.21.11.jar:1.21.11-2568-f57bd86] at java.base/java.lang.Thread.run(Thread.java:1474) ~[?:?] [18:05:50 INFO]: bgmashina issued server command: /coinshop [18:05:50 ERROR]: Command exception: /coinshop org.bukkit.command.CommandException: Cannot execute command 'coinshop' in plugin CoinVaultShop v1.0.0 - plugin is disabled. at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37) ~[purpur-api-1.21.11-R0.1-SNAPSHOT.jar:?] at io.papermc.paper.command.brigadier.bukkit.BukkitCommandNode$BukkitBrigCommand.run(BukkitCommandNode.java:83) ~[purpur-1.21.11.jar:1.21.11-2568-f57bd86] at com.mojang.brigadier.context.ContextChain.runExecutable(ContextChain.java:73) ~[brigadier-1.3.10.jar:?] at net.minecraft.commands.execution.tasks.ExecuteCommand.execute(ExecuteCommand.java:30) ~[purpur-1.21.11.jar:1.21.11-2568-f57bd86] at net.minecraft.commands.execution.tasks.ExecuteCommand.execute(ExecuteCommand.java:13) ~[purpur-1.21.11.jar:1.21.11-2568-f57bd86] at net.minecraft.commands.execution.UnboundEntryAction.lambda$bind$0(UnboundEntryAction.java:8) ~[purpur-1.21.11.jar:1.21.11-2568-f57bd86] at net.minecraft.commands.execution.CommandQueueEntry.execute(CommandQueueEntry.java:5) ~[purpur-1.21.11.jar:1.21.11-2568-f57bd86] at net.minecraft.commands.execution.ExecutionContext.runCommandQueue(ExecutionContext.java:104) ~[purpur-1.21.11.jar:1.21.11-2568-f57bd86] at net.minecraft.commands.Commands.executeCommandInContext(Commands.java:477) ~[purpur-1.21.11.jar:1.21.11-2568-f57bd86] at net.minecraft.commands.Commands.performCommand(Commands.java:382) ~[purpur-1.21.11.jar:1.21.11-2568-f57bd86] at net.minecraft.commands.Commands.performCommand(Commands.java:370) ~[purpur-1.21.11.jar:1.21.11-2568-f57bd86] at net.minecraft.server.network.ServerGamePacketListenerImpl.performUnsignedChatCommand(ServerGamePacketListenerImpl.java:2456) ~[purpur-1.21.11.jar:1.21.11-2568-f57bd86] at net.minecraft.server.network.ServerGamePacketListenerImpl.lambda$handleChatCommand$15(ServerGamePacketListenerImpl.java:2429) ~[purpur-1.21.11.jar:1.21.11-2568-f57bd86] at net.minecraft.server.TickTask.run(TickTask.java:18) ~[purpur-1.21.11.jar:1.21.11-2568-f57bd86] at net.minecraft.util.thread.BlockableEventLoop.doRunTask(BlockableEventLoop.java:177) ~[purpur-1.21.11.jar:1.21.11-2568-f57bd86] at net.minecraft.util.thread.ReentrantBlockableEventLoop.doRunTask(ReentrantBlockableEventLoop.java:24) ~[purpur-1.21.11.jar:1.21.11-2568-f57bd86] at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:1561) ~[purpur-1.21.11.jar:1.21.11-2568-f57bd86] at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:188) ~[purpur-1.21.11.jar:1.21.11-2568-f57bd86] at net.minecraft.util.thread.BlockableEventLoop.pollTask(BlockableEventLoop.java:151) ~[purpur-1.21.11.jar:1.21.11-2568-f57bd86] at net.minecraft.server.MinecraftServer.pollTaskInternal(MinecraftServer.java:1541) ~[purpur-1.21.11.jar:1.21.11-2568-f57bd86] at net.minecraft.server.MinecraftServer.pollTask(MinecraftServer.java:1535) ~[purpur-1.21.11.jar:1.21.11-2568-f57bd86] at net.minecraft.server.MinecraftServer.recordTaskExecutionTimeWhileWaiting(MinecraftServer.java:1240) ~[purpur-1.21.11.jar:1.21.11-2568-f57bd86] at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1377) ~[purpur-1.21.11.jar:1.21.11-2568-f57bd86] at net.minecraft.server.MinecraftServer.lambda$spin$2(MinecraftServer.java:392) ~[purpur-1.21.11.jar:1.21.11-2568-f57bd86] at java.base/java.lang.Thread.run(Thread.java:1474) ~[?:?] [18:05:51 INFO]: bgmashina issued server command: /coinshop [18:05:51 ERROR]: Command exception: /coinshop org.bukkit.command.CommandException: Cannot execute command 'coinshop' in plugin CoinVaultShop v1.0.0 - plugin is disabled. at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37) ~[purpur-api-1.21.11-R0.1-SNAPSHOT.jar:?] at io.papermc.paper.command.brigadier.bukkit.BukkitCommandNode$BukkitBrigCommand.run(BukkitCommandNode.java:83) ~[purpur-1.21.11.jar:1.21.11-2568-f57bd86] at com.mojang.brigadier.context.ContextChain.runExecutable(ContextChain.java:73) ~[brigadier-1.3.10.jar:?] at net.minecraft.commands.execution.tasks.ExecuteCommand.execute(ExecuteCommand.java:30) ~[purpur-1.21.11.jar:1.21.11-2568-f57bd86] at net.minecraft.commands.execution.tasks.ExecuteCommand.execute(ExecuteCommand.java:13) ~[purpur-1.21.11.jar:1.21.11-2568-f57bd86] at net.minecraft.commands.execution.UnboundEntryAction.lambda$bind$0(UnboundEntryAction.java:8) ~[purpur-1.21.11.jar:1.21.11-2568-f57bd86] at net.minecraft.commands.execution.CommandQueueEntry.execute(CommandQueueEntry.java:5) ~[purpur-1.21.11.jar:1.21.11-2568-f57bd86] at net.minecraft.commands.execution.ExecutionContext.runCommandQueue(ExecutionContext.java:104) ~[purpur-1.21.11.jar:1.21.11-2568-f57bd86] at net.minecraft.commands.Commands.executeCommandInContext(Commands.java:477) ~[purpur-1.21.11.jar:1.21.11-2568-f57bd86] at net.minecraft.commands.Commands.performCommand(Commands.java:382) ~[purpur-1.21.11.jar:1.21.11-2568-f57bd86] at net.minecraft.commands.Commands.performCommand(Commands.java:370) ~[purpur-1.21.11.jar:1.21.11-2568-f57bd86] at net.minecraft.server.network.ServerGamePacketListenerImpl.performUnsignedChatCommand(ServerGamePacketListenerImpl.java:2456) ~[purpur-1.21.11.jar:1.21.11-2568-f57bd86] at net.minecraft.server.network.ServerGamePacketListenerImpl.lambda$handleChatCommand$15(ServerGamePacketListenerImpl.java:2429) ~[purpur-1.21.11.jar:1.21.11-2568-f57bd86] at net.minecraft.server.TickTask.run(TickTask.java:18) ~[purpur-1.21.11.jar:1.21.11-2568-f57bd86] at net.minecraft.util.thread.BlockableEventLoop.doRunTask(BlockableEventLoop.java:177) ~[purpur-1.21.11.jar:1.21.11-2568-f57bd86] at net.minecraft.util.thread.ReentrantBlockableEventLoop.doRunTask(ReentrantBlockableEventLoop.java:24) ~[purpur-1.21.11.jar:1.21.11-2568-f57bd86] at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:1561) ~[purpur-1.21.11.jar:1.21.11-2568-f57bd86] at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:188) ~[purpur-1.21.11.jar:1.21.11-2568-f57bd86] at net.minecraft.util.thread.BlockableEventLoop.pollTask(BlockableEventLoop.java:151) ~[purpur-1.21.11.jar:1.21.11-2568-f57bd86] at net.minecraft.server.MinecraftServer.pollTaskInternal(MinecraftServer.java:1541) ~[purpur-1.21.11.jar:1.21.11-2568-f57bd86] at net.minecraft.server.MinecraftServer.pollTask(MinecraftServer.java:1535) ~[purpur-1.21.11.jar:1.21.11-2568-f57bd86] at net.minecraft.server.MinecraftServer.recordTaskExecutionTimeWhileWaiting(MinecraftServer.java:1240) ~[purpur-1.21.11.jar:1.21.11-2568-f57bd86] at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1377) ~[purpur-1.21.11.jar:1.21.11-2568-f57bd86] at net.minecraft.server.MinecraftServer.lambda$spin$2(MinecraftServer.java:392) ~[purpur-1.21.11.jar:1.21.11-2568-f57bd86] at java.base/java.lang.Thread.run(Thread.java:1474) ~[?:?] [18:05:55 INFO]: bgmashina issued server command: /reload [18:05:55 INFO]: [bgmashina: Reloading!] [18:05:55 INFO]: Loaded 1470 recipes [18:05:55 INFO]: Loaded 1584 advancements [18:05:56 INFO]: bgmashina issued server command: /coinshop [18:05:56 ERROR]: Command exception: /coinshop org.bukkit.command.CommandException: Cannot execute command 'coinshop' in plugin CoinVaultShop v1.0.0 - plugin is disabled. at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37) ~[purpur-api-1.21.11-R0.1-SNAPSHOT.jar:?] at io.papermc.paper.command.brigadier.bukkit.BukkitCommandNode$BukkitBrigCommand.run(BukkitCommandNode.java:83) ~[purpur-1.21.11.jar:1.21.11-2568-f57bd86] at com.mojang.brigadier.context.ContextChain.runExecutable(ContextChain.java:73) ~[brigadier-1.3.10.jar:?] at net.minecraft.commands.execution.tasks.ExecuteCommand.execute(ExecuteCommand.java:30) ~[purpur-1.21.11.jar:1.21.11-2568-f57bd86] at net.minecraft.commands.execution.tasks.ExecuteCommand.execute(ExecuteCommand.java:13) ~[purpur-1.21.11.jar:1.21.11-2568-f57bd86] at net.minecraft.commands.execution.UnboundEntryAction.lambda$bind$0(UnboundEntryAction.java:8) ~[purpur-1.21.11.jar:1.21.11-2568-f57bd86] at net.minecraft.commands.execution.CommandQueueEntry.execute(CommandQueueEntry.java:5) ~[purpur-1.21.11.jar:1.21.11-2568-f57bd86] at net.minecraft.commands.execution.ExecutionContext.runCommandQueue(ExecutionContext.java:104) ~[purpur-1.21.11.jar:1.21.11-2568-f57bd86] at net.minecraft.commands.Commands.executeCommandInContext(Commands.java:477) ~[purpur-1.21.11.jar:1.21.11-2568-f57bd86] at net.minecraft.commands.Commands.performCommand(Commands.java:382) ~[purpur-1.21.11.jar:1.21.11-2568-f57bd86] at net.minecraft.commands.Commands.performCommand(Commands.java:370) ~[purpur-1.21.11.jar:1.21.11-2568-f57bd86] at net.minecraft.server.network.ServerGamePacketListenerImpl.performUnsignedChatCommand(ServerGamePacketListenerImpl.java:2456) ~[purpur-1.21.11.jar:1.21.11-2568-f57bd86] at net.minecraft.server.network.ServerGamePacketListenerImpl.lambda$handleChatCommand$15(ServerGamePacketListenerImpl.java:2429) ~[purpur-1.21.11.jar:1.21.11-2568-f57bd86] at net.minecraft.server.TickTask.run(TickTask.java:18) ~[purpur-1.21.11.jar:1.21.11-2568-f57bd86] at net.minecraft.util.thread.BlockableEventLoop.doRunTask(BlockableEventLoop.java:177) ~[purpur-1.21.11.jar:1.21.11-2568-f57bd86] at net.minecraft.util.thread.ReentrantBlockableEventLoop.doRunTask(ReentrantBlockableEventLoop.java:24) ~[purpur-1.21.11.jar:1.21.11-2568-f57bd86] at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:1561) ~[purpur-1.21.11.jar:1.21.11-2568-f57bd86] at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:188) ~[purpur-1.21.11.jar:1.21.11-2568-f57bd86] at net.minecraft.util.thread.BlockableEventLoop.pollTask(BlockableEventLoop.java:151) ~[purpur-1.21.11.jar:1.21.11-2568-f57bd86] at net.minecraft.server.MinecraftServer.pollTaskInternal(MinecraftServer.java:1541) ~[purpur-1.21.11.jar:1.21.11-2568-f57bd86] at net.minecraft.server.MinecraftServer.pollTask(MinecraftServer.java:1535) ~[purpur-1.21.11.jar:1.21.11-2568-f57bd86] at net.minecraft.server.MinecraftServer.recordTaskExecutionTimeWhileWaiting(MinecraftServer.java:1240) ~[purpur-1.21.11.jar:1.21.11-2568-f57bd86] at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1377) ~[purpur-1.21.11.jar:1.21.11-2568-f57bd86] at net.minecraft.server.MinecraftServer.lambda$spin$2(MinecraftServer.java:392) ~[purpur-1.21.11.jar:1.21.11-2568-f57bd86] at java.base/java.lang.Thread.run(Thread.java:1474) ~[?:?]

Kodari AI
KodariAug 6 at 6:08 pm 2
  1. Trace the enable path to identify why CoinVaultShop was disabled.

  2. Fix the startup failure and verify command/GUI registration remains intact.

  3. Remove any unsafe reload-dependent behavior from the fix.

The command log confirms the cause: CoinVaultShop failed during startup and Bukkit disabled it. The /coinshop stack trace only shows the result, not the original error.

The important error will be earlier in the console, immediately after:

Plain Text
[CoinVaultShop] Enabling CoinVaultShop v1.0.0

Please send the section containing:

Plain Text
Error occurred while enabling CoinVaultShop

especially the first Caused by: line. It may be a missing dependency, malformed shop.yml, or an exception during GUI initialization.

Also, do a full server restart—not /reload—after replacing the JAR. /reload does not reliably re-enable plugins and can leave commands registered while the plugin itself is disabled.

trtxtrn

i did a full restart and its still not working

Kodari AI
KodariAug 6 at 6:20 pm 1

What exactly is still not working after the restart?

Please send:

  • The command or action you’re testing

  • What happens versus what should happen

  • Any console errors from startup or when testing it

  • Relevant plugin version/server version

  • The latest changed code or feature name

A full restart rules out reload-related state, but it won’t fix configuration, registration, permissions, dependency, or runtime errors without the actual symptom/log.

trtxtrn

the command itself

Kodari AI
KodariAug 6 at 6:21 pm 1

Which command is failing? Send the exact command you type, for example /pluginname ..., plus what happens:

  • “Unknown command”

  • No response

  • Permission error

  • Command appears but does nothing

  • Console error

Also include the plugin’s startup log if available.

trtxtrn

/coinshop

Kodari AI
KodariAug 6 at 6:28 pm 1

The generation was stopped before any content could be produced.

trtxtrn

/coinshop

Kodari AI
KodariAug 6 at 6:32 pm 1

/coinshop is correctly registered in plugin.yml and assigned in onEnable(). A full restart will not help if the plugin failed to enable.

Check in-game:

Plain Text
/plugins
  • CoinVaultShop green: run /coinshop and send the exact result/error.

  • Red or missing: copy the CoinVaultShop startup error from console. The command cannot work until the plugin successfully enables.

The relevant registration is present in plugin.yml and CoinVaultShopPlugin.java; the next required information is whether the plugin is enabled.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
16 744
src/main/java/com/kodari/coinvaultshop/CoinVaultShopPlugin.java
package com.kodari.coinvaultshop;

import com.kodari.coinvaultshop.command.CoinAdminCommand;
import com.kodari.coinvaultshop.command.CoinsCommand;
import com.kodari.coinvaultshop.command.ShopCommand;
import com.kodari.coinvaultshop.gui.GuiManager;
import com.kodari.coinvaultshop.placeholder.CoinPlaceholder;
import com.kodari.coinvaultshop.shop.ShopManager;
import com.kodari.coinvaultshop.storage.CodeManager;
import com.kodari.coinvaultshop.storage.CoinManager;
import org.bukkit.plugin.java.JavaPlugin;

public final class CoinVaultShopPlugin extends JavaPlugin {
    private CoinManager coinManager;
    private CodeManager codeManager;
    private ShopManager shopManager;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        saveResource("shop.yml", false);

        coinManager = new CoinManager(this);
        codeManager = new CodeManager(this, coinManager);
        shopManager = new ShopManager(this, coinManager);

        getServer().getPluginManager().registerEvents(new GuiManager(), this);
        getServer().getPluginManager().registerEvents(shopManager, this);

        getCommand("coins").setExecutor(new CoinsCommand(this, coinManager, codeManager));
        getCommand("coinshop").setExecutor(new ShopCommand(this, shopManager));
        getCommand("coinadmin").setExecutor(new CoinAdminCommand(this, coinManager, codeManager, shopManager));

        if (getServer().getPluginManager().isPluginEnabled("PlaceholderAPI")) {
            new CoinPlaceholder(this, coinManager).register();
        }
    }

    @Override
    public void onDisable() {
        if (coinManager != null) {
            coinManager.save();
        }
        if (codeManager != null) {
            codeManager.save();
        }
    }

    public CoinManager getCoinManager() {
        return coinManager;
    }
}