From 7f117b3557aa9c9e2ec7dbe50c32921b8ae0d3e0 Mon Sep 17 00:00:00 2001 From: Dumbo52 Date: Sat, 27 Jun 2015 22:33:28 -0400 Subject: [PATCH] Fix open modreq limit. --- src/nu/nerd/modreq/database/RequestTable.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nu/nerd/modreq/database/RequestTable.java b/src/nu/nerd/modreq/database/RequestTable.java index 1219d75..db714b6 100644 --- a/src/nu/nerd/modreq/database/RequestTable.java +++ b/src/nu/nerd/modreq/database/RequestTable.java @@ -46,7 +46,7 @@ public List getMissedClosedRequests(UUID uuid) { public int getNumRequestFromUser(UUID uuid) { int retVal = 0; - Query query = plugin.getDatabase().find(Request.class).where().ieq("playerName", uuid.toString()).in("status", RequestStatus.OPEN).query(); + Query query = plugin.getDatabase().find(Request.class).where().ieq("playerUUID", uuid.toString()).in("status", RequestStatus.OPEN).query(); if (query != null) { retVal = query.findRowCount();