@Override
	public boolean onCommand(CommandSender sender, Command cmd, String label,
			String[] args)
	{
		Player toPrint = null;

		if (args.length == 1)
		{
			toPrint = plugin.getServer().getPlayerExact(args[0]);

			// player not found
			if (toPrint == null)
			{
				OfflinePlayer offlinePlayer = Bukkit.getOfflinePlayer(args[0]);
				if (offlinePlayer.getLastPlayed() == 0)
					sender.sendMessage("Cannot find player '" + args[0] + "'");
				else
				{
					sender.sendMessage(offlinePlayer.getName() + " is offline.");
				}
				return true;
			}

			// player is found and online
			printPlayerCoordinates(toPrint);
			return true;
		}

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

		if (!(sender instanceof Player))
		{
			sender.sendMessage("Must be a player to broadcast your coordinates.");
			return true;
		}

		toPrint = (Player) sender;
		printPlayerCoordinates(toPrint);
		return true;
	}