jpenilla / squaremap-addons

Various addons for squaremap
12 stars 14 forks source link

Add support for PlotSquared #8

Closed josephjthomas closed 2 years ago

josephjthomas commented 2 years ago

Can you add support for PlotSquared please? I use squaremap for my regular worlds, but it would be nice to use it on my plotworlds too with plot highlighting.

Log1x commented 2 years ago

This would be really nice. https://github.com/IntellectualSites/Plot2Dynmap is the dynmap integration.

Folas1337 commented 2 years ago

I agree that an addon for it would be awesome :) Looking forward to see it happen one day.

Log1x commented 2 years ago

I ended up writing a plugin for this but I'm having trouble getting merged plots to render properly (it works, but it stacks the stroke/fill multiple times). If anyone is more experienced with squaremap and can help fix it, it'd be appreciated. Otherwise, everything works nicely.

https://github.com/CreativeCraft/squaremap-plotsquared

EDIT: I got this figured out and fixed in v1.0.1. :)

Folas1337 commented 2 years ago

I ended up writing a plugin for this but I'm having trouble getting merged plots to render properly (it works, but it stacks the stroke/fill multiple times). If anyone is more experienced with squaremap and can help fix it, it'd be appreciated. Otherwise, everything works nicely.

https://github.com/CreativeCraft/squaremap-plotsquared

EDIT: I got this figured out and fixed in v1.0.1. :)

This is awesome!!! I've put it on my server right as I read this and except for non-rectangular plots it's working flawlessly as far as I can tell: image

Thanks you so much for creating this, keep it up!!! <3

Log1x commented 2 years ago

except for non-rectangular plots

unfortunately creating the multi-polygon and handling the road when it comes to abnormal shapes would be incredibly difficult. :( Not sure if it will happen.

Thanks you so much for creating this, keep it up!!! <3

glad you like it! :D

jpenilla commented 2 years ago

https://github.com/jpenilla/squaremap-addons/blob/master/addons/claimchunk/src/main/java/xyz/jpenilla/squaremap/addon/claimchunk/util/RectangleMerge.java this code might be useful @Log1x

I'll also close this issue and add your plugin to the wiki, thanks!