public boolean onCommand(CommandSender sender, Command command,
			String label, String[] args) {
		if (!plugin.hasPerm(sender, "clear", true)) {
			sender.sendMessage(ChatColor.YELLOW
					+ "You do not have permission to use /" + label);
			return true;
		}

		if (args.length == 0)
			return false;

		if (plugin.playerMatch(args[0]) != null) {
			Player p = plugin.getServer().getPlayer(args[0]);
			p.getInventory().clear();
			if (plugin.isPlayer(sender)) {
				Player player = (Player) sender;
				player.sendMessage(CraftEssence.premessage + p.getName()
						+ "'s inventory is cleared.");
				p.sendMessage(ChatColor.GRAY + player.getName()
						+ " cleared your inventory");
			} else {
				plugin.logger(Level.INFO, p.getName()
						+ "'s inventory is cleared.");
				p.sendMessage(ChatColor.GRAY
						+ "Your inventory has been cleared.");
			}

		} else {
			if (plugin.isPlayer(sender)) {
				Player player = (Player) sender;
				player.sendMessage(CraftEssence.premessage
						+ "Player is offline or not found");
			} else {
				plugin.logger(Level.INFO, "Player is offline or not found");
			}
		}
		return true;
	}