Dynmap - Precious Stones
This plugin allows you to show your PreciousStones fields, and blocks on Dynmap.
Its easy to use and simple to configure.
This project was catch up from phaed420, but if you got any ideas fell free to share them, I will try my best.
Config file - how does it works
A html section in the config with 3 child nodes allows you to change and customize the display of some things on dynmap.
html: line: ' %text% <span style=\"font-weight:bold;\"> %value% </span><br />' box: '<div class=\"infowindow\"> %content% </div>' field-names: '%owner%': 'Owner'
- html.line - is generally used for each new information you set to display
- html.box - is the box that contains all items to display (%content%)
- html.field-name - is used to set text (%text%) before the showing up value value (%value%)
Because of this changes formating in the area_text node looks like this now:
area_text: "<span style=\"font-size:120%;\">^%type% ^%name%</span><br /> %owner% %dimensions% %cords%"
The format has been lesser to use just the key words %owner%, if you add this character ^ before a keyword, it wont use the html.line format.
example:
- %owner% will generate Owner <span style=\"font-weight:bold;\"> Dandielo </span><br />
- ^%owner% will generate just Dandielo, so you can create around it your own HTML code
PreciousStones flags
To show a block on dynmap just use on of these Flags on your fields :)
dynmap-marker - This will draw the field's icon
dynmap-area - This will draw the field's two or three dimensional area on the map
dynmap-hide-players - This flag hides all players found on the allowed list in the fields area on dynmap
dynmap-show-players - This flag shows all players found on the allowed list in the fields area on dynmap
Some ideas
- Add renting information
- Create a system do draw clan areas, color would be generated from clan tag (by some magic code ;P)
Simplify the display node in the config
Also, Author, Any chance of adding support for showing which "SimpleClan" the owner is in?
@Kervinou
Are you sure you have added the flags to the fields your wishing to show? The flags are: dynmap-area: true dynmap-marker: true (You don't need both, one is for the red area marker and the other is for an icon marker)
@Zillew
Thanks
But very strange, it s not working for me in 1.7.10
so i will test it again ;)
@jf3000dotcom
I had it working on 1.7.10 and currently have it working on 1.8
Dont worry doesnt work on 1.7.9 either.
Hi,
Any news ?
Thanks ,)
Hi
And thanks But this dont work in 1.7.10 release !
Is anyone who can continue this project ?
thanks ! ;-)
Plz !! ;-)
We are a very small community with old men ! ;)
and this view is usefull for us :-)
Thanks !
HI !
Do U plan to update to 1.7.10 ??? thanks :-)
@danielzzzz
Working on a fix, should be ready soon :)
@moisesortiz
Was because I've made some time ago a small "feature" that would hide/show players in specific areas, but the code is bit a mess, the next build will have that feature removed for some time, but ticks should be alright after that
Dynmap Precious Stones just became crazy on ticks
http://aikar.co/timings.php?url=7087459
Hello. I have only City Protection in my config file. I have radius 20, and in game I have protected field 41x41 and it's corrent. The problem is that on dynmap this red line on 2 sides is one pixel too close. /ps visualize shows this OK. In circle u have first block witch other players can destroy (dynmap PS show this different).
http://images63.fotosik.pl/748/1300871944d10990.jpg
@Kervinou @LordBoos
Update incoming, added one config node:
allows to disable the player hiding script and lower the tick usage :)
Yeah ! Thanks U very much ;)
@minecraft7net
@Kervinou
Will update it soon :)
Thanks to someone to have this plugin updated ;-)
Hi,
please update this plugin to work with 1.7.2 and latest dynmap. :-)
@LordBoos
I would need to recheck the code to make it less tick hungry, and if you need any changes just go on :) This plugin is open source so you can do anything with it what you want :)
Nevermind, I've just cloned your repo, removed PlayerMoveListener and set OnJoin to set players visible on map.
Hi, would it be possible to add option to completely disable OnPlayerMove event in this plugin? Since I'm not using any option, which uses it (like dynmap-hide-players and dynmap-show-players), it's taking my server-tick time for no reason. According to Spigot Timings, PlayerMoveEvent in your plugin takes about 6% of my server tick-time, which is big deal, when I do not use any features linked to it.