
Server Events
A Fabric mod enhancing server-side event handling with a Bukkit-inspired system, extending and encapsulating Fabric API events.
Обновлён 23 апреля 2026 г. · опубликован 13 мая 2025 г.
Server Events
Server Events is a support library for Fabric server development, designed to enhance the Fabric API's limited event system. It offers a Bukkit-like event framework while adhering to Fabric's minimalist philosophy.
The mod doesn't wrap CommandRegistrationCallback and DynamicRegistrySetupCallback from Fabric API.
Installation
- Import this package to your project.
- Add
servereventsto your mod depends.
repositories {
maven "https://mvn.suc.icu"
}
dependencies {
implementation "icu.suc.mc:serverevents:<version>"
}
Since 2.0.0, the groupId has been changed from icu.suc to icu.suc.mc.
Usage
ServerEvents provides a simple API for registering and processing events.
Here is an example of a player modifying broadcast information:
import net.fabricmc.api.ModInitializer;
import net.minecraft.network.chat.Component;
import net.minecraft.world.item.Items;
import icu.suc.mc.serverevents.ServerEvents;
public class ExampleMod implements ModInitializer {
@Override
public void onInitialize() {
ServerEvents.Player.MODIFY_JOIN_MESSAGE.register((player, message) ->
Component.literal("[+] ").append(player.getName()));
}
}
Since 2.2.0:
import icu.suc.mc.serverevents.Listener;
import icu.suc.mc.serverevents.ServerEvents;
import net.fabricmc.api.ModInitializer;
import net.fabricmc.fabric.api.event.Event;
import net.minecraft.network.chat.Component;
import net.minecraft.server.level.ServerPlayer;
import org.jetbrains.annotations.NotNull;
public class ExampleMod implements ModInitializer, Listener, ServerEvents.Player.Join.ModifyMessage {
@Override
public void onInitialize() {
ServerEvents.register(this);
}
@Override
public @NotNull Event<?>[] events() {
return new Event[]{ServerEvents.Player.Join.MODIFY_MESSAGE};
}
@Override
public @NotNull Component modifyJoinMessage(@NotNull ServerPlayer player, @NotNull Component message) {
return Component.literal("[+] ").append(player.getName());
}
}
License
This project is licensed under the MIT License © 2025 sucj.
Версии
| Версия | Канал | Игра | Загрузчики | Дата | Скачать |
|---|---|---|---|---|---|
| 2.2.1+26.1 | Релиз | 26.1, 26.1.1, 26.1.2 | fabric, quilt | 23 апреля 2026 г. | Скачать (73 КБ) |
| 2.2.1+1.21.11 | Релиз | 1.21.11 | fabric, quilt | 23 апреля 2026 г. | Скачать (72 КБ) |
| 2.2.0+26.1 | Релиз | 26.1, 26.1.1, 26.1.2 | fabric, quilt | 20 апреля 2026 г. | Скачать (73 КБ) |
| 2.2.0+1.21.11 | Релиз | 1.21.11 | fabric, quilt | 20 апреля 2026 г. | Скачать (71 КБ) |
| 2.1.1+26.1 | Релиз | 26.1, 26.1.1, 26.1.2 | fabric, quilt | 14 апреля 2026 г. | Скачать (72 КБ) |
| 2.1.1+1.21.11 | Релиз | 1.21.11 | fabric, quilt | 14 апреля 2026 г. | Скачать (71 КБ) |
| 2.1.0+26.1 | Релиз | 26.1, 26.1.1, 26.1.2 | fabric, quilt | 14 апреля 2026 г. | Скачать (71 КБ) |
| 2.1.0+1.21.11 | Релиз | 1.21.11 | fabric, quilt | 9 апреля 2026 г. | Скачать (70 КБ) |
| 2.0.0+1.21.11 | Релиз | 1.21.11 | fabric, quilt | 5 апреля 2026 г. | Скачать (66 КБ) |
| 1.3.0+1.21.11 | Релиз | 1.21.11 | fabric, quilt | 2 апреля 2026 г. | Скачать (65 КБ) |
| 2025.12.1 | Релиз | 1.21.11 | fabric | 15 декабря 2025 г. | Скачать (77 КБ) |
| 2025.8.3 | Релиз | 1.21.8, 1.21.9, 1.21.10 | fabric | 4 сентября 2025 г. | Скачать (78 КБ) |
| 2025.8.1 | Релиз | 1.21.8 | fabric | 31 августа 2025 г. | Скачать (77 КБ) |
| 2025.7.3 | Релиз | 1.21.8 | fabric | 27 июля 2025 г. | Скачать (76 КБ) |
| 2025.7.2 | Релиз | 1.21.7, 1.21.8 | fabric | 20 июля 2025 г. | Скачать (76 КБ) |
Показаны последние 15 из 20 версий.
Ченджлог
2.2.1+26.1Релиз26.1, 26.1.1, 26.1.2 · 23 апреля 2026 г.
What's Changed
- Add
-Dserverevents.disableeventpriorityby @KKW557 in https://github.com/sucj/serverevents/pull/19 - Bump version to 2.2.1 by @KKW557 in https://github.com/sucj/serverevents/pull/20
Full Changelog: https://github.com/sucj/serverevents/compare/2.2.0+26.1...2.2.1+26.1
2.2.1+1.21.11Релиз1.21.11 · 23 апреля 2026 г.
What's Changed
- Add
-Dserverevents.disableeventpriorityby @KKW557 in https://github.com/sucj/serverevents/pull/18 - Bump version to 2.2.1 by @KKW557 in https://github.com/sucj/serverevents/pull/21
Full Changelog: https://github.com/sucj/serverevents/compare/2.2.0+1.21.11...2.2.1+1.21.11
2.1.0+1.21.11Релиз1.21.11 · 9 апреля 2026 г.
- Added
icu.suc.mc.serverevents.ServerEventPriority
2.0.0+1.21.11Релиз1.21.11 · 5 апреля 2026 г.
- Changed groupId from
icu.suctoicu.suc.mc. - Added docs for mixins.
1.3.0+1.21.11Релиз1.21.11 · 2 апреля 2026 г.
Update icon
...
2025.12.1Релиз1.21.11 · 15 декабря 2025 г.
the EntitySleepEvents.ALLOW_SLEEP_TIME event has been removed #4930
Комментарии
Загружаем…