▶️ ЗАБЕРИ СВОИ 8 ПОДАРКОВ 🎁 ПРИ СОЗДАНИИ СВОЕГО МАЙНКРАФТ СЕРВЕРА
Плагины/TriggerZones

TriggerZones

Allows developers to easily create Trigger Zones

2
0
THIS PLUGIN IS USELESS ON ITS OWN


TriggerZones is a lightweight library that allows developers to easily create and manage regions and trigger zones within plugins without having to rely on a heavily bloated plugin or library and without having to re-create the logic yourself.


Key Features
Define and register trigger zones with simple API calls
Execute custom logic when a player enters and exits a trigger zone
Has an optional in-game editor (separate jar that can be found on the github)


Example Code

TriggerZones plugin = (TriggerZones) pluginManager.getPlugin("TriggerZones");
RegionManager regionManager = plugin.getRegionManager();
Location minCorner = new Location(getServer().getWorld("world"), 100, 50, 100);
Location maxCorner = new Location(getServer().getWorld("world"), 110, 60, 110);
TriggerZone trigger = new TriggerZone("example_zone", minCorner, maxCorner);
trigger.addAction(TriggerZone.TriggerEvent.ENTER, new SendMessageAction("You have entered a zone");
regionManager.addRegion(trigger);


Support & Contributions
TriggerZones is actively maintained on GitHub under the GPL-3.0 license. Contributions, issue reports, and feature suggestions are welcome.

Совместимость

Minecraft: Java Edition

1.21.x1.20.x1.19.x1.18.x1.17.x1.16.x1.15.x1.14.x1.13.x

Платформы

Поддерживаемые окружения

Сервер

Детали

Лицензия:LicenseRef-All-Rights-Reserved
Опубликован:1 неделю назад
Обновлён:1 неделю назад
Главная