-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
None
-
None
-
Windows 10 Home (64-bit)
-
This server is running CraftBukkit version 4045-Spigot-c198da2-38fd4bd (MC: 1.20.4) (Implementing API version 1.20.4-R0.1-SNAPSHOT)
-
GetEntityBug
-
Yes
getEntity can return null when passed a player's UUID, but getPlayer works appropriately.
Tested on a Spigot instance that has no other plugins than the test plugin I have included. I also included the single source file that compiles into the plugin.
I used the PlayerJoinEvent as that is where I am calling the function in my actual plugin. This is a fairly new bug, having not encountered this last week, maven updated my dependencies and this started to manifest.
[12:49:55] [Server thread/INFO]: Done (7.615s)! For help, type "help" [12:49:57] [User Authenticator #1/INFO]: UUID of player Zezzie is 70ebc367-1c09-465a-b68c-d744f8955188 [12:49:57] [Server thread/INFO]: [GetEntityBug] Bukkit#getEntity Null Pointer for Zezzie [12:49:57] [Server thread/INFO]: Bukkit#getPlayer Zezzie [12:49:57] [Server thread/INFO]: [GetEntityBug] Bukkit#getPlayer Zezzie Completed successfully [12:49:57] [Server thread/INFO]: Zezzie joined the game [12:49:57] [Server thread/INFO]: Zezzie[/127.0.0.1:50510] logged in with entity id 3 at ([world]-150.33132453658308, 64.0, -17.341289442337548)
Output from the test plugin into server console.