Mod Mcpe

There are only 1 small change and 1 bug 1st remove the command /shop reload and change it to /soulshop reload and /shopadmin reload make sure to remove the old /shop reload command entirely next even I have vault economy and a economy providet plugin and it's working detected in vsult itself but it says no economy provider is there when try to buy so fox this bug no other changes are required other is perfect

Kodari AI
KodariSep 26 at 4:25 am 1
  1. Replace /shop reload with /soulshop reload and /shopadmin reload.

  2. Fix Vault economy-provider detection during purchases, with no unrelated changes.

  1. Removed /shop as an alias; reload is now available through /soulshop reload and /shopadmin reload.

  2. Fixed Vault detection by retrying provider lookup when economy is first needed, so a provider registered after plugin startup can still process purchases.

Mod Mcpe

Bro i only said to remove the /shop reload command not the entire /shop command add the /shop command back

Kodari AI
KodariSep 26 at 4:35 am 1
  • Restore /shop for opening the shop, while keeping reload available only via /soulshop reload and /shopadmin reload.

Restored /shop and registered it to open the shop. Reload remains available through /soulshop reload and /shopadmin reload; /shop reload no longer reloads the configuration.

Mod Mcpe

Ot S big glitch or anything just idk why when I start server this spams in console eveytime

1 image attached
Kodari AI
KodariSep 26 at 5:16 am 1

No, it’s not a big glitch. The warnings appear because the plugin tries to copy shops.yml, messages.yml, and sounds.yml on every startup, even though they’re already in the plugin folder. It then loads the existing files successfully—the “Loaded shop…” messages confirm that.

Your shop and config data aren’t being overwritten. It’s just noisy logging; the save step can be adjusted to run only when those files are missing.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
PLACEHOLDERS.md
README.md
settings.gradle
Code
33 1,875
src/main/java/com/example/shop/ShopPlugin.java
package com.example.shop;

import com.example.shop.command.ShopCommand;
import com.example.shop.config.ConfigManager;
import com.example.shop.config.MessageService;
import com.example.shop.config.SoundService;
import com.example.shop.economy.EconomyService;
import com.example.shop.gui.main.GuiManager;
import com.example.shop.item.ItemFactory;
import com.example.shop.listener.ShopListener;
import com.example.shop.placeholder.PlaceholderService;
import com.example.shop.placeholder.ShopPlaceholderExpansion;
import com.example.shop.playerdata.saved.PlayerDataManager;
import com.example.shop.shop.repository.ShopRepository;
import com.example.shop.util.NumberFormatter;
import org.bukkit.Bukkit;
import org.bukkit.entity.Player;
import org.bukkit.plugin.java.JavaPlugin;

public class ShopPlugin extends JavaPlugin {
    private ConfigManager config;
    private ShopRepository repository;
    private MessageService messages;
    private SoundService sounds;
    private NumberFormatter numbers;
    private PlayerDataManager data;
    private EconomyService economy;
    private PlaceholderService placeholders;
    private GuiManager gui;

    @Override
    public void onEnable() {
        config = new ConfigManager(this);
        numbers = new NumberFormatter();
        numbers.load(config.config().getConfigurationSection("number-format"));
        data = new PlayerDataManager(this);
        economy = new EconomyService();
        if (!economy.setup()) getLogger().warning("Vault economy provider was not found; purchases are disabled until one is available.");
        messages = new MessageService(config);
        sounds = new SoundService(config);
        placeholders = new PlaceholderService(this, data, numbers);
        repository = new ShopRepository(this, config);
        repository.reload();
        gui = new GuiManager(this, repository, new ItemFactory(placeholders), placeholders, messages, sounds, economy, data);
        ShopCommand shopCommand = new ShopCommand(this, messages);
        getCommand("shop").setExecutor(shopCommand);
        getCommand("shop").setTabCompleter(shopCommand);
        getCommand("soulshop").setExecutor(shopCommand);
        getCommand("soulshop").setTabCompleter(shopCommand);
        getCommand("shopadmin").setExecutor(shopCommand);
        getCommand("shopadmin").setTabCompleter(shopCommand);
        Bukkit.getPluginManager().registerEvents(new ShopListener(this), this);
        if (placeholderApiAvailable()) new ShopPlaceholderExpansion(this).register();
        getLogger().info("ShopPlugin " + getDescription().getVersion() + " enabled with " + repository.all().size() + " shop(s).");
    }

    @Override
    public void onDisable() { if (data != null) data.saveAll(); }

    public boolean reloadPluginConfiguration() {
        try {
            config.reload();
            numbers.load(config.config().getConfigurationSection("number-format"));
            placeholders.reload();
            repository.reload();
            return true;
        } catch (RuntimeException ex) {
            getLogger().severe("Configuration reload failed: " + ex.getMessage());
            return false;
        }
    }

    public boolean placeholderApiAvailable() { return Bukkit.getPluginManager().isPluginEnabled("PlaceholderAPI"); }
    public void deposit(Player player, double amount) { economy.deposit(player, amount); }
    public ConfigManager configManager() { return config; }
    public ShopRepository repository() { return repository; }
    public MessageService messages() { return messages; }
    public NumberFormatter numbers() { return numbers; }
    public PlayerDataManager data() { return data; }
    public EconomyService economy() { return economy; }
    public GuiManager gui() { return gui; }
}