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

Prevent printing an empty line in chat if broadcast.get("message") returns an empty string. #791

Open
Owehttamy opened this issue Oct 27, 2021 · 0 comments
Labels

Comments

@Owehttamy
Copy link

When working on the map "Not So Spleef", I ran into a dilemma where I wanted to run commands without relying on command blocks and having to hide them within the map. So, I tried out the broadcast option in the time module. I found that if you use broadcasts within the time module in a map's JSON file to execute commands, but leave the message attribute with an empty string, the module still prints an empty line.

I'd like to request a feature that either adds an exception that checks if the message string is empty to prevent blank lines from spamming within chat, or just remove the requirement of including the message attribute altogether, which is likely more resource-efficient.

This would make many maps much more intuitive and would provide much more ease to tweak and update, due to all special functionality in maps being within a JSON file, rather than the map's region files, which would need to be pruned every time a change is required.

In short, when you try to execute commands with the broadcast module without writing a message, an empty line is sent in chat when the broadcast is run. My request is to remove the unnecessary empty lines so they're not excessively creating gaps in the chat, and instead the command is run silently in the background.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant