sarow_real

Make a plugin that adds tsunamis to the game you can give you a tsunami spawn egg with the command /cts give username or coictsunami give username and it gives you a spawnegg that is called tsunami spawnegg when you place it down it first open a menu where you can customise your tsunami and when you press on spawn it spawns it also when you type /cts give direct username or /coictsunami give direct username it gives another spawnegg other colour that directly spawns a tsunami without configuration also there's a command /cts help or /coictsunami help that shows all commands and another one that is /cts list or /coictsunami list that shows all tsunamis 1 2 3... Shows the coordinates and if you click on teleport it teleports you to the location also make a command /cts remove 1/2/3.... /coictsunami remove 1/2/3... And it removes the following tsunami also the tsunami is water and drowns you if your in it and kill thes you also in the menu you can make that the tsunami is not weather but that it is lava and you can customise the speed and more.the plugin name is Coictsunamis and the author is coikinator

Kodari AI
KodariJan 2 at 11:41 pm

I’ll create a comprehensive tsunami plugin with customizable natural disasters.

Coictsunamis
A plugin that adds customizable tsunamis to Minecraft. Players can spawn tsunamis using special spawn eggs with configurable parameters including liquid type (water/lava), speed, and size. Features include configuration menus, tsunami tracking with teleportation, and automatic damage/drowning mechanics. Includes comprehensive commands for giving spawn eggs, listing active tsunamis, and managing disasters.
sarow_real

Validation failed for compilation: Compilation failed with 3 error(s):

ERROR in src/main/java/com/coikinator/coictsunamis/CoictsunamisPlugin.java at line 3: package com.coikinator.coictsunamis.commands does not exist import com.coikinator.coictsunamis.commands.TsunamiCommand; ^

ERROR in src/main/java/com/coikinator/coictsunamis/CoictsunamisPlugin.java at line 4: package com.coikinator.coictsunamis.listeners does not exist import com.coikinator.coictsunamis.listeners.SpawnEggListener; ^

ERROR in src/main/java/com/coikinator/coictsunamis/CoictsunamisPlugin.java at line 5: package com.coikinator.coictsunamis.listeners does not exist import com.coikinator.coictsunamis.listeners.TsunamiDamageListener; ^

=== COMPILATION ERROR ANALYSIS ===

FILES TO INVESTIGATE: - src/main/java/com/coikinator/coictsunamis/CoictsunamisPlugin.java exceeds maximum

Kodari AI
KodariJan 2 at 11:42 pm 6,743 (v2)

I need to read the plugin file to understand what the missing classes should do, then create them.

Now I’ll create the three missing classes: TsunamiCommand, SpawnEggListener, and TsunamiDamageListener.

sarow_real

So first the direct command doesn't work the help command is ugly there is no menu and if you write /cts the commands dont show up and the biggest problem is that it doesn't spawn a tsunami but it spawns a big water wall I want a tsunami like in real life

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
11 617
src/main/java/com/coikinator/coictsunamis/CoictsunamisPlugin.java
package com.coikinator.coictsunamis;

import com.coikinator.coictsunamis.commands.TsunamiCommand;
import com.coikinator.coictsunamis.listeners.SpawnEggListener;
import com.coikinator.coictsunamis.listeners.TsunamiDamageListener;
import com.coikinator.coictsunamis.managers.TsunamiManager;
import lombok.Getter;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class CoictsunamisPlugin extends JavaPlugin {
    
    private TsunamiManager tsunamiManager;
    private String prefix;
    
    @Override
    public void onEnable() {
        saveDefaultConfig();
        
        prefix = getConfig().getString("prefix", "&8[&bCoictsunamis&8]&r ");
        
        this.tsunamiManager = new TsunamiManager(this);
        
        getCommand("cts").setExecutor(new TsunamiCommand(this));
        
        getServer().getPluginManager().registerEvents(new SpawnEggListener(this), this);
        getServer().getPluginManager().registerEvents(new TsunamiDamageListener(this), this);
        
        tsunamiManager.startTsunamiTask();
        
        getLogger().info("Coictsunamis has been enabled!");
    }
    
    @Override
    public void onDisable() {
        if (tsunamiManager != null) {
            tsunamiManager.removeAllTsunamis();
        }
        getLogger().info("Coictsunamis has been disabled!");
    }
    
    public String getMessage(String path) {
        return colorize(prefix + getConfig().getString("messages." + path, path));
    }
    
    public String getMessage(String path, String... replacements) {
        String message = getMessage(path);
        for (int i = 0; i < replacements.length; i += 2) {
            if (i + 1 < replacements.length) {
                message = message.replace("{" + replacements[i] + "}", replacements[i + 1]);
            }
        }
        return message;
    }
    
    public String colorize(String text) {
        return text.replace('&', '§');
    }
}