🔊 PixelAutoMessages [v1.0] [1.8.9 - 1.11.2]


#1

PixelAutoMessage :loud_sound:

PixelAutoMessage send messages to all players on configured time with all JSON events available on SpongeAPI.

This is a simple plugin to send messages to all players online.
The only comand is:

Command: /pam reload
Permission: pam.cmd.reload

All the configuration is commented to be easy to configure (yes, theres a lot of options).


#Configuration file:
To add more messages, copy the section “0” and paste changing the section to “1”, and increase this number for each new section.

configs {
    interval=60
    prefix="&7[&aAutoMessage&7]&r "
    random=false
}

# Set you messages here! Follow the example and add numbers as index for more messages. 
# All fields (except permission) accept the player placeholder {player}.
# 
# Note: Use the fields 'click-cmd', 'click-url' and 'suggest-cmd' one at time.
messages {
    "0" {
        # Any colored message to send to server
        a-message="&aThis is the default message. &6Change me now {player}!"

        # Players online needed to show this message. Set 0 always show.
        b-players-online=0

        # Set permissions needed to player receive this message. Leave blank to disable.
        c-permission=""

        # Colored hover message.
        d-on-hover="&7Hi {player}, i am a hover message!"

        # Print a command on player chat.
        e-suggest-cmd="msg {player} private message to me?"

        # Command to run on click.
        f-click-cmd="say Commands work {player}!"

        # Open a url on click.
        g-click-url="http://google.com"
    }
}

#Download:

https://ore.spongepowered.org/FabioZumbi12/PixelAutoMessages



AutoBroadcaster Plugin
#2

Does it support /sponge plugins reload?


#3

I have no errors when using this command with PAM, but theres a event that i can listen on my plugin for this command?


#4

Yes, it’s how you’re supposed to reload plugins. GameReloadEvent.


#5

Thanks ^^

Now support plugins reload :wink:


#6

Great plugin! Would you be able to add a configuration for how many messages need to be sent in chat by players before an announcement is posted? That would prevent announcements from being too spammy.


#7

Messages is randomly sended?


#8

For now is Only ordered.


#9

Messages is randomly sended?


#10

Nice plugin.
Better than AutoBroadcaster
Everything works without problem.


#11

can someone please send me ascreenshot from the config i don’t get this plugin there is no good explanation for where to put the broadcast text


#12

Have you run the plugin? On first run will generates the config file with example of usage, but anyway, i will add config example here :wink:


#13

Added random messages option:

#Download:

Download: https://github.com/FabioZumbi12/Sponge-PixelAutoMessage/releases
Source: https://github.com/FabioZumbi12/Sponge-PixelAutoMessage


#14

The config file is fairly confusing on where to place new messages. Can you please give us an idea of where?


#15

You copy the config section “0”, make your changes and change to “1”… And increase the number on each message following the example.


#18

I’m curious - why the config structured {"0" = { ... }, "1" = { ... }} instead of just [{ ... }, { ... }]?


#19

Hmmm… Currently I have cron jobs to run messages and commands on the server, during scheduled times. But this seems significantly more practical.

Have several suggestions for this plugin:
Any way you can add intervals for each message, I have a vote message I don’t want to annoy the players with, so I run it every 6 hours. While I have a “Removing entities” message running every 30 minutes.

Add a way to run commands during certain intervals, would be very useful. Like, a command that clears entities and whatnot.

Add ability to “delay” a message/command from running. So, if I have a “Removing entities” message going out, I would want to delay the command by 30 seconds to give players a warning.
(Alternatively using something like cron jobs’ timing would be neat. * * * * *, where each asterisk being a different measurement of time. [Minutes] [Hours] [Days] [Month] [Day of the Week] That way if I have scheduled events every Wednesday at 4am system time I would do 0 4 * * 3 “say Event is starting”)


#20

Because i need keys to run ordered or random messages.


#21

… how so? The same integer that gives you a key can be used as an index of a List.


#22

Ok, whats the problem to use like i used? Its wrong? Maybe i dont know about this lists or need to learn about.