-
-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add MapTowny integration! #556
Conversation
- Functionally the same as the Dynmap / Dynmap-Towny integration. - Uses code from the Dynmap Integration to display siege icon markers. - Add a specific fire icon to use for MapTowny and attribution for the icon in the README.
Thanks so much for adding this! Huzzah!!!. |
src/main/java/com/gmail/goosius/siegewar/integration/maptowny/MapTownyIntegration.java
Outdated
Show resolved
Hide resolved
I mentioned this to @silverwolfg11 in #towny-dev as well but it ought to go here too: the formatting on the existing files will have to be undone too. He says this is a bit of a proof of concept first, while he considers what other API needs to be added to MapTowny. |
Fixed the line endings and made the map change to be triggered the NewShortTimeEvent instead of a fixed interval. |
|
||
@EventHandler | ||
public void onNewShortTime(NewShortTimeEvent event) { | ||
this.renderSieges.run(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚧
- Have I missed something, or is threading unnecessary here?
- Couldn't we just do something un-threaded like: SiegeWar.getMapTownyIntegration().displaySieges() ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1 Comment
Hi Silverwolf, what is the status of this PR? |
Hi @silverwolfg11 , what is the status of this PR? |
|
Description:
This PR aims to integrate MapTowny with SiegeWar!
The MapTowny integration is functionally the same as the Dynmap / Dynmap-Towny integration and copies some code from the integration as well.
Since MapTowny works with various platforms, there were no default icons, so a fire icon had to be added into the jar to render it on the map. This icon is licensed with attribution, so attribution was added to the README.
New Nodes/Commands/ConfigOptions:
N/A
Relevant Issue ticket:
#283
Tested on a local testing server with an incomplete siege. Would appreciate if people with more experience with SiegeWar and/or players test this as well.
By making this pull request, I represent that I have the right to waive copyright and related rights to my contribution, and agree that all copyright and related rights in my contributions are waived, and I acknowledge that the TownyAdvanced organization has the copyright to use and modify my contribution under the SiegeWar License for perpetuity.