UUID Converter [Urgent!]

Status
This thread has been locked.

Beer

⚔️ StellarDev ⚔️
Banned
Feedback score
30
Posts
373
Reactions
354
Resources
0
Hello, McMarket.

The Problem
So basically, I have a problem with the UUIDs on my server. For my previous release, we were on a bungeecord network, but we forgot to change 'bungeecord: true' in my spigot.yml. This caused all of the UUIDs to be generated as offline uuids. We're doing a reset now, but I need all of the UUIDs to be converted to online UUIDs so players don't lose their ranks and perks that they got.

What I Need Made (Skip here if you don't care about the story.)
I need a program, script, or plugin that can convert all of my GroupManager Offline UUIDs to the correct online UUIDs.

Example:
2221a06d-3678-356b-88d7-9c93fe46f0c0:
lastname: ab2ab
group: Default
subgroups:
- drone
permissions:
- jellylegs.use
info:
prefix: §8(§bDrone§8) §b

Needs to be converted to:
1b2049d9-927e-4410-ab19-b3a50e542a88:
lastname: ab2ab
group: Default
subgroups:
- drone
permissions:
- jellylegs.use
info:
prefix: §8(§bDrone§8) §b



If anybody could make this, that would be great! Just name a price!
 
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

Beer

⚔️ StellarDev ⚔️
Banned
Feedback score
30
Posts
373
Reactions
354
Resources
0
Hm, not entirely sure if you can convert an offline UUID to an online one. Let me check some things.
I was starting to make something on it actually, so it is possible.
Becuase GroupManager provides "lastname" you can get the real uuid of the player from here: https://mcapi.ca/uuid/player/BeerFish

Then all you would have to do is replace the old one with the one from there. I just don't know how to make it replace the old one. :p
 
Banned forever. Reason: Malicious use of backdoors

NonameSLdev

Feedback score
0
Posts
108
Reactions
43
Resources
0
Hm, not entirely sure if you can convert an offline UUID to an online one. Let me check some things.

Edit: so I found out that the offline UUIDs are an MD-5 hash of 'OfflinePlayer:username' and that trying to convert that hash into the actual UUID might be impossible. However, it would be interesting to try and grab that offline UUID, and once the player logs onto the server correct their stored UUID to their actual one. That might work out possibly.
Surely there is a way as I saw a class of doing this but can't remember of it, and also http://mcuuid.net/?q=ab2ab
 

Beer

⚔️ StellarDev ⚔️
Banned
Feedback score
30
Posts
373
Reactions
354
Resources
0
Last edited:
Banned forever. Reason: Malicious use of backdoors

Chearful

thomas.gg
Supreme
Feedback score
115
Posts
1,398
Reactions
2,236
Resources
0
How many players need to be converted over? Might be able to make something nifty.
 

JungleSociety

Feedback score
0
Posts
75
Reactions
17
Resources
0
May I ask how you are going to achieve this? It's not possible, only Spigot can do it.
I've done a few plugins similar to this before. Technically one was a program not a plugin, but same concept. I simply just go through the Group Manager files and try to match up the UUID key's to their names real UUID. If they don't match, then I change the it to the real UUID. Not exactly the most complex plugin. You can find UUID's based on player names if they are Offline using mojang's API.
 

Ivann

Feedback score
1
Posts
15
Reactions
9
Resources
0
I can write a nifty converter script for you. Add me on Skype if you're interested: ikbenivan
 
Status
This thread has been locked.
Top