Limit returned usernames to 1

This commit is contained in:
akastijn 2025-10-21 22:48:21 +02:00
parent a55806e5dd
commit b71ea7da8b

View File

@ -12,7 +12,8 @@ public interface RecentNamesMapper {
SELECT DISTINCT name AS username
FROM litebans_history
WHERE uuid = #{uuid}
ORDER BY date DESC;
ORDER BY date DESC
LIMIT 1;
""")
String getUsername(@Param("uuid") String uuid);