Note: this is a fork of mapcrafter-playermarkers which uses the Wurstmineberg Minecraft API instead of the MapTools Bukkit plugin. If you're looking for the original mapcrafter-playermarkers, https://github.com/mapcrafter/mapcrafter-playermarkers has you covered.
This is a script to show markers of players from a Minecraft server on maps rendered with Mapcrafter.
The script is free software and available under the GPL license.
You need some things to use this script:
- A map rendered with Mapcrafter
- A working Wurstmineberg Minecraft API to provide the player data
- Make sure the following endpoints of your API are working:
/v2/player/<player>/info.json
/v2/player/<player>/skin/render/front/16.png
/v2/world/<world>/playerdata/all.json
- Copy the files from the
playermarkers
directory to an accessible web directory. - Now configure the
playermarkers.js
script. You need to specify the URL of your API. You can also turn the player movement animation off if you don't want it. - Include the script into your rendered map. Use
mapcrafter --find-resources
to find the template directory, open theindex.html
file in that directory, and add the following lines after the<script>
section where the Mapcrafter UI is initialized:
<script type="text/javascript" src="https://code.jquery.com/jquery-2.2.4.min.js"></script>
<script type="text/javascript" src="/path/to/playermarkers.js"></script>
- Now you can update the template of your rendered map by running
mapcrafter -c <configfile> -r
.
If you are using the Debian package, you will have to repeat steps 4 and 5 after each Mapcrafter update.
Have fun with the player markers!