carterguitar214-cmyk

--- 📎 Attached 1 file(s):

File: pasted-code-1786916133369.txt

txt
## ADVANCED IN-SERVER CONFIGURATION Add a powerful admin command: `/supersmpconfig` This should open a INVENTORY GUI-based configuration menu that allows authorized admins to edit the Super SMP plugin WITHOUT manually editing config files. Only players with the appropriate admin permission can use it. The INVENTORY GUI should allow admins to select each of the 8 powers: * Health * Movement * Survival * Wealth * Damage * Ice * Fire * Building After selecting a power, show all of its abilities and important settings. Admins should be able to change things such as: * Ability damage * Ability cooldown * Ability duration * Effect duration * Effect strength/amplifier * Ability range * Chance percentages * Knockback reduction * Damage multipliers * Health/absorption amounts * Power requirements * Number of charges * Number of uses * Passive values * Kill/death Power amounts * Any other balance-related value For example, an admin should be able to change the Health Golden Carrot ability from 2 absorption hearts to 3, or change an ability's cooldown from 180 seconds to 120 seconds without editing Java code. Allow admins to **buff or nerf individual abilities while the server is running**. Changes made through `/supersmpconfig` should save permanently to the plugin's configuration. Include buttons such as: * Edit Damage * Edit Cooldown * Edit Duration * Edit Chance * Edit Range * Edit Effect * Reset Ability * Save Changes Use chat input when a numerical value needs to be entered. After changing a value, immediately confirm the new value to the admin. Include a **Reset to Default** option for every individual setting. Also include: `/supersmpconfig reload` or make the INVENTORY GUI automatically apply changes without requiring a server restart. Do NOT require a full server restart to change normal ability balance values. ## REROLL SYSTEM Add: `/givereroll <player>` This command gives the specified player a custom **Power Reroll** item. The Reroll item should have a unique name, lore, and persistent custom data so it cannot be confused with a normal Minecraft item. When a player uses the Reroll item, they receive a completely new random power from the 8 Super SMP powers: * Health * Movement * Survival * Wealth * Damage * Ice * Fire * Building The new power replaces their current power. Their current Power percentage should remain unless specifically configured otherwise. The reroll should NOT allow the player to select their preferred power. It must randomly select one of the 8 powers. Make sure the reroll cannot be duplicated through normal gameplay. Only admins can use `/givereroll`. Add tab completion for the player argument. ## ADMIN BALANCE CONTROL The entire plugin should be designed so that the server owner can easily balance the powers later. Do not hardcode important balance values directly into Java. Every important ability value should be configurable. The `/supersmpconfig` INVENTORY GUI should be an easier in-game way to modify those same values. The plugin should save all changes and preserve them after restarts. ## ERROR HANDLING AND TESTING Before giving me the final JAR: 1. Compile the entire plugin. 2. Fix all compilation errors. 3. Check for missing event listeners. 4. Check every command. 5. Check permissions. 6. Check config loading. 7. Check that `/supersmpconfig` does not crash the server. 8. Check that all INVENTORY GUI buttons work. 9. Check that changing an ability value actually changes the ability. 10. Check that values persist after restarting the server. 11. Check that `/givereroll` works correctly. 12. Check that the reroll item cannot be duplicated. 13. Check all 8 powers. 14. Check the kill/death Power system. 15. Check the Trust system. 16. Check Power Dust and `/withdraw`. 17. Check all cooldowns. 18. Check that abilities cannot affect trusted players. The final result should be a **server-ready JAR**, not merely example Java code. Super SMP Info When you join the server for the first time you will receive one of the eight powers below. You start at 50% Power level and on each kill you gain 10% until you fully maxed out your power. If you happen to die you lose 10% but if you happen to be on 0% and someone kills you they will not gain anything from it. If you kill someone while on the max 100% power level a bottle will drop called Power dust and equipping it will give you the 10% power level. If you want to give a power level to your teammate you can use the /withdraw (amount you want to withdraw) to withdraw a bottle of 10% power level or however much you want. If you try to withdraw an amount of power level you don’t have it will tell you that you don’t have that much. In this plugin you can also use the /trust command to trust your teammates so you won’t be able to damage them or your abilities won’t affect them. The last 2 commands are /ability1 and /ability2 which activate your 2 abilities or if you don’t like that you can use offhand and offhand shift. This is how it would work for kills and stuff ###50% • Passive 60% • Passive Upgrade 70% • Ability 1 80% • Ability 1 Upgrade 90% • Ability 2 100% • Ability 2 Upgrade Power of healing 50% power level : you have an infinite health pot the has a 2 minute cooldown (can’t be dropped) 60% (1 kill): health pot cooldown becomes 1 minute 70% Ability 1- (2 kills):on activation 10% to gain health on each time you hit your opponent along with regen 2 for 10 second (2 minutes cooldown) 80% (3 kills): becomes a 20% chance to gain the instant health 1 effect on each time you hit your opponent instead of 20% 90% Ability 2- (4 kills): on activation have the ability to give yourself resistance 2 for 10 seconds and instant health 3 effect (3 minutes cooldown) 100% Power level (5 kills) when you activate it instead of it just giving you resistance 2 it gives your whole team res 2 Power of movement 50% Power level : double jump with a 30 second cooldown (click jump keybind twice) 60% (1 kill):double jump cooldown becomes 10 seconds + inf weaving 70% Ability 1- (2 kills) gain 3 lunge like dashes with a 2 minute cooldown for each 80% (3 kills) cooldown becomes 1 minute per dash 90% Ability 2- (4 kills) on activation you will become immune to cobwebs and for every hit on your opponent you get it will increase your level of speed lasting 10 on seconds (2 min 30 sec cooldown) 100% (5 kills) now lasts for 20 seconds instead of 10 Power of survival 50% Power level : 12 hearts + speed 1 60% (1 kill): 15 hearts 70% Ability 1- (2 kill): 15% chance for enemies attack to do no damage or knockback for 20 seconds (3 minute) 80% (3 kills): chance increases to 30% chance 90% Ability 2 - (4 kills): on activation gives 20 hearts for 15 seconds + regen 3 for 5 seconds (2 minute cooldown) 100% (5 kills): the 20 hearts now lasts for 30 seconds Power of wealth 50% Power level : infinite hero of the village 3 and the ability to pick up villagers 60% (1 kill): now each kill you get will add a level of hero of the village + auto enchants weapon and axe to looting 8 70% Ability 1 - (2 kill): when activated gaps wind charges cob webs won’t be used for 15 seconds (3 min cooldown) 80% (3 kills) now when you activate your first ability you will be able to eat double to speed and the cooldown for wind charges will be half the normal time lasting 15 seconds (3 minute cooldown) 90% Ability 2 - (4 kills) for 10 seconds you won’t take any durability on anything (3 min 30 sec cooldown) 100% (5 kills) now when you activate that ability your xp bottles have a 50% not to use but still give you the xp lasting for 10 seconds (3 minute 30 second cooldown) Power of damage 50% Power level : you have an infinite instant damage pot the has a 1 minute cooldown (can’t be dropped) 60% (1 kill): damage pot cooldown becomes 30 minute + auto enchants sword and axe with sharp 5 70% Ability 1 - (2 kills): auto crits and 30% less kb to yourself for 10 seconds (3 minute cooldown) 80% (3 kills) cooldown becomes 2 min 30 seconds + that ability now lasts for 15 seconds 90% Ability 2- (4 kills) when ability is each consecutive hit with increase damage for example if you get a 3 hit combo damage will increase by 15% and this lasts 15 seconds (4 minute cooldown) 100% (5 kills) becomes a 3 min cooldown and by 10% instead of 5% Power of ice 50% Power level :auto enchants depth strider 5 along with when your in water you will auto crit and have an infinite ice block 60% (1 kill) ice blocks becomes packed ice 70% Ability 1- (2 kills) the next person you attack you will freeze in place while having the freezing effect for 3 seconds (3 minute cooldown) 80% (3 kills): now when you use that ability the person while no longer be able to look around while stunned 90% Ability 2- (4 kills): all players around you will not be able to windcharge or jump for 5 seconds (3 minute cooldown) 100% (5 kill): this ability will now last for 10 seconds with a 2 and half minute cooldown Power of fire 50% Power level : inf + fire res + being able to swim in lava 60% (1 kill): do more damage while on fire 70% Ability 1- (2 kills) when activated everyone around you (that is not trusted) will get set on fire that you can’t put out and a buffed version of fire lasting 10 seconds (3 min cooldown) 80% (3 kills) fire lasts 15 seconds instead of 10 with only a 2 and a half minute cooldown 90% Ability 2- (4 kills) when activated for 15 seconds water will not be able to be in a 5 blocks radius of the player along with a fire ball that can be charged up (with a 3 and a half minute cooldown) 100% (5 kills) cooldown becomes 2 minutes and 30 seconds for the fire ball Power of building 50% Power level : infinite haste 2 when holding a pickaxe auto enchants swift sneak 3 60% (1 kill): auto enchants efficiency 5 and becomes haste 3 70% Ability 1 Power level 4 (2 kills): your opponents around you will not be able to place blocks or break blocks for 10 seconds (3 minute cooldown) 80% Power level 4 (3 kills) becomes 20 seconds 90% Ability 2 power level 5 (4 kills) when activated spawns a wall around all enemies where they gain weakness and you gain haste 10 for 10 seconds (4 minute cooldown) 100% Power level 5 (5 kills)becomes a 3 min cooldown and now lasts for 20 seconds
📎 1 file 10,216 chars
📄
pasted-code-1786916193898.txt
txt 1 lines
▶
## ADVANCED IN-SERVER CONFIGURATION Add a powerful admin command: `/supersmpconfig` This should open a INVENTORY GUI-based configuration menu that allows authorized admins to edit the Super SMP plugin WITHOUT manually editing config files. Only players with the appropriate admin permission can use it. The INVENTORY GUI should allow admins to select each of the 8 powers: * Health * Movement * Survival * Wealth * Damage * Ice * Fire * Building After selecting a power, show all of its abilities and important settings. Admins should be able to change things such as: * Ability damage * Ability cooldown * Ability duration * Effect duration * Effect strength/amplifier * Ability range * Chance percentages * Knockback reduction * Damage multipliers * Health/absorption amounts * Power requirements * Number of charges * Number of uses * Passive values * Kill/death Power amounts * Any other balance-related value For example, an admin should be able to change the Health Golden Carrot ability from 2 absorption hearts to 3, or change an ability's cooldown from 180 seconds to 120 seconds without editing Java code. Allow admins to **buff or nerf individual abilities while the server is running**. Changes made through `/supersmpconfig` should save permanently to the plugin's configuration. Include buttons such as: * Edit Damage * Edit Cooldown * Edit Duration * Edit Chance * Edit Range * Edit Effect * Reset Ability * Save Changes Use chat input when a numerical value needs to be entered. After changing a value, immediately confirm the new value to the admin. Include a **Reset to Default** option for every individual setting. Also include: `/supersmpconfig reload` or make the INVENTORY GUI automatically apply changes without requiring a server restart. Do NOT require a full server restart to change normal ability balance values. ## REROLL SYSTEM Add: `/givereroll ` This command gives the specified player a custom **Power Reroll** item. The Reroll item should have a unique name, lore, and persistent custom data so it cannot be confused with a normal Minecraft item. When a player uses the Reroll item, they receive a completely new random power from the 8 Super SMP powers: * Health * Movement * Survival * Wealth * Damage * Ice * Fire * Building The new power replaces their current power. Their current Power percentage should remain unless specifically configured otherwise. The reroll should NOT allow the player to select their preferred power. It must randomly select one of the 8 powers. Make sure the reroll cannot be duplicated through normal gameplay. Only admins can use `/givereroll`. Add tab completion for the player argument. ## ADMIN BALANCE CONTROL The entire plugin should be designed so that the server owner can easily balance the powers later. Do not hardcode important balance values directly into Java. Every important ability value should be configurable. The `/supersmpconfig` INVENTORY GUI should be an easier in-game way to modify those same values. The plugin should save all changes and preserve them after restarts. ## ERROR HANDLING AND TESTING Before giving me the final JAR: 1. Compile the entire plugin. 2. Fix all compilation errors. 3. Check for missing event listeners. 4. Check every command. 5. Check permissions. 6. Check config loading. 7. Check that `/supersmpconfig` does not crash the server. 8. Check that all INVENTORY GUI buttons work. 9. Check that changing an ability value actually changes the ability. 10. Check that values persist after restarting the server. 11. Check that `/givereroll` works correctly. 12. Check that the reroll item cannot be duplicated. 13. Check all 8 powers. 14. Check the kill/death Power system. 15. Check the Trust system. 16. Check Power Dust and `/withdraw`. 17. Check all cooldowns. 18. Check that abilities cannot affect trusted players. The final result should be a **server-ready JAR**, not merely example Java code. Super SMP Info When you join the server for the first time you will receive one of the eight powers below. You start at 50% Power level and on each kill you gain 10% until you fully maxed out your power. If you happen to die you lose 10% but if you happen to be on 0% and someone kills you they will not gain anything from it. If you kill someone while on the max 100% power level a bottle will drop called Power dust and equipping it will give you the 10% power level. If you want to give a power level to your teammate you can use the /withdraw (amount you want to withdraw) to withdraw a bottle of 10% power level or however much you want. If you try to withdraw an amount of power level you don’t have it will tell you that you don’t have that much. In this plugin you can also use the /trust command to trust your teammates so you won’t be able to damage them or your abilities won’t affect them. The last 2 commands are /ability1 and /ability2 which activate your 2 abilities or if you don’t like that you can use offhand and offhand shift. This is how it would work for kills and stuff ###50% • Passive 60% • Passive Upgrade 70% • Ability 1 80% • Ability 1 Upgrade 90% • Ability 2 100% • Ability 2 Upgrade Power of healing 50% power level : you have an infinite health pot the has a 2 minute cooldown (can’t be dropped) 60% (1 kill): health pot cooldown becomes 1 minute 70% Ability 1- (2 kills):on activation 10% to gain health on each time you hit your opponent along with regen 2 for 10 second (2 minutes cooldown) 80% (3 kills): becomes a 20% chance to gain the instant health 1 effect on each time you hit your opponent instead of 20% 90% Ability 2- (4 kills): on activation have the ability to give yourself resistance 2 for 10 seconds and instant health 3 effect (3 minutes cooldown) 100% Power level (5 kills) when you activate it instead of it just giving you resistance 2 it gives your whole team res 2 Power of movement 50% Power level : double jump with a 30 second cooldown (click jump keybind twice) 60% (1 kill):double jump cooldown becomes 10 seconds + inf weaving 70% Ability 1- (2 kills) gain 3 lunge like dashes with a 2 minute cooldown for each 80% (3 kills) cooldown becomes 1 minute per dash 90% Ability 2- (4 kills) on activation you will become immune to cobwebs and for every hit on your opponent you get it will increase your level of speed lasting 10 on seconds (2 min 30 sec cooldown) 100% (5 kills) now lasts for 20 seconds instead of 10 Power of survival 50% Power level : 12 hearts + speed 1 60% (1 kill): 15 hearts 70% Ability 1- (2 kill): 15% chance for enemies attack to do no damage or knockback for 20 seconds (3 minute) 80% (3 kills): chance increases to 30% chance 90% Ability 2 - (4 kills): on activation gives 20 hearts for 15 seconds + regen 3 for 5 seconds (2 minute cooldown) 100% (5 kills): the 20 hearts now lasts for 30 seconds Power of wealth 50% Power level : infinite hero of the village 3 and the ability to pick up villagers 60% (1 kill): now each kill you get will add a level of hero of the village + auto enchants weapon and axe to looting 8 70% Ability 1 - (2 kill): when activated gaps wind charges cob webs won’t be used for 15 seconds (3 min cooldown) 80% (3 kills) now when you activate your first ability you will be able to eat double to speed and the cooldown for wind charges will be half the normal time lasting 15 seconds (3 minute cooldown) 90% Ability 2 - (4 kills) for 10 seconds you won’t take any durability on anything (3 min 30 sec cooldown) 100% (5 kills) now when you activate that ability your xp bottles have a 50% not to use but still give you the xp lasting for 10 seconds (3 minute 30 second cooldown) Power of damage 50% Power level : you have an infinite instant damage pot the has a 1 minute cooldown (can’t be dropped) 60% (1 kill): damage pot cooldown becomes 30 minute + auto enchants sword and axe with sharp 5 70% Ability 1 - (2 kills): auto crits and 30% less kb to yourself for 10 seconds (3 minute cooldown) 80% (3 kills) cooldown becomes 2 min 30 seconds + that ability now lasts for 15 seconds 90% Ability 2- (4 kills) when ability is each consecutive hit with increase damage for example if you get a 3 hit combo damage will increase by 15% and this lasts 15 seconds (4 minute cooldown) 100% (5 kills) becomes a 3 min cooldown and by 10% instead of 5% Power of ice 50% Power level :auto enchants depth strider 5 along with when your in water you will auto crit and have an infinite ice block 60% (1 kill) ice blocks becomes packed ice 70% Ability 1- (2 kills) the next person you attack you will freeze in place while having the freezing effect for 3 seconds (3 minute cooldown) 80% (3 kills): now when you use that ability the person while no longer be able to look around while stunned 90% Ability 2- (4 kills): all players around you will not be able to windcharge or jump for 5 seconds (3 minute cooldown) 100% (5 kill): this ability will now last for 10 seconds with a 2 and half minute cooldown Power of fire 50% Power level : inf + fire res + being able to swim in lava 60% (1 kill): do more damage while on fire 70% Ability 1- (2 kills) when activated everyone around you (that is not trusted) will get set on fire that you can’t put out and a buffed version of fire lasting 10 seconds (3 min cooldown) 80% (3 kills) fire lasts 15 seconds instead of 10 with only a 2 and a half minute cooldown 90% Ability 2- (4 kills) when activated for 15 seconds water will not be able to be in a 5 blocks radius of the player along with a fire ball that can be charged up (with a 3 and a half minute cooldown) 100% (5 kills) cooldown becomes 2 minutes and 30 seconds for the fire ball Power of building 50% Power level : infinite haste 2 when holding a pickaxe auto enchants swift sneak 3 60% (1 kill): auto enchants efficiency 5 and becomes haste 3 70% Ability 1 Power level 4 (2 kills): your opponents around you will not be able to place blocks or break blocks for 10 seconds (3 minute cooldown) 80% Power level 4 (3 kills) becomes 20 seconds 90% Ability 2 power level 5 (4 kills) when activated spawns a wall around all enemies where they gain weakness and you gain haste 10 for 10 seconds (4 minute cooldown) 100% Power level 5 (5 kills)becomes a 3 min cooldown and now lasts for 20 seconds
Kodari AI
KodariAug 16 at 9:39 pm 2
SuperSMPConfig
An advanced in-server configuration and reroll system for the Super SMP plugin. Opens a GUI-based admin menu via /supersmpconfig to edit all eight powers (Health, Movement, Survival, Wealth, Damage, Ice, Fire, Building) without touching config files. Admins can modify ability damage, cooldowns, durations, effect amplifiers, ranges, chance percentages, knockback reductions, and more through interactive buttons and chat input. Changes apply instantly and persist permanently. Includes /givereroll to grant a unique, non-duplicable Power Reroll item that randomly reassigns a player's power while preserving their percentage. All balance values remain configurable for future tweaking.
  1. Create the Gradle/Paper plugin project and persistent default configuration.

  2. Add player powers, progression, trust, withdrawal dust, rerolls, cooldowns, and ability execution.

  3. Add /supersmpconfig with inventory navigation, chat-based numeric editing, per-setting resets, persistence, and reload.

  4. Register commands, listeners, permissions, and tab completion in the plugin descriptor.

Implemented the Super SMP plugin project with:

  1. Persistent eight-power system with random first assignment and configurable progression.

  2. Kill/death Power changes, Power Dust, /withdraw, and right-click Power Dust consumption.

  3. Trust system preventing trusted-player damage and hostile ability effects.

  4. /ability1, /ability2, and offhand activation support with configurable cooldowns, durations, effects, ranges, chances, requirements, and damage.

  5. /givereroll <player> with tab completion, persistent custom item data, random non-selectable power rerolls, and item consumption.

  6. /supersmpconfig inventory GUI for selecting powers and abilities, editing numerical settings through chat, resetting individual settings or entire abilities, and reloading configuration.

  7. Persistent player data in players.yml.

  8. Paper Gradle project files, plugin descriptor, default configuration, permissions, and XSeries dependency manifest.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
manifest.kod
settings.gradle
Code
19 1,142
src/main/java/com/kodari/supersmp/SuperSMPPlugin.java
package com.kodari.supersmp;

import org.bukkit.Bukkit;
import org.bukkit.NamespacedKey;
import org.bukkit.entity.Player;
import org.bukkit.plugin.java.JavaPlugin;

import java.util.HashMap;
import java.util.Map;
import java.util.UUID;

public class SuperSMPPlugin extends JavaPlugin {
    private ConfigService config;
    private ProfileManager profiles;
    private TrustManager trust;
    private CooldownManager cooldowns;
    private PowerManager powerManager;
    private AbilityService abilities;
    private ConfigGUI configGUI;
    private NamespacedKey rerollKey;
    private NamespacedKey dustKey;
    private final Map<UUID, Long> damageMultipliers = new HashMap<>();
    private final Map<UUID, Double> multiplierValues = new HashMap<>();

    @Override public void onEnable() {
        saveDefaultConfig();
        config = new ConfigService(this);
        profiles = new ProfileManager(this);
        trust = new TrustManager(profiles);
        cooldowns = new CooldownManager();
        powerManager = new PowerManager(this);
        abilities = new AbilityService(this);
        configGUI = new ConfigGUI(this);
        rerollKey = new NamespacedKey(this, "power-reroll");
        dustKey = new NamespacedKey(this, "power-dust");
        Bukkit.getPluginManager().registerEvents(new SuperSMPListener(this), this);
        getCommand("supersmpconfig").setExecutor(new ConfigCommand(this));
        getCommand("supersmpconfig").setTabCompleter(new ConfigCommand(this));
        getCommand("givereroll").setExecutor(new GiveRerollCommand(this));
        getCommand("givereroll").setTabCompleter(new GiveRerollCommand(this));
        getCommand("ability1").setExecutor(new AbilityCommand(this, 1));
        getCommand("ability2").setExecutor(new AbilityCommand(this, 2));
        getCommand("withdraw").setExecutor(new WithdrawCommand(this));
        TrustCommand trustCommand = new TrustCommand(this);
        getCommand("trust").setExecutor(trustCommand);
        getCommand("trust").setTabCompleter(trustCommand);
        Bukkit.getScheduler().runTaskTimer(this, () -> {
            for (Player player : Bukkit.getOnlinePlayers()) powerManager.applyPassive(player);
            damageMultipliers.entrySet().removeIf(entry -> entry.getValue() <= System.currentTimeMillis());
            multiplierValues.keySet().removeIf(uuid -> !damageMultipliers.containsKey(uuid));
        }, 20L, 100L);
    }

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

    public void setDamageMultiplier(Player player, double multiplier, int seconds) {
        multiplierValues.put(player.getUniqueId(), multiplier);
        damageMultipliers.put(player.getUniqueId(), System.currentTimeMillis() + seconds * 1000L);
    }
    public double damageMultiplier(Player player) {
        if (damageMultipliers.getOrDefault(player.getUniqueId(), 0L) <= System.currentTimeMillis()) return 1.0;
        return multiplierValues.getOrDefault(player.getUniqueId(), 1.0);
    }
    public boolean isBuildingLocked(Player player) { return false; }
    public ConfigService config() { return config; }
    public ProfileManager profiles() { return profiles; }
    public TrustManager trust() { return trust; }
    public CooldownManager cooldowns() { return cooldowns; }
    public PowerManager powerManager() { return powerManager; }
    public AbilityService abilities() { return abilities; }
    public ConfigGUI configGUI() { return configGUI; }
    public NamespacedKey rerollKey() { return rerollKey; }
    public NamespacedKey dustKey() { return dustKey; }
}