public void doSet(Grid grid, CommandSender sender, Pad pad,
			String[] commands) {

		/*
		 * for ( int i = 0; i < commands.length; i++ ) { System.out.println(
		 * Integer.toString(i) + ": " + commands[i] ); }
		 */

		if (commands.length == 0) {
			sender.sendMessage(Grid.getChatPrefix()
					+ "ERROR: No arguments provided.");
			sender.sendMessage(Grid.getChatPrefix()
					+ "See '/grid pad' for help.");
		} else {

			if (commands[0].equalsIgnoreCase("name")) {
				// Check that we have permission to use this command.
				if ( !sender.hasPermission( "grid.pad.set.name" ) ) {
					sender.sendMessage(Grid.getChatPrefix() + "You do not have permission to use this command..");
					return;
				}
				// Otherwise..
				if (commands.length < 2) {
					sender.sendMessage(Grid.getChatPrefix()
							+ "ERROR: Invalid arguments provided.");
					sender.sendMessage(Grid.getChatPrefix()
							+ "See '/grid pad' for help.");
					return;
				}
				setPadName(grid, sender, pad, commands[1]);
			} else if (commands[0].equalsIgnoreCase("visibility")) {
				setPadVisibility(grid, sender, pad, commands[1]);
			} else if (commands[0].equalsIgnoreCase("description")) {
				setPadDescription(grid, sender, pad, commands[1]);
			} else if (commands[0].equalsIgnoreCase("owner")) {
				setPadOwner(grid, sender, pad, commands[1]);
			} else if (commands[0].equalsIgnoreCase("password")) {
				setPadPassword(grid, sender, pad, commands[1]);
			} else {
				sender.sendMessage(Grid.getChatPrefix()
						+ "ERROR: Unrecognised command..");
				return;
			}

		}

	}