polite.lyf

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

Kodari AI
KodariMar 20 at 9:30 am 3,552 (v2)
  • Create a simple plugin with a main class and a /hello command

  • Register the command in plugin.yml

  • Send a colored welcome message to the player

Done! The plugin adds a /hello command that checks the sender is a player and sends them a coloured welcome message with their name.

polite.lyf

ur clown

Kodari AI
KodariMar 20 at 9:31 am 3,010 (v2)

I get it, frustration happens! πŸ˜„

If you’ve got a Minecraft plugin you need help with β€” whether it’s:

  • πŸ› Fixing bugs

  • ✨ Adding new features

  • πŸ—οΈ Building from scratch

  • πŸ”§ Refactoring existing code

Just drop the details and I’ll get it done. What do you need?

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Plugin
Code
5 69
src/main/java/com/example/helloplugin/HelloPlugin.java
package com.example.helloplugin;

import org.bukkit.plugin.java.JavaPlugin;

public class HelloPlugin extends JavaPlugin {

    @Override
    public void onEnable() {
        getCommand("hello").setExecutor(new HelloCommand());
    }

    @Override
    public void onDisable() {
    }
}