@Override
	public void execute(CommandSender sender, String[] arg1) {
		if (!CommandUtil.hasPermission(sender, PERMISSION_NODES)) {
			sender.sendMessage(plugin.NO_PERMISSION);
			return;
		}
		try {
			if(plugin.getUtilities().chatChannelExists(arg1[0])){
				sender.sendMessage(plugin.CHANNEL_ALREADY_EXISTS);
				return;
			}
		} catch (SQLException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		if (plugin.getChatPlayer(sender.getName()).getChannelsOwned() >= plugin.maxCustomChannels
				&& !CommandUtil.hasPermission(sender, PERMISSION_NODES_OVERRIDE)) {
			sender.sendMessage(plugin.CHANNEL_TOO_MANY);
			return;
		}
		if (arg1.length == 1) {
			String name = arg1[0];
			plugin.getUtilities().createChannel(name, plugin.defaultCustomChannelFormat, false, sender.getName());
			
			String chmsg = plugin.CHANNEL_CREATE_CONFIRM;
			chmsg = chmsg.replace("%channel", name);
			sender.sendMessage(chmsg);
		} else if (arg1.length == 2) {
			String name = arg1[0];
			String format = arg1[1];
			try {
				if(plugin.getUtilities().chatChannelExists(arg1[0])){
					sender.sendMessage(plugin.CHANNEL_ALREADY_EXISTS);
					return;
				}
			} catch (SQLException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
			plugin.getUtilities().createChannel(name, format, false, sender.getName());
			
			String chmsg = plugin.CHANNEL_CREATE_CONFIRM;
			chmsg = chmsg.replace("%channel", name);
			sender.sendMessage(chmsg);
		} else
			sender.sendMessage(ChatColor.RED + "/" + plugin.create + " (channel) [format]");
	}