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

Add autoprefix command #647

Open
wants to merge 10 commits into
base: fabric
Choose a base branch
from
Open

Add autoprefix command #647

wants to merge 10 commits into from

Conversation

ImUrX
Copy link
Contributor

@ImUrX ImUrX commented Jun 23, 2024

This command lets you autoprefix in all your messages a text, it can be a command or a simple text.
It's intended use is for /msg <user> or /tmsg but it's a flexible addition to the mod :3

import static net.fabricmc.fabric.api.client.command.v2.ClientCommandManager.literal;

public class AutoPrefixCommand {
private static String currentPrefix = null;
Copy link
Collaborator

Choose a reason for hiding this comment

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

I feel like this entire command can be a config instead, but I will continue reviewing the command anyway.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

should it be a config? Should this be persistent?

Copy link
Owner

Choose a reason for hiding this comment

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

configs can be temporary

Copy link
Collaborator

Choose a reason for hiding this comment

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

Temporary configs exist. Although you would lose the autocompletion for players, unless you resort to a hack. I'll let @Earthcomputer decide.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ah, i understand, you meant making this a config setting qwq cries

@ImUrX
Copy link
Contributor Author

ImUrX commented Jun 26, 2024

Merge when? 🥺

@xpple
Copy link
Collaborator

xpple commented Jun 26, 2024

Well there is an open question, so not yet.

@xpple xpple added the enhancement New feature or request label Sep 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants