PlayerLocations
Player Locations
Overview
Player Locations is similar to other player marker plugins, but allow the commands "/hide" and "/unhide" so players may choose if their location shows up on the world map. Their status will still be available, though their coordinates will not be. In order for this plugin to be fully effective, a mapping plugin / application, modifications to the index.html, and the included javascript file are required. I use overviewer for my mapping software.
- v0.5 Tested OK in CB 1.2-R0(DEV)
- <v0.4 Tested OK in CB 1.1-R1
Features
- Output player locations in JSON format
- Allow players to /hide and /unhide
- Only update when neccessary
- Allow OPS to hide and unhide players
- Allow the console to hide and unhide players
- When in the nether, a player's corresponding overworld coordinates are rendered on the map
Configuration
- outputFile (default: "map/markers.json") the destination JSON file
- updateInterval (default: 3000) the milliseconds between update checks
Installation
- To install the plugin, just simply place the jar in the plugins directory.
- Copy the player_markers.js file to the web directory where the index.html file is located
- Modify the index.html of your world map to include:
<script type="text/javascript" src="player_markers.js"></script>
Alternatively use the index.html file included. There are additional features such as a list of currently online players.
Commands
- hide <player> Hides a player's location on the world map. If no player is specified, the current player is used. Only ops and the console may hide others
- unhide <player> Unhides a hidden player's location on the world map. If no player is specified, the current player is used. Only ops and the console may unhide others.
Bugs
This is still not world dependent, though instead of incorrectly showing players on the overworld map, their corresponding overworld coordinates are used. (A way to turn a bug into a feature :))
there is an error in the comment system
if you edit before delete : 403 forbbiden error
I am kind of wishing I would have uploaded the source code to github now because... I don't know where it is and wanted to pick this back up.
@pironic
Pironic,
Thank you for this. I have also developed a correction to the included script, but have not performed adequate testing to have it released.
As of overviewer .9+ the included script will no longer work. I am from the overviewer dev team and we've successfully updated the script to add additional functionality and support for both this plugin and competing plugins.
In future we plan on including the required javascript functions directly in the core of our product. Until that time: your users will need to upgrade their scripts to the one hosted here: https://github.com/overviewer/Minecraft-Overviewer-Addons/tree/master/PlayerMarkers
Note: this is only required if they are running the anvil supported version of Overviewer 0.9 or higher.
@ArchmageInc The user has full permission
edit: I just remember from the old plugin it has to be like "C:\maps\markers.json" and not "C:\maps"
@h0us3cat
An access denied message means that the Minecraft Server is unable to write to the directory. In order for the server to write the locations out to a file the server must have write permissions on the directory. You can modify the output directory by changing it in the config file. If c:\maps is the directory where you want the output file placed, you can add the user running minecraft to the permissions list on the directory by right clicking and selecting properties, security.
@ArchmageInc I get this in my console "07:10:53 [INFO] [PlayerLocations 0.5]: Unable to write to C:\maps: C:\maps (Access is denied)"