Skip to content

Feat: respawn in a game - #347

Open
HungryMuttis wants to merge 6 commits into
NucleoidMC:devfrom
HungryMuttis:feat/respawn
Open

Feat: respawn in a game#347
HungryMuttis wants to merge 6 commits into
NucleoidMC:devfrom
HungryMuttis:feat/respawn

Conversation

@HungryMuttis

Copy link
Copy Markdown

Players are thrown out of the game if they die, this feature would allow games to chose if they want the player to be respawned inside the game or thrown out.

Added 2 new GamePlayerEvents:

  • REQUEST_RESPAWN: determine if the player should be respawned or thrown out of the game
  • RESPAWN: allow games to modify the respawned player

@ellieisjelly

Copy link
Copy Markdown
Member

Hi! Are you still interested in getting this merged? We're taking contributions targetting the dev branch currently, I doubt many new commits are headed to main until the 26.2 switch

@HungryMuttis

Copy link
Copy Markdown
Author

Hello, yes, I am still interested in merging. If there are needed changes, I will be able to look into them in about 1-3 days.

@ellieisjelly

Copy link
Copy Markdown
Member

In that case, it would be great if you could re-target this to the dev branch

@HungryMuttis
HungryMuttis changed the base branch from main to dev July 23, 2026 19:17
@HungryMuttis

Copy link
Copy Markdown
Author

I have changed the base branch. Let me know if anything else needs to be done.

# Conflicts:
#	src/main/java/xyz/nucleoid/plasmid/impl/game/manager/ManagedGameSpace.java
#	src/main/java/xyz/nucleoid/plasmid/mixin/game/space/PlayerManagerMixin.java
@HungryMuttis
HungryMuttis marked this pull request as draft July 26, 2026 19:11
@HungryMuttis

Copy link
Copy Markdown
Author

There seems to be a bug where if the game ends while a player is in the respawn screen they get put in a ghost state where nothing they do gets registered on the server. I'm currently trying to fix this bug, but would appreciate any help.

@HungryMuttis
HungryMuttis marked this pull request as ready for review July 27, 2026 10:34
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.

3 participants