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

Merged
merged 12 commits into from
Nov 27, 2024
Merged

Add autoprefix command #647

merged 12 commits into from
Nov 27, 2024

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

xpple
xpple previously requested changes Jun 23, 2024
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

Copy link
Owner

Choose a reason for hiding this comment

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

Yes please move it to a config

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done, haven't tested it tho

@ImUrX ImUrX requested review from xpple and Earthcomputer June 23, 2024 15:45
@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
@Earthcomputer Earthcomputer merged commit b751737 into Earthcomputer:fabric Nov 27, 2024
1 check passed
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