SayWhat
SayWhat
SayWhat (pronounced: "Say whaaaaaaaaat!") saves typing time. Store abbreviations for your commonly used admin messages and retrieve them with just a few keystrokes.
Some examples of SayWhat in action:
On a server with the name "A Freebuild Server" with message of the day "Have fun building":
- "swr w Welcome to %servername. %motd!" - creates a new abbreviation, w.
- "sw w" - Sends the message "Welcome to A Freebuild Server. Have fun building!", as if you typed it yourself.
- "swm w SomePlayer" - Sends the welcome message as a private message to the player, "SomePlayer".
- "swl" - Lists all stored abbreviations.
- "swl w" - Lists the message stored against the "w" abbreviation.
It's early days and comments / suggestions / bug reports are most welcome, especially if you could take the time to create a ticket. Thanks!
Commands
- sw [abbreviation] - Plays back a stored abbreviation.
- swl - Lists all stored abbreviations.
- swl [abbreviation] - Lists a stored abbreviation and its message.
- swm [abbreviation] [Player1] [Player2] [Player n] - Sends an abbreviated message to all named players.
- swr [abbreviation] [message sent in place of abbreviation] - Stores an abbreviation and corresponding message.
- swdel [abbreviation] - Deletes a stored abbreviation.
- swload - Reloads previously saved messages from config.yml. Useful if edits/deletions have gone bad.
- swsave - Saves all messages to config.yml. Save is called automatically on plugin reload or server shutdown. You can also save edits using this command.
Variables
Put one of these variables in a SayWhat abbreviation and it'll get replaced with corresponding player or server information. All variable names begin with '%%' and they are case sensitive. More are to follow, but so far there are variables for player location, current item held, server name and motd. Be sure to let us know if you've got ideas for any more.
Player variables
- %%inmyhand - replaced with the name of whatever item you're holding.
- %%myloc - replaced with your current location
Server variables
- %%motd - replaced with the server's message of the day
- %%servername - replaced with the server's name
Permissions nodes:
- saywhat.sw - Can playback stored abbreviations
- saywhat.swl - Can list stored abbreviations
- saywhat.swm - Can send abbreviations as private messages
- saywhat.swr - Can record new abbreviations
- saywhat.swdel - Can delete stored abbreviations
- saywhat.swload - Can reload abbreviations from config.yml
- saywhat.swsave - Can save abbreviations to config.yml
@Chaeris
Thanks for the suggestions. Both ideas sound easy enough. I'll see what I can do.
@Coasterfan312
Thanks for posting. This is a great idea and I'll get to work on it.
This looks like a really useful plugin. Variables would be nice, but it sounds like it could get awkward and/or confusing to use them. Please release this soon! :D
I probably would use this plugin for my server but as the comment, i think you should a variables.
When the plugin will get released, you should add little variables: For exemple, "Welcome $name to my lovely server" would automatically replace $name by the last connected person...
"Do you need any $item" would replace $item with the item you have in hand...