Can you do command that refreshes every 5s with player health and name and their position and all operators can view it view /map and it shows them gui of whole map and all players positon health and name ( show name and health when they put their mouse over them ) also show the head icon minecraft as the marker for the positon
This sounds like a Minecraft server plugin, but there are no projects in this workspace yet. Should I create a new plugin project for it, or will you add an existing project? If it’s new, what Minecraft version should it target?
new plugin folia 1.21.11
I’ve started a new Folia-compatible Minecraft 1.21.11 plugin project for /map. It will show player-head markers with name, health, and coordinates on hover, and refresh the open GUI every five seconds.
Inspect the starter structure and existing plugin conventions.
Implement the Folia-safe
/mapGUI, live player markers, and five-second refresh.Add only the metadata/dependencies needed for the project’s existing setup.Created the PlayerMap plugin with
/maprestricted to operators. It renders a 54-slot spatial overview with player-head markers and name, health, world, and exact XYZ details; players in the same map cell are grouped in that marker’s tooltip.
The map refreshes every five seconds, supports multiple viewers, and uses Paper/Folia region and entity schedulers for player data and GUI updates. Added plugin metadata, command permission, and Java 21/Paper 1.21.11 build configuration. No build was run.
The plugin is implemented and the build succeeded. Operators can use /map to view the map; player-head markers show names, health, world, and coordinates on hover, and the GUI refreshes every five seconds.
Is it possible to make it like a gui of the map like see the blocks like including ocean how it looks the whole map from bird view prespective and it shows
Yes. I can replace the abstract grid with a bird’s-eye terrain map showing land and ocean, with player positions and the existing hover details.
A single Minecraft map has limited coverage (up to roughly 2,048 × 2,048 blocks at its widest zoom). Should it show that area centered on the operator, or do you want a specific world area?
The map is from 1792x1792 and center 0 0
I’ve started an update to render the fixed 1792×1792 area centered at X=0, Z=0 as an actual overhead terrain map, including water and player locations. It will retain the five-second refresh and player details, while avoiding loading chunks just to draw the map.
Read the current manager, command/plugin setup, and Folia scheduling conventions.
Add a terrain-rendering view centered exactly on the requested bounds, with safe unloaded-chunk handling and visible player markers.
Preserve operator checks, five-second refresh, and hover details; document the map’s rendering limits.Implemented the terrain view in
MapManageras a 7×5 mosaic of filled-map tiles. It covers exactly X/Z -896 through +895, samples terrain on a 64×64 grid, colors surfaces by block type (including water), and overlays online players in the viewer’s world with visible map markers. Player heads alongside the mosaic retain each player’s name, health, and exact coordinates in their tooltip.
Player positions refresh every five seconds; terrain is resampled every 60 seconds. Gray areas indicate terrain that is unloaded or still being sampled. Sampling runs on the owning Folia region and checks for loaded chunks first, so the map does not load or generate chunks. The terrain is an overview rather than a block-by-block image. No build was run.
The map now shows a bird’s-eye terrain view in a 7×5 filled-map mosaic, covering X/Z -896 to +895 around the origin. It colors terrain and water, overlays player markers, and keeps player heads with name, health, and coordinates in their tooltips.
Terrain refreshes every 60 seconds; player positions refresh every five seconds. Unloaded or not-yet-sampled areas appear gray rather than forcing chunks to load. The updated plugin build succeeded.
No is it possible to supply some image to it and it shows like players on the map
Yes—an image can be the background, with live player markers overlaid. I’ve started adding support for a PNG file in the plugin’s data folder, fitted to the existing 1792×1792 area centered at 0,0. The current terrain view will remain the fallback if no image is provided.
how to provide image
Once the image support update is ready, put your PNG here on the server:
plugins/PlayerMap/map.png
Use a top-down image of the area: top = north (negative Z) and left = west (negative X). It will be scaled to cover coordinates -896 through +895 on both axes. Restart the server after adding or replacing it, then use /map. The update is still in progress, so that file won’t work with your currently installed plugin yet.
Can I get image on internetr or how do I take the image
You can use an image from the internet, but player markers will line up correctly only if the image shows your server’s actual world and coordinates. A random Minecraft map image can be used as a background, but the markers won’t correspond to its locations.
For an accurate image, generate or capture a top-down render of your world, using a mapping tool such as BlueMap or Dynmap, then crop it to the area from X/Z -896 to +895. Make it square, with north (negative Z) at the top and west (negative X) on the left.
When image support is ready, save the PNG as plugins/PlayerMap/map.png and restart the server. The update is still in progress, so the installed plugin may not recognize that file yet.
Inspect the map renderer and startup/lifecycle code.
Add asynchronous PNG preparation with safe fallback to terrain, preserving marker overlays and fixed coordinates.
Document the image path, orientation, scaling, and reload behavior.Added custom PNG backgrounds to
MapManagerand documented usage inREADME.md.
Place the image at plugins/PlayerMap/map.png. It loads asynchronously, fits the full image into a square for the fixed -896…+895 bounds, preserves aspect ratio with dark-gray fill where needed, and converts colors to Minecraft’s map palette. Live player markers remain overlaid, with head tooltips retaining player details. If the PNG is missing or invalid, the terrain background remains available; image mode skips terrain resampling once loaded and does not load or generate chunks.
The README covers orientation, scaling, reload behavior, fallback, and the 7×5 mosaic’s visual stretch. No build was run.
Image support is implemented, and the plugin build succeeded. Put your PNG at plugins/PlayerMap/map.png, then restart the server. Use a top-down image with north (−Z) at the top and west (−X) on the left; the plugin scales it to cover X/Z −896 through +895. Player markers appear over the image. If the file is missing or invalid, the terrain map remains the fallback.
Can you make it work with blue map and sample every 30 min a map update from the plugin image and supply it directly to the map and can you make a small marker that is movable the player head
Do you mean BlueMap’s web map should show live, movable player-head markers, or should BlueMap’s rendered view become the background in the in-game /map GUI?
Also, for the 30-minute update, should it refresh the existing plugins/PlayerMap/map.png file, or fetch/capture an image from BlueMap?
is it possible to connect the image fetched by bluemap
Yes. BlueMap renders map tiles rather than one PNG, so the plugin could collect the tiles for the area, assemble them into the map background, and refresh that image every 30 minutes. Player-head markers can continue moving with players as they move in-game.
Is BlueMap installed on the same server as this plugin, and which world should the map show?
its installed on the server as a plugin and it should show normal world and not other dimensions
I’ve started adding optional BlueMap support for the normal world only. The update will refresh the map background every 30 minutes and make the player-head markers move with player positions; the existing image/terrain fallback will remain if BlueMap imagery isn’t available.
…succeeded"/>Updated MapManager.java, plugin.yml, and README.md.
BlueMap is now an optional soft dependency, and PlayerMap logs a startup warning when it is enabled. I checked BlueMap’s public API: it exposes map/world metadata, render-task controls, and custom asset storage, but no supported method to read rendered tiles as image pixels. To avoid relying on private file layouts or guessed endpoints, BlueMap imagery and the requested 30-minute refresh are not implemented. The map continues to use map.png, then the existing terrain fallback; README documents this limitation.
Replaced the red dot with a small generated pixel-art head that tracks each player across map-tile boundaries. It is not the player’s actual skin texture; the companion player-head items retain the name, health, world, and coordinate details.
No build was run.
The update is implemented and builds successfully, but there’s an important limitation: BlueMap’s supported API doesn’t provide rendered map tiles as image data. To avoid relying on undocumented file paths or endpoints, this version does not fetch BlueMap imagery or refresh it every 30 minutes. The GUI continues to use plugins/PlayerMap/map.png, then falls back to terrain.
Player markers now move with players and look like small pixel-art heads. They aren’t the players’ actual skin textures; the companion head items still show player details on hover. BlueMap is optional, so it doesn’t prevent the plugin from running.
how is it possible bluemap imagery to map.png
It’s possible if BlueMap’s web map is accessible to the server. A background downloader could fetch the rendered tiles for the Overworld, stitch and crop them to the area around X/Z 0, then save the result as plugins/PlayerMap/map.png every 30 minutes. The player markers could still update separately in-game.
The catch is alignment: BlueMap renders a zoomable map, so its tiles aren’t automatically a north-up, block-aligned 1792×1792 image. The plugin would need the tile coordinates and projection settings to place player markers accurately. BlueMap’s public plugin API doesn’t provide those rendered pixels directly; fetching them would depend on the web map’s tile access and configuration.
The current plugin does not fetch BlueMap imagery yet—it only loads a supplied map.png or uses its terrain fallback. To assess the best route, I’d need the BlueMap web-map URL or to know whether its web server is enabled.
##
BlueMap ##
Webapp-Config ##
##
With this setting you can disable the creation and updating of all webapp related files.
Default is true
enabled: true
The webroot where the webapp files will be created.
Usually this should be set to the same directory like in the webserver.conf!
Default is "bluemap/web"
webroot: "bluemap/web"
Whether the settings.json of the webapp should be updated/synchronized with the current BlueMap settings.
If this is set to "false", BlueMap will only add maps to the settings.json but never remove unknown ones or update other settings.
Disabling this is for example useful if you are running multiple BlueMap instances on the same webroot and don't want them to overwrite each others maps.
Default is true
update-settings-file: true
If the webapp should use cookies to save the configurations of a user.
Default is true
use-cookies: true
If the webapp will default to flat-view instead of perspective-view.
Default is false (perspective-view)
default-to-flat-view: false
The default map and camera location where a user will start after opening the webapp.
This is in form of the URL anchor: Open your map in a browser and look at the URL, everything after the '#' is the value for this setting.
Default is "no anchor" (The camera will start with the topmost map and at that map's starting point).
#start-location: "world:0:16:-32:390:0.1:0.19:0:0:perspective"
The minimum (closest) and maximum (furthest) distance (in blocks) that the camera can be from the ground.
Default is min:5 max:100000
min-zoom-distance: 5 max-zoom-distance: 100000
The default value of the resolution (settings menu).
Possible values are: 0.5, 1, 2
Default is 1
resolution-default: 1
The min, max and default values of the hires render distance slider (settings menu).
The values are in blocks.
Default is max:500 default:100 and min:0
hires-slider-max: 500 hires-slider-default: 100 hires-slider-min: 0
The min, max and default values of the lowres render distance slider (settings menu).
The values are in blocks.
Default is max:7000 default:2000 and min:500
lowres-slider-max: 7000 lowres-slider-default: 2000 lowres-slider-min: 500
Here you can specify an alternative base URL where all of the map data is loaded from.
Default is "maps"
#map-data-root: "https://cdn.my-domain.com/mapdata"
Here you can specify an alternative base URL where all of the live data is loaded from.
Default is "maps"
#live-data-root: "https://cdn.my-domain.com/livedata"
Here you can add URLs to custom scripts (js) so they will be loaded by the webapp.
You can place them somewhere in BlueMap's webroot and add the (relative) link here.
scripts: [ #"js/my-custom-script.js" ]
Here you can add URLs to custom styles (css) so they will be loaded by the webapp.
You can place them somewhere in BlueMap's webroot and add the (relative) link here.
styles: [ #"css/my-custom-style.css" ] can you work with these two to implement it
📄
pasted-code-1792003655883.txt
txt
46 lines
▶
## ##
## BlueMap ##
## Webserver-Config ##
## ##
# With this setting you can disable the integrated webserver.
# This is useful if you want to only render the map data for later use, or if you setup your own webserver.
# Default is true
enabled: true
# The webroot that the server will host to the web.
# Usually this should be set to the same directory like in the webapp.conf!
# Default is "bluemap/web"
webroot: "bluemap/web"
# The port that the webserver listens to.
# Default is 25594
port: 25594
# Config-section for webserver activity logging:
log: {
# The file where all the webserver activity will be logged to.
# Comment out to disable the logging completely.
# Java String formatting syntax can be used to add timestamps, see: https://docs.oracle.com/javase/8/docs/api/java/util/Formatter.html
# Default is no logging.
file: "bluemap/logs/webserver.log"
#file: "bluemap/logs/webserver_%1$tF_%1$tT.log"
# Whether the logger should append to an existing file, or overwrite it.
# Default is false (overwrite the file).
append: false
# The format of the webserver acivity logs.
# The syntax is the Java String formatting syntax, see: https://docs.oracle.com/javase/8/docs/api/java/util/Formatter.html
# Possible Arguments: | Example output
# 1 - the source address (ignoring any xff headers). | 10.10.10.10
# 2 - the source address (using the (leftmost) xff header if provided). | 88.66.44.22
# 3 - the http method of the request. | GET
# 4 - the full request address. | /assets/file.png
# 5 - the protocol version of the request. | HTTP/1.1
# 6 - the status code of the response. | 200
# 7 - the status message of the response. | OK
# Default is "%1$s \"%3$s %4$s %5$s\" %6$s %7$s" | 10.10.10.10 "GET /assets/file.png HTTP/1.1" 200 OK
format: "%1$s \"%3$s %4$s %5$s\" %6$s %7$s"
}
I’ve started an update to use the BlueMap web files from your configuration (bluemap/web, served on port 25594) as the background for the Overworld map, with a 30-minute refresh. The existing image/terrain fallback and five-second player-marker updates will remain. I’ve asked the developer to verify BlueMap’s actual tile format and coordinate alignment so the map won’t show misleading positions if its view can’t be aligned accurately.
…tchedFile>Implemented the BlueMap background fetch path.
BlueMap access: PlayerMap queries BlueMap’s public API to match the first loaded Bukkit
NORMALworld and select its alphabetically first map ID. It reads the servedsettings.jsonformapDataRootand tile size, then fetches BlueMap’s generated flat LOD-1 PNG tiles from the configured webserver. Tile decoding, stitching, and color conversion run on a background worker.Alignment and refresh: The flat tiles map directly to block-grid coordinates, so the stitched image covers X/Z -896 through +895, with -Z at the top and -X on the left. It samples at two-block intervals for PlayerMap’s 896-pixel background. BlueMap refreshes after startup and every 30 minutes; player markers continue updating every five seconds.
Fallback and lifecycle: BlueMap imagery takes priority for the selected normal world. On an initial fetch failure, PlayerMap falls back to
map.png, then terrain sampling; a later failure retains the last successfully loaded BlueMap image. Shutdown cancels the image worker. Nether and End are not used as BlueMap sources.Configuration and documentation: The default URL matches the supplied port,
http://127.0.0.1:25594. Changebluemap.base-urlinplugins/PlayerMap/config.ymlif the server’s address, port, or URL prefix differs.
Changed files: BlueMapImageSource.java (new), MapManager.java, PlayerMapPlugin.java, config.yml (new), and README.md. The existing optional BlueMap soft dependency remains in plugin.yml.
The fetcher follows BlueMap’s generated file-backed low-resolution tile format, including its documented PNG dimensions and tile paths. It falls back if required tiles are missing or the served format/settings are unsupported. The HTTP fetch has not been live-tested against the running server, and no build was run, as requested.
Implemented BlueMap background fetching, and the plugin build succeeded. It fetches flat, low-resolution BlueMap tiles for the first matching normal-world map using the local URL http://127.0.0.1:25594, then refreshes the background every 30 minutes. Player markers continue updating every five seconds; the existing image and terrain fallbacks remain available.
If BlueMap uses a different address, port, or URL prefix, change bluemap.base-url in plugins/PlayerMap/config.yml. The tile fetching hasn’t been live-tested against your server, so please check the plugin log after starting it to confirm BlueMap imagery loads.
Restart server if bluemap is fetching map before playermap is plugin loaded should I restart? ( it will take 1.7h for the map
You don’t need to restart. PlayerMap retries fetching BlueMap’s background every 30 minutes, so if BlueMap takes 1.7 hours to render, PlayerMap should pick it up on a later retry—potentially up to 30 minutes after BlueMap finishes.
Keep the server running and check the PlayerMap log for “Loaded BlueMap flat-map tiles”. If you want it to try immediately once BlueMap is done, restart the server then; otherwise, just wait for the next retry.
will the plugin attempt to fetch blue map map tiles on start of server
Yes. PlayerMap makes its first BlueMap tile-fetch attempt about one tick after startup, and BlueMap is configured as an optional soft dependency, so it should load before PlayerMap.
If BlueMap’s tiles aren’t ready yet, that attempt can fail; PlayerMap then tries again about every 30 minutes. If the 1.7-hour render time starts at server startup, it should next try around 2 hours after startup—roughly 18 minutes after rendering finishes. You shouldn’t need to restart just for the initial fetch.
are 4 render threads alot
Four BlueMap render threads is a moderate setting, not automatically too many. It depends on how many CPU cores your server actually has available:
8+ cores: four is usually reasonable.
Around 4 cores: consider 1–2 to leave more CPU for Minecraft.
2 cores: start with 1.
Watch the server’s CPU usage and tick performance while BlueMap renders. If the server becomes laggy, lower the thread count; rendering may take longer, but gameplay should get more CPU time.
is this important
📄
pasted-code-1792005062946.txt
txt
49 lines
▶
## ##
## BlueMap ##
## Storage-Config ##
## ##
# The storage-type of this storage.
# Depending on this setting, different config entries are allowed/expected in this config file.
# Don't change this value! If you want a different storage-type, check out the other example configs.
storage-type: sql
# The JDBC-Connection URL that is used to connect to the database.
# The format for this URL is usually something like: jdbc:[driver]://[host]:[port]/[database]
# The exact format of the URL is determined by the JDBC-Driver you are using.
connection-url: "jdbc:mysql://localhost:3306/bluemap?permitMysqlScheme"
# You can set any additional (JDBC-Driver specific) properties here.
# Usually that's your database user and password.
connection-properties: {
user: "root",
password: ""
}
# The maximum number of connections to the database that are allowed to be open at the same time.
# A negative number means unlimited.
# Default is: -1
max-connections: -1
# This can be used to load a custom JDBC-Driver from a .jar file.
# E.g. if your runtime environment is not already providing the SQL-Driver you need,
# you could download the MariaDB JDBC-Connector from https://mariadb.com/downloads/connectors/connectors-data-access/java8-connector/
# If you set this value, you HAVE TO set the correct driver-class name below.
# Place it in the './bluemap' folder and use it like this:
#driver-jar: "bluemap/mariadb-java-client-3.0.7.jar"
# This is the driver-class that BlueMap will try to load and use.
# Check the documentation of the driver you are using if you don't know this.
# Leaving this commented out means that BlueMap automatically tries to find a suitable driver in your classpath.
# If you added a custom driver-jar value above, you HAVE TO set the correct class name here.
#driver-class: "org.mariadb.jdbc.Driver"
# The compression type that BlueMap will use to compress generated map data.
# Available compression types are:
# - gzip
# - zstd
# - deflate
# - none
# The default is: gzip
compression: gzip
It matters to BlueMap, but PlayerMap doesn’t connect to the database directly. PlayerMap fetches map tiles from BlueMap’s web server at http://127.0.0.1:25594, so SQL storage is fine as long as BlueMap can read its database and serve the rendered tiles. With SQL storage, the map tiles may not exist as ordinary files under bluemap/web.
The main concern in this config is security: it shows MySQL user root with an empty password. If those are the real credentials, use a dedicated database user with a strong password and only the permissions BlueMap needs.
make the map plugin try connect every 2 minute
I’ve started changing BlueMap fetch attempts to every two minutes, including retries if a fetch fails. The player markers will still update every five seconds. Once the change is ready, I’ll build the plugin and share the updated download.
Add a configurable BlueMap interval, clamped to 1–1,440 minutes to keep it positive and bounded.
Use it for normal and failed-attempt retry timing while leaving the existing async fetch and fallback flow intact.
Update the shipped default and the README/in-game wording; no build.Changed
MapManagerto usebluemap.refresh-interval-minutes(default 2), bounded to 1–1,440 minutes. The existing first attempt, async fetch, non-overlap guard, cached background, and fallbacks remain intact; the next attempt is scheduled after the current attempt completes, including on failure. Updated the README and in-game refresh item text. No build run.
Files changed: MapManager.java, config.yml, README.md.
Done—the BlueMap background now refreshes or retries every 2 minutes by default. You can change bluemap.refresh-interval-minutes in plugins/PlayerMap/config.yml (accepted range: 1–1,440 minutes). Player markers still update every five seconds. The plugin build succeeded.
should I setup sql server or no
You don’t need SQL for PlayerMap. It fetches BlueMap tiles over BlueMap’s web server.
But the BlueMap config you shared says storage-type: sql, so BlueMap itself needs a working SQL database with the configured connection. If you haven’t set one up, either configure MySQL/MariaDB with a dedicated database user (not root with a blank password), or switch BlueMap to its file-based storage configuration. For a single server, file storage is usually simpler.
Can you remove fallback normal map since normal map doesnt work and just try to fetch blue map at all and if it doesnt work display anything it can even corrupted or empty data
I’ve started removing the map.png and terrain fallbacks. If BlueMap tiles aren’t available, the map will show a neutral empty background with player markers and keep retrying every two minutes; it won’t deliberately display corrupted data.
No files in this session