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

[Feature Request] "CustomText" features with support for placeholders, formatting codes, hover text, click actions, multiple pages, etc. #119

Open
Weasel-Beans opened this issue Aug 17, 2022 · 3 comments
Labels
accepted enhancement New feature or request

Comments

@Weasel-Beans
Copy link

Weasel-Beans commented Aug 17, 2022

I think that support for optional but fleshed out "CustomText" commands would be within the general scope of this plugin and would be a welcome addition to it's features.

What I mean is something similar to what the EssentialsX customtext command does, where you type a certain command (eg. /announcerplus customtext [filename/title] [optional player username]) and it returns you (or a specified player) a page in the chat with one or more lines containing text configured by the server admin. This works well with Bukkit's command aliases as well.

There are countless possible uses for this feature for any server owner, namely providing information to players such as rules, guides, etc, or to parse and display placeholders to them.

I was surprised to see this feature missing from this plugin, as it seems like it can very nearly accomplish it already. Originally I was going to use EssentialsX for this, but the customtext feature in that plugin does not support placeholders and other formatting. Other plugins I've seen on the issue are outdated or also lacking various features that AnnouncerPlus uses, such as what I listed in the title; support for PAPI, formatting codes, hover text, click actions, multiple pages, etc.

@Weasel-Beans Weasel-Beans added the enhancement New feature or request label Aug 17, 2022
@jpenilla
Copy link
Owner

I feel like this can already be accomplished with the broadcast commands the custom placeholders in the main config

@Weasel-Beans
Copy link
Author

Weasel-Beans commented Aug 19, 2022

Not sure that works. The broadcast command would send the message to the whole server/world, and cannot be configured to have preset messages within the plugin. Also even with setting up Bukkit command aliases for the send command, a player would still need announcerplus.send permissions, which would allow them to send anything they want to anybody else on the server.

The feature that I'm looking for would work so that you could set up messages in individual files much like with the other areas of AnnouncerPlus, and a player with the permission to run the customtext command and permission to see a particular message could type something like /announcerplus customtext [filename/title] [optional player username] to see that message displayed to them, but not other players. With a separate permission for sending the message to other players instead, for admin use. Or additionally admin commands to broadcast a message from that file to everyone.

Server admins could easily set this up with Bukkit's command aliases feature to make it so that typing something like '/rules' would display a detailed and professional looking list to them, with the ability to interact through clicking, open additional pages corresponding to that file, etc. Or another example would be typing something like /playtime and having a message sent to them that displays placeholders from other plugins showing their playtime, or any other information the admin wants to put there.

This video demonstrates the somewhat primitive implementation of this in Essentials: https://www.youtube.com/watch?v=aJxnCAjtUr0

An outdated plugin with a similar but also inferior implementation: https://www.spigotmc.org/resources/customtext.69905/

And here's a description of a seemingly well done customtext feature bundled within the paid plugin CMI: https://www.zrips.net/cmi/custom-text/

I suggest this for AnnouncerPlus because this optional feature seems like it'd naturally go well with the join/leave and automessage features, and because AnnouncerPlus seems like it has most of what it needs to pull it off already.

@jpenilla
Copy link
Owner

So, I think this can be done with more advanced alias plugins that can run a specific command with elevated permissions. However I'm not opposed to adding something built in to AP. Not sure when I will get around to it but marking as accepted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accepted enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants