From 4fbf04413d68446777832b6c980bfac7879903c1 Mon Sep 17 00:00:00 2001 From: peterbell10 Date: Fri, 20 Jul 2018 00:30:09 +0100 Subject: Make offline UUIDs consistent with vanilla. (#4178) Fixes #4177 This is a breaking change to existing Cuberite permissions settings. --- src/ClientHandle.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/ClientHandle.cpp') diff --git a/src/ClientHandle.cpp b/src/ClientHandle.cpp index ff649ea4d..bbcb64d33 100644 --- a/src/ClientHandle.cpp +++ b/src/ClientHandle.cpp @@ -273,11 +273,9 @@ cUUID cClientHandle::GenerateOfflineUUID(const AString & a_Username) // Online UUIDs are always version 4 (random) // We use Version 3 (MD5 hash) UUIDs for the offline UUIDs // This guarantees that they will never collide with an online UUID and can be distinguished. + // This is also consistent with the vanilla offline UUID scheme. - // First make the username lowercase: - AString lcUsername = StrToLower(a_Username); - - return cUUID::GenerateVersion3(lcUsername); + return cUUID::GenerateVersion3("OfflinePlayer:" + a_Username); } -- cgit v1.2.3