
Что это
A standard library to send and receive plugin messages on a proxied network
- Тип: мод
- Загрузчик: fabric
- Версии Minecraft: 1.21.1 – 1.21.4
- Скачиваний на Modrinth: 1 591
Подробно
A Fabric plugin messaging library! This server-sided mod will register a Plugin Message Packet (PluginMessagePacket.class) and a Plugin Message Event (PluginMessageEvent#EVENT) for developers to use in their projects.
Without this mod, developers would need to register their own packets, which would cause conflicts if multiple are present at the same time. By using the Packet and Listener provided here, this issue is avoided.
Developer Info Add the mod as a dependency in your gradle build script! This will include the API in your final build.
dependencies { modImplementation(include("com.pokeskies:fabricpluginmessage:1.0.0")) }
Sending Then you can send Plugin Messages by creating an instance of the PluginMessagePacket class and then sending it! You can either create it by passing a byte array or a FriendlyByteBuf: java ByteArrayDataOutput outputStream = ByteStreams.newDataOutput(); outputStream.writeUTF("Connect"); outputStream.writeUTF("cobblemon");
ServerPlayNetworking.send(player, new PluginMessagePacket(outputStream.toByteArray()));
Receiving If you need to receive a Plugin Message from the proxy, you can subscribe to the PluginMessageEvent: java PluginMessageEvent.EVENT.register((payload, context) -> { ByteArrayDataInput inputStream = ByteStreams.newDataInput(payload.getData()); String channel = inputStream.readUTF(); if (channel.equals("GetServers")) { String serversList = inputStream.readUTF(); System.out.println("Proxy Servers: " + serversList); } });
Support A community support Discord has been opened up for all Skies Development related projects! Feel free to join and ask questions or leave suggestions :)
Как установить
Скачайте файл на официальной странице ниже и положите его в папку mods (для модов) или plugins (для плагинов) вашего сервера или клиента. Для модов нужен совместимый загрузчик. Версия должна совпадать с версией Minecraft.
Текст подготовлен автоматически из описания на Modrinth и ждёт проверки редакцией.
Комментарии 0
Комментарии к этому материалу отключены.
Читайте также
Dangerous Elytras
Server-side mod that adds friction damage when landing with the elytra and makes other tweaks to make elytra flight more dangerous 06.12.2026
Blade of a Thousand Winds
a pretty cool sword ngl thats slices and dices 06.12.2026
asdf TacoMaster's World
A mod which adds some funny mobs to the game, such as screaming possums and Skibidi Toilets! 06.12.2026
cosmer wax and Wayne
Most of the tech and magic in Alloy of Law 06.12.2026
Statichitboxes
This is a Hitboxes Mod which helps you in pvp gamemodes like -> nethpot 06.12.2026
Toaster's Stack Size Mod
Increased stack sizes for certain items, with code tweaks for even greater stacks. 06.12.2026