Tobias Siebert

i need a rank shop system wich reads the ranks and also how high a rank is in position from luckperms as well as the permissions of it, i want the plugin to : you can buy ranks with vault default money, also you can upgrade the rank by a value confgurable in a config, the lowest rank is the first showing up the others have a discription as well configurable in the config, you can read the infos of each rank but if you havent the rank or lower its locked. also everythiung in gui, you can also by /buyperm buy permissions. please add for this a config as well, in the config i would love to have it like i only need to put the permisson and the price. also add an automatic upgrade from the default to Spieler rank after default played 45 mins

Kodari AI
KodariSep 27 at 4:44 am 1
RankShopPro
A comprehensive rank shop plugin that integrates with LuckPerms and Vault. Features a GUI-based shop displaying all ranks from LuckPerms in hierarchical order with configurable descriptions and prices. Players can purchase ranks using Vault economy, with automatic rank upgrades based on playtime. Includes a permission shop accessible via /buyperm command where admins can configure permissions and prices in a simple config format. Ranks are locked until players reach the required position, with detailed rank information viewable in the GUI. Configurable upgrade values and automatic promotion from default to Spieler rank after 45 minutes of playtime.
  • Create the Gradle plugin with Vault economy and LuckPerms APIs.

  • Build rank and permission shop GUIs from config, using LuckPerms weights and group permissions.

  • Persist playtime and automatically promote eligible default-rank players after 45 minutes.

Built RankShop with /rankshop and /buyperm, both opening GUIs.

  • Rank groups are configured under rank-shop.ranks; the shop reads their LuckPerms weights and permissions, and lists ranks from lowest to highest. Descriptions, prices, and optional upgrade-price are configurable there.

  • Permission offers need only a permission and price under buy-permissions. Purchases grant the permission permanently through LuckPerms and charge the Vault economy.

  • Playtime is saved across sessions. After the configured 45 minutes, players in the configured default group are automatically promoted to spieler.

Requires LuckPerms and Vault with a working economy provider.

Tobias Siebert

the rank upgrade with playtime is just for default to update to spieler not the other ranks

Kodari AI
KodariSep 27 at 4:44 am 1

Automatic promotion is now fixed to default → spieler after the configured playtime. Other ranks won’t be automatically upgraded; only the enable toggle and playtime duration remain configurable.

Tobias Siebert

rn the buyperm shop config is like this: buy-permissions: - permission: essentials.fly price: 1000. so i want you to make it like this buy-permissions: - display-name: 'erlaubt dir /fly zu verwenden' - permission: essentials.fly price: 1000. so the permission is just given my purchase but the displayname is in the shop showen, i will make the displaynames like the command the permission will trigger so. in this example the essentails.fly permission will be addet but the player only knows. /fly has beed 'activated for him' i dont like players can read the permissions directly, it feels for me a bit like leakng plugin information unessesarry. i also want oraxen glyph support, such as: tags. as you maybe know in oraxen you cann add chat gyphs. with plugins such as TAB adn advanced chat i can use them directly with placeholder they work like this :oraxen_name: if you could use them directly from the lp config, that would be incvcreddibly, if its not sure to work please make an cofig option to en/disable this. also can you create 4 configs, because i want the buyperm gui like this: the player uses the buyperm cmd, then a gui opens with a row of 1 with 4 configurable tems this will be the klickable optios for 4 types of buyable perms. this will be editable in the 4 configs. thank you already

Kodari AI
KodariOct 5 at 7:34 pm 1
  1. Add a player-facing display name for permission offers and remove raw permission nodes from the shop GUI.

  2. Add an optional Oraxen glyph-placeholder setting and apply it to displayed text.

  3. Split /buyperm into four configurable category pages, each with its own config.

  1. Permission offers now use configured display names in the shop and purchase message; the raw permission node is hidden from that GUI.

  2. Added a glyph toggle; LuckPerms group names can be used in rank listings when enabled.

  3. /buyperm will open a four-option category menu, with each category and its offers stored in a separate config.

  • Permission offers now display the configured display-name in the shop and purchase message; the raw permission node is not shown in the buy-perk GUI.

  • Added oraxen-glyphs.enabled and use-luckperms-group-names in config.yml. When enabled, :oraxen_...: tags are passed through; the second setting uses LuckPerms group names for rank labels. Glyph rendering in inventory text still depends on Oraxen’s own support for those tags.

  • /buyperm now opens a four-option category menu. Edit each category’s menu item and offers in buyperm-category-1.yml through buyperm-category-4.yml. Offers use:

    YAML
    - display-name: '&e/fly &7(activated for you)'
      permission: essentials.fly
      price: 1000
    

    The first category contains the existing fly and extra-home offers; the other three are ready for your offers.

Tobias Siebert

add a particle shop with 12 different particle players can buy. the paticle should look smooth and safe against epelepsie

Kodari AI
KodariOct 5 at 7:46 pm 1
  1. Add a particle shop GUI with 12 purchasable effects, using subtle, low-intensity animations designed to avoid rapid flashes.

Added /particleshop (alias /particles) with 12 configurable particle effects. Players can buy an effect to activate it, then click it again later to activate or deactivate it; ownership and selection persist across restarts.

Edit particle-shop.yml to change each effect’s display name, icon, price, lore, and particle type. Effects are intentionally restrained: one particle every 10 ticks, moving slowly, with no rapid bursts or flashing patterns.

Tobias Siebert

make everyething for the german language

Kodari AI
KodariOct 5 at 7:48 pm 1

Alle sichtbaren Texte sind jetzt auf Deutsch: Shop-Menüs, Rangbeschreibungen, Kaufmeldungen, Partikeleffekte, Buyperm-Kategorien und Befehlsbeschreibungen. Technische IDs wie Befehle, LuckPerms-Gruppennamen und Berechtigungsnodes bleiben unverändert.

Tobias Siebert

please make every effect different from the other

Kodari AI
KodariOct 5 at 7:58 pm 1

I’ll give each of the 12 effects its own slow movement pattern, keeping emissions sparse and non-flashing.

Each of the 12 effects now has its own movement pattern, with descriptions updated to match. The shop still emits only one particle per interval, avoiding bursts and rapid flashing.

Tobias Siebert

well at least add 6 more effects with faster delay but if a player has the no.flash permission, they cant see the effect.

Kodari AI
KodariOct 5 at 8:04 pm 1
  1. Add six distinct particle effects with a faster configurable interval.

  2. Hide all particle effects from players with no.flash.

Added six new effects—Flame, Heart, Note, Soul, Snowball, and Bubble—with distinct movement patterns. They emit every 5 ticks; the original effects keep their 10-tick interval.

Players with no.flash won’t see any particle-shop effects, including other players’ effects. The six new offers are configurable in particle-shop.yml, using GUI slots 0–5.

Tobias Siebert

create for evvery buyperm config an example.

Kodari AI
KodariOct 7 at 2:10 am 1

Added sample offers to the three empty Buyperm categories. Together with the existing offers in category 1, all four buyperm-category-*.yml files now include examples. The new samples use EssentialsX permissions and German names; adjust the permission nodes if your server uses different plugins.

Tobias Siebert

add a commands.txt file witha every command in it. also add a admin gui in wich you can change the loot of hostile mobs example: skeleton spawn egg. if i klick on it it opens an anvil gui the text i gan write there will be the amount of xp levels the drop will be set ad the 2 item put slots will be handled like this: item 1 and item 2 will be the drop but at least it is only 1 needed. also add a Timer for the end but not for the whole dimension only for the dragon island. it should be like this every %configurableday% lets say as example monday at also configurable time lets examply say 16pm the dragon respawns and a event starts. brodcasting in every world. add extra loot some op stuff some tools etc. if a players inventory is full his loot will be safed in a gui chest avaiable for 12hours after finished the event. open command is /loot

Kodari AI
KodariOct 7 at 3:04 am 3
  1. Create commands.txt listing every registered command.

  2. Add an admin GUI for configuring hostile-mob drops.

  3. Add the scheduled Ender Dragon event, bonus loot, and 12-hour /loot claim storage.

  1. Added /mobloot: admins can configure XP and up to two custom drops for hostile mobs.

  2. Next I’m adding the scheduled Ender Dragon event and the 12-hour /loot claim flow, then I’ll update commands.txt.

  1. commands.txt now lists every command, including the new /mobloot and /loot.

  2. Added /mobloot for admins (rankshop.admin.mobloot). Select a hostile mob’s spawn egg, enter its XP drop in the anvil, then configure up to two item drops. At least one drop is required; unsaved items are returned to your inventory. XP is configured in experience points, as Bukkit’s mob-drop API uses points rather than player levels.

  3. Added the recurring dragon event, configured by default for Monday at 16:00 in Europe/Berlin. It uses the End world set in config.yml, starts the dragon battle, and broadcasts event messages server-wide. Rewards are only given to players within the configured radius of the central dragon island. Unclaimed inventory overflow can be collected in the /loot GUI for 12 hours after the dragon is defeated. Items and reward enchantments are configurable in config.yml.

Tobias Siebert

wenn der drache besiegt ist soll ein Timer da sein in echt zeit

Kodari AI
KodariOct 7 at 3:37 am 1

Der /loot-GUI zeigt jetzt einen live aktualisierten Countdown bis zum Ablauf der gespeicherten Beute (HH:MM:SS). Er läuft nach echter Systemzeit ab dem Besiegen des Drachen – auch wenn der Spieler offline ist oder der Server neu startet.

Tobias Siebert

please add a commands txt file to the plugin configs folder

Kodari AI
KodariOct 7 at 5:12 pm 1

Ich lege eine Kopie von commands.txt unter src/main/resources/ ab, damit sie mit den Plugin-Konfigurationsdateien gebündelt wird.

commands.txt wurde nach src/main/resources/commands.txt kopiert und liegt damit bei den Plugin-Konfigurationsdateien.

Tobias Siebert

wenn das plugin aktiviert wids soll die datei auch zu sehen sein also zum einsehen zb aller befehle

Kodari AI
KodariOct 7 at 5:13 pm 1

Beim Aktivieren kopiert das Plugin commands.txt in seinen Plugin-Ordner, sofern die Datei dort noch nicht existiert. Dort kann man anschließend alle Befehle nachlesen.

Tobias Siebert

kannst du noch meine beschriebene anvil gui zum bearbeiten der mob loots hinzufügen

Kodari AI
KodariOct 7 at 9:00 pm 2
  • Ich verlege beide Loot-Slots in das Anvil-GUI und nutze das Namensfeld für die XP-Punkte.

  • Vorhandene Drops bleiben beim Bearbeiten erhalten; mindestens ein echter Drop ist nötig.

  • Ungespeicherte Items werden beim Schließen zurückgegeben.

Das Mob-Loot-GUI nutzt jetzt direkt den Amboss: Slot 1 und 2 sind für die Drops, und im Namensfeld trägst du die XP-Punkte ein. Mindestens ein Drop muss gesetzt sein. Vorhandene Drops werden zum Bearbeiten geladen; nicht gespeicherte Items erhältst du beim Schließen zurück.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
commands.txt
settings.gradle
Code
22 2,761
src/main/java/com/kodari/rankshop/RankShopPlugin.java
package com.kodari.rankshop;

import net.luckperms.api.LuckPerms;
import net.luckperms.api.LuckPermsProvider;
import net.milkbowl.vault.economy.Economy;
import org.bukkit.Bukkit;
import org.bukkit.configuration.file.FileConfiguration;
import org.bukkit.configuration.file.YamlConfiguration;
import org.bukkit.plugin.RegisteredServiceProvider;
import org.bukkit.plugin.java.JavaPlugin;

import java.io.File;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.nio.charset.StandardCharsets;

public final class RankShopPlugin extends JavaPlugin {
    private Economy economy;
    private LuckPerms luckPerms;
    private RankShopService shopService;
    private PlaytimeTracker playtimeTracker;
    private ParticleShopService particleShopService;
    private MobLootService mobLootService;
    private LootClaimService lootClaimService;
    private DragonEventService dragonEventService;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        if (!new File(getDataFolder(), "commands.txt").exists()) {
            saveResource("commands.txt", false);
        }
        addBundledConfigDefaults();

        RegisteredServiceProvider<Economy> economyProvider = getServer().getServicesManager().getRegistration(Economy.class);
        if (economyProvider == null || economyProvider.getProvider() == null) {
            getLogger().severe("A Vault-compatible economy provider is required.");
            Bukkit.getPluginManager().disablePlugin(this);
            return;
        }
        economy = economyProvider.getProvider();

        if (Bukkit.getPluginManager().getPlugin("LuckPerms") == null) {
            getLogger().severe("LuckPerms is required.");
            Bukkit.getPluginManager().disablePlugin(this);
            return;
        }
        try {
            luckPerms = LuckPermsProvider.get();
        } catch (IllegalStateException exception) {
            getLogger().severe("LuckPerms API is not available.");
            Bukkit.getPluginManager().disablePlugin(this);
            return;
        }

        shopService = new RankShopService(this, economy, luckPerms);
        particleShopService = new ParticleShopService(this, shopService);
        mobLootService = new MobLootService(this);
        lootClaimService = new LootClaimService(this);
        dragonEventService = new DragonEventService(this, lootClaimService);
        RankShopListener listener = new RankShopListener(this, shopService, particleShopService, mobLootService, lootClaimService);
        getServer().getPluginManager().registerEvents(listener, this);
        getServer().getPluginManager().registerEvents(mobLootService, this);
        getServer().getPluginManager().registerEvents(lootClaimService, this);
        getServer().getPluginManager().registerEvents(dragonEventService, this);
        getCommand("rankshop").setExecutor(listener);
        getCommand("buyperm").setExecutor(listener);
        getCommand("particleshop").setExecutor(listener);
        getCommand("mobloot").setExecutor(listener);
        getCommand("loot").setExecutor(listener);

        playtimeTracker = new PlaytimeTracker(this, shopService);
        getServer().getPluginManager().registerEvents(playtimeTracker, this);
        playtimeTracker.start();
        particleShopService.start();
        dragonEventService.start();
    }

    @Override
    public void onDisable() {
        if (playtimeTracker != null) {
            playtimeTracker.flushAndSave();
        }
        if (particleShopService != null) {
            particleShopService.shutdown();
        }
        if (dragonEventService != null) {
            dragonEventService.shutdown();
        }
    }

    public Economy getEconomy() {
        return economy;
    }

    private void addBundledConfigDefaults() {
        try (InputStream stream = getResource("config.yml")) {
            if (stream == null) {
                return;
            }
            FileConfiguration defaults = YamlConfiguration.loadConfiguration(
                    new InputStreamReader(stream, StandardCharsets.UTF_8));
            getConfig().setDefaults(defaults);
            getConfig().options().copyDefaults(true);
            saveConfig();
        } catch (Exception exception) {
            getLogger().warning("Konfigurationsstandardwerte konnten nicht ergänzt werden: " + exception.getMessage());
        }
    }

    FileConfiguration loadPermissionCategoryConfig(int category) {
        String fileName = "buyperm-category-" + category + ".yml";
        File file = new File(getDataFolder(), fileName);
        if (!file.exists()) {
            saveResource(fileName, false);
        }
        return YamlConfiguration.loadConfiguration(file);
    }

    FileConfiguration loadParticleShopConfig() {
        String fileName = "particle-shop.yml";
        File file = new File(getDataFolder(), fileName);
        if (!file.exists()) {
            saveResource(fileName, false);
        }
        return YamlConfiguration.loadConfiguration(file);
    }
}