@SubCommandHandler(name = "invite", parent = "channel", permission = "multichat.channel.invite")
	public void InviteChannel(Player player, String[] commandArgs)
	{
		String playerName = player.getName();
		String playerDisplayName = player.getDisplayName();
		if (commandArgs.length > 1 && !commandArgs[1].isEmpty())
		{
			String invitedPlayer = commandArgs[1];
			if (PlayerHandler.isOnline(invitedPlayer))
			{
				ChatChannel invitingChannel = ChatManager.channelHandler.getChannel(PlayerHandler.getData(playerName).getChatChannel());
				String invitingChannelName = invitingChannel.getName();
				if (!invitingChannelName.equalsIgnoreCase(ChatManager.GLOBAL_CHAT_CHANNEL))
				{
					if (ChatManager.channelHandler.addChannelInvitation(invitingChannelName, playerName, invitedPlayer))
					{
						PlayerHandler.getPlayer(invitedPlayer).sendMessage(StringUtil.formatColorCodes(String.format("&a%s&e has invited you to join their chat channel.", playerDisplayName)));
						PlayerHandler.getPlayer(invitedPlayer).sendMessage(StringUtil.formatColorCodes("&eTo accept, type &a/channel accept"));
						PlayerHandler.getPlayer(invitedPlayer).sendMessage(StringUtil.formatColorCodes("&eTo deny type &c/channel deny"));
						player.sendMessage(StringUtil.formatColorCodes(String.format("&a%s has been invited to join your channel.", playerDisplayName)));
					}
					else
					{
						player.sendMessage(StringUtil.formatColorCodes(String.format("&cFailed to invite &e%s&c to your channel.", invitedPlayer)));
					}
				}
				else
				{
					player.sendMessage(StringUtil.formatColorCodes("&cYou can't invite players to join the global chat channel."));
				}
			}
			else
			{
				player.sendMessage(StringUtil.formatColorCodes(String.format("&e%s &cis offline; &e%s &cneeds to be online to invite them to your channel", invitedPlayer)));
			}
		}
		else
		{
			player.sendMessage(StringUtil.formatColorCodes("&cThe proper usage is &e/channel invite <name>"));
		}
	}