mirror of https://github.com/Minestom/Minestom.git
16 lines
409 B
Java
16 lines
409 B
Java
package net.minestom.demo.commands;
|
|
|
|
import net.minestom.server.command.builder.Command;
|
|
import net.minestom.server.entity.Player;
|
|
|
|
public class ConfigCommand extends Command {
|
|
public ConfigCommand() {
|
|
super("config");
|
|
|
|
setDefaultExecutor((sender, context) -> {
|
|
if (!(sender instanceof Player player)) return;
|
|
player.startConfigurationPhase2();
|
|
});
|
|
}
|
|
}
|