@Override
	public void executeCommand(CommandSender sender, Command cmd, String[] args){
		CommandHelper helper = new CommandHelper(sender, cmd);
		
		Player player = (Player) sender;
		
		//Usage: /ghostsquadron map <create/delete> <name>
		if(args.length == 3){
			if(args[0].equalsIgnoreCase("map")){
				if(args[1].equalsIgnoreCase("create")){
					if(MapUtils.isMap(args[2])){
						PlayerUtils.sendMessage(player, ChatColor.RED + "The map '" + args[2] + "' already exists!");
						
						return;
					} else {
						Selection selection = WorldEditUtils.getWorldEdit().getSelection(player);
						
						if(selection != null){
							MapUtils.createMap(args[2], selection);
							PlayerUtils.sendMessage(player, ChatColor.GREEN + "Created map with the name '" + args[2] + "'! Now set the spawns!");
							MapUtils.loadMaps();
							return;
						} else {
							PlayerUtils.sendMessage(player, ChatColor.RED + "Select a region with WorldEdit first!");
							return;
						}						
					}
				} else if(args[1].equalsIgnoreCase("delete")){
					if(MapUtils.isMap(args[2])){
						MapUtils.deleteMap(args[2]);
						PlayerUtils.sendMessage(player, ChatColor.GREEN + "Successfully deleted the map with the name '" + args[2] + "'!");
						MapUtils.loadMaps();
						return;
					} else {
						PlayerUtils.sendMessage(player, ChatColor.RED + "Could not find the map '" + args[2] + "'!");
						return;
					}
				}
			}
			
			helper.wrongArguments();
			return;
		}
		
		helper.unknownCommand();
		
		return;
	}