Skip to content
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

Siege Improvements #30

Merged
merged 9 commits into from
May 26, 2024
Merged

Siege Improvements #30

merged 9 commits into from
May 26, 2024

Conversation

drfiveminusmint
Copy link
Contributor

@drfiveminusmint drfiveminusmint commented Feb 27, 2024

This PR makes a few changes to the siege system to help automatically enforce certain rules, such as siege leaders not being allowed to leave the box and siege sudden death.

It also makes some minor changes to the siege announcements to provide players with more information and fixes some grammatical errors that were really bugging me.

This will close #24

Bukkit.getServer().broadcastMessage(String.format(I18nSupport.getInternationalisedString("Siege - Sudden Death"),
siege.getName(), (timeLeft+2)/60));
if (!siege.leaderIsInControl()) {
endSiege();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Won't this cause the siege to end twice since it's also ended in SiegeLeaderListener?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, because the SiegeLeaderListener one specifically fires when a craft is sunk or released, whereas the SiegeProgressTask one fires when sudden death begins and there is no flagship detected.

@TylerS1066
Copy link
Contributor

We also need to resolve the merge conflicts

added priorities to all events, set them to ignore cancelled
@TylerS1066 TylerS1066 merged commit 61591af into main May 26, 2024
2 of 3 checks passed
@drfiveminusmint drfiveminusmint deleted the Siege-Improvements branch May 26, 2024 19:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Option to require the siege leader to be in the siege region at all times
2 participants