TownyAdvanced / SiegeWar

A war plugin for Towny.
https://townyadvanced.github.io/
Other
60 stars 38 forks source link

Siegewar thinks a siege is still happening even after it ended? #846

Open blockutis opened 1 year ago

blockutis commented 1 year ago

Describe the bug A siege was going on with a town, and then the attacker placed a white banner to surrender. After all 7 battle sessions had passed, in chat it said that the attacker had successfully abandoned it and that the town was saved. The town's name no longer appears as a tab-complete option with the command /sw hud, however, if you still input the towns name yourself, using /sw hud TownName, it shows the hud for the siege, with the Siege Status being "Attacker Abandon", as shown here: image

Also, when attempting to break the banner that was used to start the siege, it acts as if the banner is being used for a siege assembly: image

To Reproduce

  1. Start a siege on a town.
  2. Wait 24h to be able to surrender the siege.
  3. Place the white banner to surrender.
  4. Wait until all 7 battle sessions have passed and the siege "ends"
  5. In chat it will say that the attacker has abandoned it and the town is saved.
  6. Try to break the banner, it doesn't let you, and says there is a siege assembly in progress.
  7. Try doing /sw hud TownName, and observe that the command still works, instead of saying "Town TownName does not have any active sieges" like it should.

Expected behavior The siege should have ended, the banner should be breakable and the /sw hud command for that town should return "Town TownName does not have any active sieges".

Screenshots /town Terra output: image Hovering over [Sieged]: image

Versions (please complete the following information):

Files Startup log: https://mclo.gs/AdKF2YB SiegeWar config: https://pastebin.com/ZwcGfarA Townyperms.yml: https://pastebin.com/WrfpFbvR

Goosius1 commented 1 year ago

Hi there's 3 issues here

Issue 1:

Issue 2:

Issue 3:

blockutis commented 1 year ago

Yeah sorry I should have thought of that. I guess I thought since it was Attacker Abandon, that it would immediately end. Idk.

Anyway, how long is it meant to stay? Currently the siege still shows up in /sw hud and the banner still cannot be broken. Haven't looked to see exactly how many battle sessions, but it's been at least 2 battle sessions since then, the siege ended over 43 hours ago. And the same error message, claiming there's a siege assembly, still shows up when trying to break the banner.

Goosius1 commented 1 year ago