ModsJava
MultipleMOTDBungee | Have a different MOTD and Icon depending on the IP being used
What is this plugin?
MultipleMOTDBungee is a BungeeCord plugin that allows server owners to set a different Favicon(Server icon) and MOTD(Server Description) based on the ip that the user is trying to connect from.
Installation
How do i use it though?
Simple, let's say that you want the ip myserver.net to show the MOTD "&4My Amazing BungeeCord" and the Favicon "icon-1.png", you'll have to set it up in config like this:
Servers:
Server1:
ip: 'myserver.net'
motd: '&4My Amazing BungeeCord'
file: 'icon-1.png'
Default:
motd: '&cMotd'
Also, you'll need to have the file "icon-1.png" in your plugin's folder ("plugins\MultipleMOTDBungee") othewise it won't work.
If you want to change the default MOTD it's as easy as changing the line Default.motd in config.yml!
Communication update:
Simple, just create a plugin which implements PluginMessageListener and on the onEnable add this:
getServer().getMessenger().registerIncomingPluginChannel(this, "yourChannelOnBungee", this);
And to use the incoming data on spigot use:
public void onPluginMessageReceived(String channel, Player player, byte[] bytes) {
if (!channel.equals("yourChannelOnBungee")) {
return;
}
ByteArrayInputStream stream = new ByteArrayInputStream(bytes);
DataInputStream in = new DataInputStream(stream);
try {
//Get the message from bungee
String message = in.readUTF();
//Log it into console for debugging purposes if you want to
getLogger().info(text);
//Do whatever you want with your data
} catch (IOException e) {
e.printStackTrace();
}
}
Future features?
I do not have any idea of what to add to it, just give me suggestions and please do not use the reviews section to post bug reports, use github.
MultipleMOTDBungee is a BungeeCord plugin that allows server owners to set a different Favicon(Server icon) and MOTD(Server Description) based on the ip that the user is trying to connect from.
Installation
- Download latest release of the plugin.
- Drag file to your Proxy's plugin folder.
- Start your proxy.
How do i use it though?
Simple, let's say that you want the ip myserver.net to show the MOTD "&4My Amazing BungeeCord" and the Favicon "icon-1.png", you'll have to set it up in config like this:
Code (Text):
Servers:
Server1:
ip: 'myserver.net'
motd: '&4My Amazing BungeeCord'
file: 'icon-1.png'
Default:
motd: '&cMotd'
If you want to change the default MOTD it's as easy as changing the line Default.motd in config.yml!
Communication update:
- Settings in config have been added to communicate with Spigot in case you guys wanted it
Simple, just create a plugin which implements PluginMessageListener and on the onEnable add this:
Code (Text):
getServer().getMessenger().registerIncomingPluginChannel(this, "yourChannelOnBungee", this);
Code (Text):
public void onPluginMessageReceived(String channel, Player player, byte[] bytes) {
if (!channel.equals("yourChannelOnBungee")) {
return;
}
ByteArrayInputStream stream = new ByteArrayInputStream(bytes);
DataInputStream in = new DataInputStream(stream);
try {
//Get the message from bungee
String message = in.readUTF();
//Log it into console for debugging purposes if you want to
getLogger().info(text);
//Do whatever you want with your data
} catch (IOException e) {
e.printStackTrace();
}
}
I do not have any idea of what to add to it, just give me suggestions and please do not use the reviews section to post bug reports, use github.
Quick facts
- Edition: Minecraft Java
- File type: .jar
- Minecraft versions listed: 1.7, 1.8, 1.9
- 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.
MultipleMOTDBungee | Have a different MOTD and Icon depending on the IP being used is a free Minecraft Java mod. Compatible with Minecraft 1.7, 1.8, 1.9, 1.10 and newer. Downloaded 273 times (via Spigot). Download it and open it directly in the game.