You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
its not an issue, this is my version of playermarker.js. I dunno where to post. If someone is interrested about a second marker, a triangle who show where a player is watching for. You need to send the head rotation variable with a plugin in your server (i used the y value of the position)
i deleted the php file for rotate the triangle icon( too much ressources consumption)
i just generated the 360 images needed : -179.png, -180.png, 180.png, and so on and placed em in a cache folder
i added a feature : for the people who need to send the markers.json in an outside provider,
when your bukkit isn't your webserver
check plugins/plocation/config.yml...
here is the code i use on the webserver, to receive my file
php
$destinationFolder = "/home/www/map/";
if (is_uploaded_file($_FILES["nameofthefile"]["tmp_name"])) {
$name = $_FILES["nameofthefile"]["name"];
if (rename($_FILES["nameofthefile"]["tmp_name"], $destinationFolder.$name)) {
$from= fopen('markers2.json','r');//<<for some security reason i need
$to= fopen('markers.json','w+');//<<<< to do this on my webserver
while(!feof($from))fwrite($to,fgets($from));//<<<< maybe it can be remove on other providers
die();
}
}
/php
tell me if this works for you !
This is copy+pasted from an issue on the main repo: overviewer/Minecraft-Overviewer#844 as contibuted by: @djv1rus
its not an issue, this is my version of playermarker.js. I dunno where to post. If someone is interrested about a second marker, a triangle who show where a player is watching for. You need to send the head rotation variable with a plugin in your server (i used the y value of the position)
http://avetco.fr/player_markers.js
//#######################################################
//############player2.php is used to rotate the viewarea
The text was updated successfully, but these errors were encountered: