Configuration Guide
AutoMessage features a fully dynamic configuration to allow customization of almost every aspect of the plugin. If you would prefer to use the in-game commands then you do not need to read this however many users prefer editing the file manually then reloading the config. Always verify that your YAML syntax is correct here!
Config:
settings: enabled: true min-players: 5 log-to-console: true message-lists: regular: enabled: true random: false interval: 45 expiry: -1 messages: - '&1First&r message \nin the default list!' - '&2Second&r message \nin the default list!' - '&3Third&r message \nin the default list!' - 'These messages will be displayed to users with \nautomessage.receive.default!' json: enabled: true random: false interval: 45 expiry: -1 messages: - '{text:"Hover over me!",hoverEvent:{action:show_text,value:[{text:"Woah, you just hovered over me!",color:blue}]}}' - '{text:"Click me to run a command!",clickEvent:{action:run_command,value:"/say Clicked."}}' - '{text:"Click me to open Google!",clickEvent:{action:open_url,value:"http://google.com"}}'
Message Lists:
Messages Lists are the basis of AutoMessage. They allow you to have multiple sets of messages that you can send to different players or groups. # Pick a name to represent your list.
- Copy the format from the default configuration shown above.
- Modify the settings as desired until it fits your needs perfectly.
- Verify that there are no errors with your config then save.
- Reload the configuration and add the permission automessage.receive.(message-list) where (message-list) is the newly created list to the appropriate players or groups.
Configuration keys:
Key | Values | Description |
---|---|---|
enabled | true/false | Enable or disable the entire plugin from broadcasting messages on the server. |
min-players | any positive integer | Specify the minimum number of players that must be online for messages to be broadcasted on the server. |
log-to-console | true/false | Messages will not be displayed in the console; however, they will be sent to the members. |
message-lists | array of message lists | This is where you define your message lists. Each message list needs a unique name which allows you to assign its permission to accordingly. |
enabled | true/false | Enable or disable a specific message list from broadcasting messages on the server. |
interval | any positive integer | Specify the interval at which messages from this list will be broadcasted on the server. |
random | true/false | Enable or disable randomised broadcasts. |
expiry | a time in milliseconds | A time in milliseconds in which the message list will stop expiring or -1 if the list should not expire. |
messages | array of strings | A list of messages that will be broadcasted on the server. Accepts both plain and JSON messages. |
Configuration Tutorial:
- Open the config.yml located in the AutoMessage folder in your plugins directory in your favorite text editor.
- Edit the values accordingly click here if you need a description of the value types.
- Add or edit the message lists and configure them to your liking!
- Edit the messages to your liking. Feel free to add more or remove some whatever fits your server the best. Be sure that you enclose each message with ' ' and have proper spacing infront of the messages!
- Copy and paste your config into a YAML syntax checker such as the one found here; fix any errors that occur.
- Re-paste your "fixed" config back into the text editor.
- Save your file then reload the config from console or from in-game by doing /am reload!
- Give the appropriate permission to the players or groups who you want to receive the messages in the message list.
Apostrophes:
- Apostrophes can be added by replacing single apostrophes ( ' ) with double apostrophes ( '' ).