Minestom/src/main/java/fr/themode/demo/commands/SimpleCommand.java

19 lines
449 B
Java
Raw Normal View History

2020-04-05 10:15:21 +02:00
package fr.themode.demo.commands;
2020-04-24 03:25:58 +02:00
import net.minestom.server.command.CommandProcessor;
import net.minestom.server.entity.Player;
2020-04-05 10:15:21 +02:00
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!");
2020-04-09 14:25:42 +02:00
2020-04-05 10:15:21 +02:00
return true;
}
}