public static void handleChannelLeaveEvent(ChannelLeaveEvent event)
	{
		String playerName = event.getPlayer();
		ChatChannel chatChannel = event.getChatChannel();
		String channelName = chatChannel.getName();

		Bukkit.getServer().getPluginManager().callEvent(event);
		if (!event.isCancelled())
		{
			chatChannel.removeMember(playerName);
			if (!chatChannel.isPermanent())
			{
				if (chatChannel.getChatMembers().size() <= 0)
				{
					ChannelDeleteEvent deleteEvent = new ChannelDeleteEvent(chatChannel, null);
					handleChannelDeleteEvent(deleteEvent);
				}
			}
			if (!channelName.equalsIgnoreCase(ChatManager.GLOBAL_CHAT_CHANNEL))
			{
				if (PlayerHandler.isOnline(playerName))
				{
					ChatChannel globalChatChannel = ChatManager.channelHandler.getChannel(ChatManager.GLOBAL_CHAT_CHANNEL);
					ChatManager.channelHandler.addPlayerToChannel(playerName, globalChatChannel);
					PlayerHandler.getData(playerName).setChatChannel(ChatManager.GLOBAL_CHAT_CHANNEL);
					if (globalChatChannel.allowJoinLeaveMessages())
					{
						globalChatChannel.sendToMembers(StringUtil.formatColorCodes(String.format("&7%s has joined the Channel!", playerName)));
					}
				}
			}
			if (chatChannel.allowJoinLeaveMessages()) //Check for allowing of Join-Leave messages
			{
				chatChannel.sendToMembers(StringUtil.formatColorCodes(String.format("&7%s has left the chat.", playerName))); //Notify all users that user has left
			}
		}
	}