package me.yaruma.fightsystem.commands; import org.bukkit.command.Command; import org.bukkit.command.CommandExecutor; import org.bukkit.command.CommandSender; import org.bukkit.entity.Player; public class InviteCommand implements CommandExecutor { @Override public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { if(!(sender instanceof Player)) { return false; } Player player = (Player) sender; if(args.length != 1){ Commands.sendHelp(player); return false; } Commands.invite(player, args[0]); return false; } }