hollow253732

Create a simple Minecraft plugin with a /hello command that sends a welcome message

Kodari AI
KodariMay 19 at 11:23 pm 2,895 (v2)

I’ll create a simple Minecraft plugin with a /hello command. Let me first check the current plugin structure.

I’ll simplify this to a basic plugin with just a /hello command.

[Generation stopped]

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
20 1,491
src/main/java/com/smpstaff/SMPStaffPlugin.java
package com.smpstaff;

import com.smpstaff.commands.HelloCommand;
import org.bukkit.plugin.java.JavaPlugin;

public class SMPStaffPlugin extends JavaPlugin {
    
    @Override
    public void onEnable() {
        getCommand("hello").setExecutor(new HelloCommand());
        getLogger().info("Plugin has been enabled!");
    }
    
    @Override
    public void onDisable() {
        getLogger().info("Plugin has been disabled!");
    }
}