From f9fb4b6c983ff9868a193e792625379b1d4020a2 Mon Sep 17 00:00:00 2001 From: Rsl1122 Date: Sat, 21 Sep 2019 11:17:10 +0300 Subject: [PATCH] Fixed /players query --- .../database/queries/objects/NetworkTablePlayersQuery.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Plan/common/src/main/java/com/djrapitops/plan/storage/database/queries/objects/NetworkTablePlayersQuery.java b/Plan/common/src/main/java/com/djrapitops/plan/storage/database/queries/objects/NetworkTablePlayersQuery.java index eda2fd04c..e65d6aa1e 100644 --- a/Plan/common/src/main/java/com/djrapitops/plan/storage/database/queries/objects/NetworkTablePlayersQuery.java +++ b/Plan/common/src/main/java/com/djrapitops/plan/storage/database/queries/objects/NetworkTablePlayersQuery.java @@ -79,7 +79,7 @@ public class NetworkTablePlayersQuery implements Query> { FROM + SessionsTable.TABLE_NAME + " s" + GROUP_BY + "s." + SessionsTable.USER_UUID; - String selectBanned = SELECT + "ub." + UserInfoTable.USER_UUID + + String selectBanned = SELECT + DISTINCT + "ub." + UserInfoTable.USER_UUID + FROM + UserInfoTable.TABLE_NAME + " ub" + WHERE + UserInfoTable.BANNED + "=?";