NullValkyrie/src/main/java/com/night/nullvalkyrie/commands/CraftCommand.java
2022-07-07 23:22:56 +01:00

32 lines
742 B
Java

package com.night.nullvalkyrie.commands;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import java.util.List;
public class CraftCommand extends Command {
public CraftCommand() {
super(
"craft",
new String[]{"ct", "crafting", "craftingtable"},
"Open crafting table",
""
);
}
@Override
public void onCommand(CommandSender sender, String[] args) {
if(sender instanceof Player) {
Player player = (Player) sender;
player.openWorkbench(null, true);
}
}
@Override
public List<String> onTabComplete(CommandSender sender, String[] args) {
return null;
}
}