Skip to content

Add spawn message to auto respawn. #5283

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

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

kirxw
Copy link

@kirxw kirxw commented Mar 30, 2025

Type of change

  • Bug fix
  • New feature

Description

Adds a setting to Auto Respawn that sends a message or command upon respawning.

Related issues

#5268

How Has This Been Tested?

Video demo (420p to fit on github)
https://github.com/user-attachments/assets/b1db29ff-6ac5-4282-9add-6c715860a099

Checklist:

  • My code follows the style guidelines of this project.
  • I have added comments to my code in more complex areas.
  • I have tested the code in both development and production environments.

@kirxw kirxw changed the title Commandonspawn Add spawn message to auto respawn. Mar 30, 2025
Copy link
Contributor

@DrParanoya DrParanoya left a comment

Choose a reason for hiding this comment

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

Please sort the imports in alphabetical order

Copy link
Collaborator

@RacoonDog RacoonDog left a comment

Choose a reason for hiding this comment

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

use tick delays instead of a separate thread

if (respawnTimer <= respawnMessageDelay.get()) return;
respawning = false;

info("Sending message '"+respawnMessage.get()+"'");
Copy link
Collaborator

Choose a reason for hiding this comment

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

info("Sending message '%s'", respawnMessage.get());

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