This is a discussion topic for the Ore project, PixelmonOverlay. View the full project on Ore for downloads and more information.
This plugin lets you send preconfigurated announcements through the Pixelmon’s Notice Overlay (topbar).
PlaceholderAPI is supported but optional. However, you won’t be able to retrieve any information without it, not even the player’s name.
- Launch the server with the plugin.
- Modify the messages in
/config/pixeloverlaybroadcaster.confaccording to the these values.
broadcastInterval (defaults to 300 seconds) sets the interval after which the announcement will change.
silenceInterval (defaults to 300 seconds) sets the time to wait between two announcements. Set to 0 to disable.
announcements contains the ordered list of all the (guess what?) announcements. They will be shown according to their position in the list.
||Specifies the position of the sprite.|
||List of strings.||Sets the lines to be shown to the player. Formatting codes and placeholders are supported.|
||Decimal number. Example
||How long this announcement will last for. If not present,
||Specifies the type of the sprite, read below for more info.|
Pokémon’s spec. Example:
||The ItemStack.||Required by
I fixed a lot of stuff, but also implemented new bugs😅. There are some problems with the colors of the window, I’ll fix them for Pixelmon 7.0.4.
However, you can now use any kind of item and pokémon, as long as the client knows how to render them, and
scale has been removed, you can change their size through the growth’s pokémon spec, like
gr:giant to make them bigger, and
gr:microscopic to make them smaller.
You can use the character
& to style your lines with colors and formattings, while to use the character
& normally you have to escape it by placing
\\ before. For example,
&1Pikachu \\& Solgaleo will print a blue (
&1) string saying
Pikachu & Solgaleo.
I split the plugin to api and implementation, and now other plugins can use the Pixelmon Notice Overlay to show off messages and custom announcements.
OverlayService service = Sponge.getServiceManager().provideUnchecked(OverlayService.class); Overlay overlay = service.create([...]); service.show(overlay);
This might seem confusing, I’ll update the thread with the link to the docs as soon as I finish writing them.
Thanks to GT86 for sponsoring this plugin.