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

feat: TNT minecart tracking #1292

Merged
merged 8 commits into from
Mar 10, 2024
Merged

Conversation

TTtie
Copy link
Contributor

@TTtie TTtie commented Jan 17, 2024

This commit introduces TNT minecart tracking into PGM, spawned into the world by dispensers or players. This change also allows destroyables (cores and monuments) to be destroyed using TNT minecarts. In case the owner of TNT minecarts isn't known (e.g. while dispensing minecarts on Spigot), the behavior is unchanged.

I verified that this patch doesn't allow players to grief their own team's objective:

Demonstration videos
2024-01-17.18-27-11.576p.crf28.mp4
2024-01-17.18-29-13.720p.crf28.mp4

Fixes #1176.
Requires: Electroid/SportPaper#140

@TTtie TTtie requested a review from Electroid as a code owner January 17, 2024 18:54
@TTtie TTtie marked this pull request as draft January 17, 2024 20:06
@TTtie TTtie force-pushed the feat/track-tnt-minecarts branch 3 times, most recently from 9d64533 to 246da6f Compare January 31, 2024 06:42
@TTtie TTtie marked this pull request as ready for review February 13, 2024 14:33
Pablete1234
Pablete1234 previously approved these changes Feb 15, 2024
@Pablete1234 Pablete1234 added ready PR is ready to merge feature New feature or request labels Feb 24, 2024
This commit introduces TNT minecart tracking into PGM, spawned into the world using dispensers or players (tracking player-placed TNT minecarts requires a patched version of SportPaper).
This change also allows destroyables (cores and monuments) to be destroyed using TNT minecarts.

Fixes PGMDev#1176.

Signed-off-by: TTtie <[email protected]>
This prevents the possibility of team griefing using explosions (of any entity that can explode) on platforms where entity spawn tracking isn't supported (tested on Spigot).

Signed-off-by: TTtie <[email protected]>
This change should make it easier to think about edge cases when trying to correlate the event. Also, it's been refactored to emit a PlayerSpawnEntityEvent if further usage is needed in the future.

Signed-off-by: TTtie <[email protected]>
@TTtie TTtie force-pushed the feat/track-tnt-minecarts branch from a715a2d to fcf0359 Compare February 29, 2024 02:21
@Electroid Electroid merged commit ffd116e into PGMDev:dev Mar 10, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request ready PR is ready to merge
Development

Successfully merging this pull request may close these issues.

Add Player Tagging to TNT Minecarts
4 participants