Skip to content

wurstmineberg/mapcrafter-playermarkers

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

Mapcrafter playermarkers

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.

Requirements

You need some things to use this script:

Installation

  1. 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
  2. Copy the files from the playermarkers directory to an accessible web directory.
  3. 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.
  4. Include the script into your rendered map. Use mapcrafter --find-resources to find the template directory, open the index.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>
  1. 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!

About

Mapcrafter interface plugin to show active players on a map.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%