Spigot JDynmapGriefPrevention 2.5.1

GriefPrevention Addon with Dynmap Support (if available)

  1. What's the difference to the orginal plugin?

    Nvm, I see you have updated the description.
    #2 SirWilli, Jul 29, 2014
    Last edited: Jul 29, 2014
  2. Does this work with Spigot 1.7.9?/1.7.10?
  3. I don't know. Need someone to test this and response if it's working or not for other versions.
    I just enhanced this a bit for my needs on my server (Tekkit Lite) and wanted to share it to others where it might run.
    If I get some responses about setup/config/version if it is not running I might have a look if I can adapt it.
    At least I see in MCSTATS that someone from Canada has it installed with Spigot 1.7.9. but that does not mean that it's working.

    EDIT: Yes, it does. Tested it with bukkit 1.7.9 and Spigot 1.7.10
    #4 jahangir13, Aug 5, 2014
    Last edited: Aug 22, 2014
  4. I'll give it a try on my Spigot server when I test my 1.7.9>1.7.10 update, More worried about stability/memory leaks. You fork the project on github so the main developer can take a look at your code? Get a second set of eyes on it :)
  5. Look, the only thing I've added was to check if the claim owner (who is already in the popup of the original plugin) is absent more than the days specified in the config (just an if clause). I don't see how there could be any memory leak or something. But yes...if there are many claims (>2000) it takes some time to show all of them as I need to check every claim (and owner) and the builders if the claim owner already exceeded the limit of days.
  6. Woah calm down! It was only a suggestion, and a good one too! You should submit changes to the main git.

    I do have about 2000+ claims...
  7. #8 jahangir13, Sep 6, 2014
    Last edited: Sep 6, 2014
  8. I wrote an in-depth update for using this on Spigot 1.7.9, But It looks like it never sent :(

    Lets see if I can remember the issues I was having.
    • No matter what I tried, I couldn't change the colour of the green claims, they wouldn't update, I tried the x0 method and normal hex codes.
    • Claims do not show on Internet explorer, they do with the default dynmap griefprevention
    • I use the username of a player to link to their external website stats profile & display thier avatar in the pop-up both are broken when adding the time off-line, this data is important, so I would suggest separating it to %usernameoffline% or something, so then the %username% could still be used. Check out my current map www.piratemc.com/map (Griefprevention is hidden by default)
    There were more issues, but this is all I can remember off the top of my head at present, Getting these ironed out would be fantastic!
  9. Which version is that now where you've provided the link to your map?
    I see claims with my Internet Explorer there but no unused/old claims and the popups do not look like I know them?

    P.S.: I have an Spigot 1.7.9 server locally running on my Windows Desktop and there everything works fine for me. And if I open my dynmap (link is in the plugin description) with Internet Explorer it also shows all claims as I would expect it, hm (but this is version 1.4.7 Tekkit Lite). I don't know what you've changed but I guess that there is whatever error/typo in it.
    I will check changing the colors this evening. Not sure if I've tested this enough ;)
    #10 jahangir13, Sep 8, 2014
    Last edited: Sep 8, 2014
  10. My map version is using the default Dynmap Griefprevention, I cannot use this version sadly until the bugs are ironed out.

    Here is my config, but like I said already the username will have to be seperated from username (timeoffline), This stops any external use which is very handy for passing information to other web apps.

  11. Ah, I think I understand now what you mean:
    e.g. 'jahangir13 (14)' needs to be seperated into 'jahangir13' and '(14)'. So a variable for the days this user is absent. Hm.

    What I am more interested in is: if you just use the plugin as it is 'shipped', is it then working or not? I mean without your changes in the html.
    I've checked your html and this seems correct to me. So I am wondering what the cause might be that it's not working for you.

    I do not get enough feedback here to know for whom it's working or not working. I see in mcstats that there are some few servers with version 1.7.9/1.7.10, and for a longer time now. That does not mean that it's working but I expect it is.

    I got 1 message from a user that his server is running version 1.7.9 and he included a link to his working dynmap.
  12. Yes it works on spigot 1.7.10, I thought that was obvious seeing that im reporting problems!! and yes it does work in internet explorer without any HTML edits, But the bundled HTML is a complete mess.

    I tried editing the colors without any HTML edits too, Again they didnt work at all. The built in regionstyle & administrator work, but allAbsent, ownerAbsent and publicTrusted do nothing
    Looking inside the inspector window in firefox, it seems as if the allAbsent, ownerAbsent and publicTrusted are hardcoded, Unless all these config settings are supose to be part of ownerstyle?

    Updated Problems list.
    • Colours are broken, you cannot change it from the sick coloured green and black border.
    • Seperation of username and days offline are still needed!
  13. There's a typo in your config html code, I guess (for the mess in your screenshot).

    But yes. the colors are hard-coded in case these cannot be found in the config and I guess there is an error somewhere.
    I will have a look here.
    For the claim owner a new var %ownerdays% or something will be created so that this can be seperated from the name. For the builders I do not have a good idea as these are in a list/string one after another and you cannot know how many that are for each claim. So this cannot be done via the config with place-holder variables.

    Claim (W)idth, (H)eight, (S)ize could be included to be used in the config as variables. But when I tried that with my 2300+ claims these operations took already a recognizable amount of time longer than before and moving the map around was getting slower. I could put something like this into the plugin with an option (on/off) to choose in the config.
  14. jahangir13 updated JDynmapGriefPrevention with a new update entry:

    Update of JDynmapGriefprevention (v.095)

    Read the rest of this update entry...
    • Like Like x 1
  15. Lovely. Great to see a replacement for this great plugin. Thanks for the extra variables.
  16. jahangir13 updated JDynmapGriefPrevention with a new update entry:

    New version 1.0 released

    Read the rest of this update entry...
    • Winner Winner x 1
  17. Finally got around to testing the 1.0 version, and it dosunt show claims, generated a new config so no changes made.
    It crashes my server after about 60 seconds, heres the console output.
  18. Hm, can you send me the config file you've used here?