EpicHeads/main/java/com/songoda/epicheads/command/commands/CommandOpenMenu.java
Brianna O'Keefe 83a77b3578 Replaced existing commandManager with my CommandManager v2
Replaced localization system with mine.
2018-09-20 21:42:20 -04:00

39 lines
940 B
Java

package com.songoda.epicheads.command.commands;
import com.songoda.epicheads.EpicHeads;
import com.songoda.epicheads.command.AbstractCommand;
import com.songoda.epicheads.oldmenu.mode.InvModeType;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
public class CommandOpenMenu extends AbstractCommand {
public CommandOpenMenu() {
super("EpicHeads", null, true);
}
@Override
protected ReturnType runCommand(EpicHeads instance, CommandSender sender, String... args) {
if (args.length != 0) return ReturnType.SYNTAX_ERROR;
InvModeType.GET.open((Player) sender);
return ReturnType.SUCCESS;
}
@Override
public String getPermissionNode() {
return "epicheads.menu";
}
@Override
public String getSyntax() {
return "/heads";
}
@Override
public String getDescription() {
return "Open the heads menu.";
}
}