public static Player playerMatch(String name)
  {
    Player[] online = iConomy.getBukkitServer().getOnlinePlayers();
    Player lastPlayer = null;

    for (Player player : online) {
      String playerName = player.getName();

      if (playerName.equalsIgnoreCase(name)) {
        lastPlayer = player;
        break;
      }

      if (playerName.toLowerCase().indexOf(name.toLowerCase()) != -1) {
        if (lastPlayer != null) {
          return null;
        }

        lastPlayer = player;
      }
    }

    return lastPlayer;
  }