[SPIGOT-2790] Bukkit.createMap(World) always returns a MapView with ID 0 Created: 18/Nov/16  Updated: 18/Nov/16  Resolved: 18/Nov/16

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

Type: Bug Priority: Minor
Reporter: trainphreak Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: id, mapview
Environment:

Freshly compiled Spigot server built with BuildTools #55. No plugins were running other than the attached demo plugin.


Attachments: File MapCreateTest.jar     Text File latest.log    

 Description   

-SPIGOT-1569- is back.

After calling Bukkit.createMap(World) [which returns a MapView], calling MapView.getId() on the returned object will always return a value of zero.

There was a demo plugin that was attached to 1569 that I have reattached here for convenience. I have repasted the decompiled plugin code here as the paste linked in 1569 no longer exists. The only editing I did was for formatting.

The latest.log shows the output of the demo plugin, which was the only plugin running.


Generated at Sat Dec 13 15:19:49 UTC 2025 using Jira 10.3.13#10030013-sha1:56dd970ae30ebfeda3a697d25be1f6388b68a422.