chasedangertv

Can you make me a plugin that fills every empty slot in my inventory to be stacks of string by typing /string. I would also like a 30 second time to wait between typing the command, and have a bypass on that time with a whitelist system, where only names I add can bypass the time limit. Add the name chasedangertv

Kodari AI
KodariApr 13 at 9:43 am 4,722 (v2)

I’ll create a plugin that fills empty inventory slots with stacks of string using the /string command with a 30-second cooldown and whitelist bypass system.

StringFiller
A simple utility plugin that fills empty inventory slots with stacks of string items via the /string command. Features a 30-second cooldown system with whitelist bypass functionality for specific players. Includes configurable messages and whitelist management through config.yml.

Plugin created! This adds a /string command that fills all empty inventory slots with 64 stacks of string. Players not on the whitelist must wait 30 seconds between uses, while “chasedangertv” can use it without cooldown. Configure additional whitelist names in config.yml.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
6 203
src/main/java/com/example/stringfiller/StringFillerPlugin.java
package com.example.stringfiller;

import lombok.Getter;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class StringFillerPlugin extends JavaPlugin {
    private CooldownManager cooldownManager;
    
    @Override
    public void onEnable() {
        saveDefaultConfig();
        
        this.cooldownManager = new CooldownManager();
        
        StringCommand stringCommand = new StringCommand(this);
        getCommand("string").setExecutor(stringCommand);
        
        getLogger().info("StringFiller has been enabled!");
    }
    
    @Override
    public void onDisable() {
        getLogger().info("StringFiller has been disabled!");
    }
}