44
0
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);
TriggerZones is actively maintained on GitHub under the GPL-3.0 license. Contributions, issue reports, and feature suggestions are welcome.
Партнёрский материал
Сервер для плагина TriggerZones - как у профи
Плагин TriggerZones создан для серверов: на своём сервере вы настраиваете его под себя и решаете, кому играть. Создать сервер с плагином TriggerZones для друзей можно за пару минут - BungeeHost всё уже подготовил.
Часто задаваемые вопросы
Совместимость
Создатели
Детали
Лицензия:
Опубликован:7 месяцев назад
Обновлён:7 месяцев назад