[SPIGOT-489] Unable to get Server ID Created: 28/Jan/15  Updated: 30/Jan/15  Resolved: 30/Jan/15

Status: Closed
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: MattBDev Assignee: Thinkofname
Resolution: Invalid Votes: 0
Labels: Craftbukkit, bug, bukkit, spigot


 Description   

I am trying to get the server ID to verify a UUID for a player but using Bukkit.getServerId() is returning either a blank ID or an invalid ID. I think it results to some code in CraftBukkit trying to get the server ID from a configuration property. I am not sure why it would be trying to grab the ID from a configuration because each server has a unique ID to identify itself.



 Comments   
Comment by Thinkofname [ 30/Jan/15 ]

getServerId() doesn't return the serverId you think it does. Its just for plugin use, not the parameter to the session server (which actually isn't a server id either anymore, its built up during the handshake per a player)

Comment by MattBDev [ 28/Jan/15 ]

I've already looked at that and the method I am trying to use is not located there. The way I am fetching the UUID requires the unique serverID that minecraft servers are assigned on load. I don't have access to that right now because for some reason Bukkit thinks it is a configurable thing, which it isn't.

Comment by Black Hole [ 28/Jan/15 ]

Have a look at this: http://wiki.vg/Mojang_API

Comment by MattBDev [ 28/Jan/15 ]

I am trying to fetch the UUID from Mojang servers because some servers remain in offline mode and retrieving a UUID from offline mode will never produce the same UUID if someone changes their name.

Generated at Mon Apr 07 22:29:18 UTC 2025 using Jira 10.3.3#10030003-sha1:d220e3fefc8dfc6d47f522d3b9a20c1455e12b7b.