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
@Kervinou
Thanks for the info :) Sorry i canno't really be up to date with this plugin but gonna try to fix any issue :)
UP ! ;-)
idem for me!
error with 1.2.1 with lastest PreciousStones plugin
MC 1.6.4 spigot
thanks
i hesitate to use PS if i can't have this plugin too
@kraaktlevelmaker
Thanks going to look into it, could you also tell me if you where changing your config file, and what PS version you are using
I foudn an error for version 1.2.1 and 1.2.0.
This is the 1.2.1
And this is the 1.2.0
@kraaktlevelmaker
Hmm... could you try to use version 1.2.0 because it might be a bug added with last changes.
If it still doesn't work It might be something else, but for now it looks OK and should work
@dandielo
I can't see the fields or blocks on my dynmap. InstalledI have putted the DynMap-PreciousStones.jar in the plugins folder. FlagsI added the dynmap-marker:true and dynmap-area:true flags to all my fields. This is a example of my fields (custom).
Did i something wrong by the installation or flags?
@dandielo
sorry it was Dynmap orgignal pddynmap plguins mix your config with it....
ok now new problems
10:17:09 [WARNING] [Dynmap-PreciousStones] Task #17 for Dynmap-PreciousStones v1.2.0 Beta generated an exception java.lang.NullPointerException at net.dandielo.dynmap.preciousstones.layers.Fields.getFieldPopup(Fields.java:203) at net.dandielo.dynmap.preciousstones.layers.Fields.handleFieldArea(Fields.java:385) at net.dandielo.dynmap.preciousstones.layers.Fields.updateMarkerSet(Fields.java:414) at net.dandielo.dynmap.preciousstones.layers.Fields.access$300(Fields.java:26) at net.dandielo.dynmap.preciousstones.layers.Fields$Update.run(Fields.java:186) at org.bukkit.craftbukkit.v1_6_R2.scheduler.CraftTask.run(CraftTask.java:58) at org.bukkit.craftbukkit.v1_6_R2.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:345) at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:789) at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:318) at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:746) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:630) at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16)
@laseromich
It's the same as for 1.6.1 i just forgot to remove the .1 from the file name. It will work anyway for any bukkit versions :P
@laseromich
Can you be more specific? Because Java is by default (mostly) UTF-8 compatible. It would help me if you could post a bunch of examples, some info about your server, like OS on what its running, start command line args, if possible of course.
After all i still need to add some more Flags support to this plugin, and make debug a little bit. Sorry that this plug is so "barely" developed, just got 3 other plugin I still need to update.
Info about configs, like how to create "custom" fields types, and what values are doing? I dunno if I'm getting it just asking. If this is what you want I will try to add it soon. (But most probably I need to debug dtlTraders (another plug))
Sorry for this long response time, I'm almost not watching this thread, will need to get back to it.
UTF-8 field names dont work :( plz can post some info about cfgs?
@dandielo
1.6.2 incoming ?
@Tillweed
1.6.2 incoming
I know the "update" was incoming soon. I was wondering if the update will include functionality for 1.6.x? Thanks, Tillweed
@slugshelI
Update incoming soon, sorry for such a long response time, got a lot of problems here atm :/
git-Bukkit-1.5.1-R0.2-6-g1baccb2-b2761jnks
[SEVERE] Could not load 'plugins/Dynmap-PreciousStones.jar' in folder 'plugins' org.bukkit.plugin.UnknownDependencyException: PreciousStones at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:195) at org.bukkit.craftbukkit.v1_5_R2.CraftServer.loadPlugins(CraftServer.java:239) at org.bukkit.craftbukkit.v1_5_R2.CraftServer.<init>(CraftServer.java:217) at net.minecraft.server.v1_5_R2.PlayerList.<init>(PlayerList.java:55) at net.minecraft.server.v1_5_R2.DedicatedPlayerList.<init>(SourceFile:11) at net.minecraft.server.v1_5_R2.DedicatedServer.init(DedicatedServer.java:105) at net.minecraft.server.v1_5_R2.MinecraftServer.run(MinecraftServer.java:381) at net.minecraft.server.v1_5_R2.ThreadServerApplication.run(SourceFile:573)
@erikhobag
You mean the DynmapPlugin config right?
EDIT: If you are talking about the PS config file, its only adds nodes it misses all changes are saved. My plugin does not override the config in any case. Can you please explain it a bit more?
@M91
Started working on it
EDIT: Got few more questions
q: Did you changed anything withing the PS config file?
q: Does it happens without any PS field set?
Installed them plugin - reverted my old precious stones config back to original and it won't let me save changes to my config. When I reboot it reverts back to original.
@dandielo
Q: Was it working before? or you just started to using it?
A: just started using it
Q: May I get the configuration you've setup for your Stones?
A: yes you may & this is the only stone i use all the other stone configs are taken out.
@M91
Ok going to look at this as fast as I can atm just moved to linux so I need go setup my workspace, anyway just got some more questions.
Was it working before? or you just started to using it?
May I get the configuration you've setup for your Stones?
@dandielo
ya everything runs fine with out it, thats what the attached files are for its a NoLagg examine of all the plugins so you can break it down to what is making the the main thread fail.