public boolean deop(String playerName) {
    try {
      OfflinePlayer p = Bukkit.getOfflinePlayer(playerName);

      if (p.isOnline()) {
        p.getPlayer().sendMessage("You are no longer OP");
      }

      p.setOp(false);
      return true;
    } catch (Exception e) {
      return false;
    }
  }