ModsJava
SpigotMessageAPI
Minecraft Java mod. Downloads from the MC Java Mods app on Android.
⬇ Download on SpigotPlease report any bugs you found here.
Sounds are different for 1.8/1.10! (Download Sounds 1.8) (Download Sounds 1.10)
- Give server owners the best experience while setting up messages for your plugin.
- 1.8-1.12 Title Support
- 1.8-1.12 Actionbar Support
- Message (One line)
- Message List (Multiple Lines)
- Sound Support
- Use multiple options. (Ex: Title & Actionbar)
- Use only specific options. (Ex: only Title)
- Use your own variables.
- User-friendly
Spoiler: How To: Messages
Players will be able to configure their messages like explained below. You can use multiple options (for example, you are able to send a regular message and an actionbar!) This is the format of these messages, an example usage will be given below.
The format will change when a specific load type is used. It will replace the "Message", "MessageList", "Title", "ActionBar" and "Sound" with the config path:
<config-path>: '<message>'
<config-path>:
- '<message1>'
- '<message2>'
<config-path>:
FadeIn: <fade in time>
Stay: <stay time>
FadeOut: <fade out time>
Title: '<message>'
Subtitle: '<message>'
<config-path>:
Stay: <stay time>
ActionBar: '<message>'
<config-path>: <sound>
Regular Message:
Multiple Messages:
Title:
ActionBar:
Sound:
Code (format (Unknown Language)):
<config-path>:
Message: '<message>'
MessageList:
- '<message1>'
- '<message2>'
Title:
FadeIn: <fade in time>
Stay: <stay time>
FadeOut: <fade out time>
Title: '<message>'
Subtitle: '<message>'
ActionBar:
Stay: <stay time>
ActionBar: '<message>'
Sound: <sound>
Message: '<message>'
MessageList:
- '<message1>'
- '<message2>'
Title:
FadeIn: <fade in time>
Stay: <stay time>
FadeOut: <fade out time>
Title: '<message>'
Subtitle: '<message>'
ActionBar:
Stay: <stay time>
ActionBar: '<message>'
Sound: <sound>
Code (format (Unknown Language)):
<config-path>: '<message>'
<config-path>:
- '<message1>'
- '<message2>'
<config-path>:
FadeIn: <fade in time>
Stay: <stay time>
FadeOut: <fade out time>
Title: '<message>'
Subtitle: '<message>'
<config-path>:
Stay: <stay time>
ActionBar: '<message>'
<config-path>: <sound>
Code (regularmessage (Unknown Language)):
ToReceiver:
Message: '&7[%server-sender%&7] &6%suggest-player% &7> &7[%server-receiver%&7] &6%receiver%&7: &6%msg%'
Message: '&7[%server-sender%&7] &6%suggest-player% &7> &7[%server-receiver%&7] &6%receiver%&7: &6%msg%'
Code (multiplemessages (Unknown Language)):
ToReceiver:
MessageList:
- '&7[%server-sender%&7] &6%suggest-player% &7sent you a message:
- '&6%msg%'
MessageList:
- '&7[%server-sender%&7] &6%suggest-player% &7sent you a message:
- '&6%msg%'
Code (title (Unknown Language)):
ToReceiver:
Title:
FadeIn: 2
Stay: 10
FadeOut: 2
Title: '&7%sender%'
Subtitle: '&6%msg%'
Title:
FadeIn: 2
Stay: 10
FadeOut: 2
Title: '&7%sender%'
Subtitle: '&6%msg%'
Code (actionbar (Unknown Language)):
ToReceiver:
ActionBar:
Stay: 10
ActionBar: '&6%sender%&7: &6%msg%'
ActionBar:
Stay: 10
ActionBar: '&6%sender%&7: &6%msg%'
Code (sound (Unknown Language)):
ToReceiver:
Sound: <sound>
Sound: <sound>
Spoiler: How To: Use SpigotMessagesAPI
There are several things you'll have to do in order to use SpigotMessagesAPI. (Players will also have to install this plugin on their server)
Step 1:
Set " depends: [SpigotMessagesAPI]" in your plugin.yml
Step 2:
Import SpigotMessagesAPI to your project, different for each software you use. This option will most likely be called "library".
Step 3:
Register one of your config files.
Here is an example usage:
Step 4:
Register messages:
You can also put a load type in that method, that way it will only load that method:
Here is an example usage:
Step 5:
Use the plugin. Here are a few methods that you'll be able to use with SpigotMessageAPI.
Step 1:
Set " depends: [SpigotMessagesAPI]" in your plugin.yml
Step 2:
Import SpigotMessagesAPI to your project, different for each software you use. This option will most likely be called "library".
Step 3:
Register one of your config files.
Code (Text):
SpigotMessageAPI.registerConfigFile(<name>, new ConfigFile(<directory>, <file name>));
Code (Text):
ConfigFile configFile = new ConfigFile(getDataFolder().getPath(), "config.yml");
SpigotMessageAPI.registerConfigFile("config", configFile);
SpigotMessageAPI.registerConfigFile("config", configFile);
Register messages:
Code (Text):
SpigotMessageAPI.registerMessage(<name>, new Message(<config file>, <path>));
Code (Text):
SpigotMessageAPI.registerMessage(<name>, new Message(<config file>, <path>, LoadType.TITLE));
Code (Text):
SpigotMessageAPI.registerMessage("msg", new Message(configFile, "Messages.MSG"));
Use the plugin. Here are a few methods that you'll be able to use with SpigotMessageAPI.
Code (Text):
//Getter for config file
ConfigFile configFile = SpigotMessageAPI.getConfigFile(String name)
//Reload config file (with all messages setup for it)
configFile.reload();
//Getter for message
Message message = SpigotMessageAPI.getMessage(String name)
//Get message parser, to replace variables etc.
MessageParser mP = message.getParser();
//Replace variables
mP.parseVariable(String variable, String replacement)
//Send message
mP.send(CommandSender sender);
//Send message as long as it doesn't contain x, y, z... (Will be done per line if a list, the same for title and subtitle)
mP.send(CommandSender sender, String... cannotContain);
ConfigFile configFile = SpigotMessageAPI.getConfigFile(String name)
//Reload config file (with all messages setup for it)
configFile.reload();
//Getter for message
Message message = SpigotMessageAPI.getMessage(String name)
//Get message parser, to replace variables etc.
MessageParser mP = message.getParser();
//Replace variables
mP.parseVariable(String variable, String replacement)
//Send message
mP.send(CommandSender sender);
//Send message as long as it doesn't contain x, y, z... (Will be done per line if a list, the same for title and subtitle)
mP.send(CommandSender sender, String... cannotContain);
If you found any sorts of bugs or do you have any suggestions, please, put them in the comments so I'll be able to make this plugin better!
Quick facts
- Edition: Minecraft Java
- File type: .jar
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on Spigot — not every file is mirrored on our own servers.
Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.
SpigotMessageAPI is a free Minecraft Java mod. Downloaded 285 times (via Spigot). Download it and open it directly in the game.
![[IMG]](http://proxy.spigotmc.org/3b1c47e37c25be91c1d8806db63fe17814d9df7f?url=https%3A%2F%2Fwww.paypalobjects.com%2Fen_US%2Fi%2Fbtn%2Fbtn_donate_LG.gif)