Open ColonelKai opened 4 years ago
I am aware of the "Ship" api in Cannons as it was (I believe) intended for Ships. There was a lot of requests back in Ships 4 for the cannons plugin and there was a official ships addon which connected the two.
That addon was cancelled as Ships 5 didnt play nice with cannons for some reason (it would detect the blocks that made up the cannon, however when it came to connecting the two, it would somehow forget that the blocks that made up the cannon were there).
Ships 6 is a whole different beast. I am wanting to bring out more supported plugins when Ships 6 fully releases with cannons being one of them. However I haven't tested if it plays nice or not.
Thanks, if Java was not a language i never worked on, i would gladly make a fork for my server, but i am dum dum, maybe i will, who fucking knows.
You are doing god's work lmao, at least if god exists in Minecraft, you're doing his work lol.
Lol. Fair enough.
Do bare in mind that the cannons addon for Ships would be a addon, so forking Ships wouldn't be something I would do.
As for Cannons addon, it should be easy enough. There are two events that the addon would need to listen to. ShipsPreMovingEvent and ShipsFinishMovingEvent. Where in pre it works out where all the cannons in relation to the ships sign (Ships does the relation automatically) are and sets them to on ship in cannons as well as makes a note what ship is moving. In finish event it just finds the ship in the list of moved ships and then gets the cannons that were set and sets the new location of the ship.
Another way would be just to listen to pre and then insert "runners" which are bits of code that run after the ship has moved/failed to move which will do the same job.
The latter is the way I would like to do it.
Is this still being worked on? I have some ideas that I took from Assassin's Creed 4: Black Flag that I think would be a QoL feature(s) to add here
I misread this mb I believe this is for a API request so this would be on cannons end I should send this QoL issue to right
The side doesn't matter. It can be done ships side or cannons. Personally it's something ive wanted to add as a addon for ships so would be my side
As i was going to do it as a addon, there is nothing stopping another developer from linking the two. I would happily support it and them how i can
Oh cool that sound great! And for issue #49 so I don't have to send another message over there
Its possible. But a lot of work so something i wouldn't be doing. Sorry
A support for Cannons plugin, it would make everything exceptionally more fun. They already have an API for ship plugins (such as yours) which would make it easier???? https://www.spigotmc.org/resources/cannons.56764/