Sueta
MU

MultipleMOTDBungee | Have a different MOTD and Icon dependin

1.1

A resource that allows you to have different MOTDs and Favicons depending on the ip requesting it.

·Plugin
  1. 1.1latestCommunication with SpigotAug 27, 2018
    Communication update: · Settings in config have been added to communicate with Spigot in case you guys wanted it How to recieve data on Spigot? Simple, just create a plugin which implements PluginMessageListener and on the onEnable add this: Code (Text): getServer().getMessenger().registerIncomingPluginChannel(this, "yourChannelOnBungee", this); And to use the incoming data on spigot use: 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(); } }
    155 downloads
  2. 1.0Aug 24, 2018
    54 downloads

Similar projects

Plugin →