mirror of https://github.com/Minestom/Minestom.git
18 lines
448 B
Java
18 lines
448 B
Java
package fr.themode.demo.commands;
|
|
|
|
import fr.themode.minestom.command.CommandProcessor;
|
|
import fr.themode.minestom.entity.Player;
|
|
|
|
public class SimpleCommand implements CommandProcessor {
|
|
@Override
|
|
public String getCommandName() {
|
|
return "test";
|
|
}
|
|
|
|
@Override
|
|
public boolean process(Player player, String command, String[] args) {
|
|
player.sendMessage("You tried the sample command!");
|
|
return true;
|
|
}
|
|
}
|