-
New Feature
-
Resolution: Won't Fix
-
Minor
-
None
-
None
-
Ubuntu Desktop 14.04 LTS x64, Oracle Java 8
-
N/A
I am working on a plugin that needs to get the UUIDs of players when the players are offline, in order to do this the plugin needs to check if it needs to fetch the UUID from Mojang or calculate the offline mode UUID. On non-bungee enabled instances, this works fine with getOnlineMode(). However, in the configuration where there is a Spigot server with online-mode set to false and bungeecord set to true, the server is using Online UUIDs in the getUniqueId() method (which the plugin uses when a player is online) but getOnlineMode() still returns false, hence any modifications made to a player's data when they are offline are not used when the player joins.
I am requesting, to solve this issue, that a method be added to the org.bukkit.Server class called getBungeeCordMode() that simply returns the value for "bungeecord" in spigot.yml.