Trigger 插件简介
Trigger 是一款兼容性极强的触发器插件,主要旨在赋予服务器管理员实现那些原本难以达成之功能的能力。 它采用简洁的配置语法,允许基于几乎任何游戏内事件进行复杂的条件判断与动作响应。 它拥有强大的版本兼容性(自 v1.5.0 起),同时也与众多插件核心及模组 API 保持兼容。 目前兼容:1.21.X, 1.20.X, 1.19.X, 1.18.X, 1.17.X, 1.16.X, 1.15.X, 1.14.X, 1.13.X, 1.12.X, 1.11.X, 1.10.X, 1.9.X, 1.8.X, 1.7.X, 1.6.X, 1.5.X, 1.4.X, 1.3.X, 1.2.X, 1.1.X, 1.0.X
✨ 核心特性
- 触发系统
支持超过 100 种原生事件:玩家移动、方块破坏、实体受伤、指令输入、世界时间变化……几乎所有游戏事件均可作为触发的起点。
事件可附加 ANY / ALL 模式,以实现对触发逻辑的精细控制。
触发器可启用/禁用,并分配优先级以确定执行顺序。
- 条件系统
内置大量条件占位符:玩家属性、物品信息、实体类型、世界状态、计时器变量等,满足各类判断需求。
支持逻辑组合:使用 and、or 和括号构建复杂的条件表达式。
支持正则匹配、数值比较、字符串比较以及取反操作(! 或 un 前缀)。
- 动作系统
可执行控制台命令、玩家命令(支持 OP 权限提升)、发送消息(普通消息、标题、动作栏)、播放音效、显示粒子效果等。
动作支持延迟执行({wait:seconds} 语法)以实现定时控制。
可指定未满足条件时的回退动作(un_command)。
- 区域系统
支持 WorldGuard 区域,并自带内置区域系统。区域可以是动态或静态的,并支持实时追踪。
允许配置区域相关方面,以实现定制化的区域行为。
- 群组系统
物品群组:定义包含 NBT、附魔和 Lore 的复杂物品,用于条件匹配或指令操作。
实体群组:管理实体类型、生命值、装备,并支持 UUID 追踪成员。
玩家群组:动态管理玩家集合,用于群组权限或事件绑定。
区域群组:动态管理区域,实现实时分析以进行及时的动作和条件处理。
触发器群组:同时管理多个触发器,便于更轻松地管理。
群组操作可通过指令或触发器动作动态添加或移除成员。
- 计时器与变量
计时器:创建正向或倒计时计时器。值的变化可触发事件。支持全局/私有作用域,并可持久化存储。
变量:存储任意数据类型(数字、字符串、布尔值)。可在条件中读取,并支持持久化存储。
计时器和变量均支持跨服务器同步(需要 BungeeCord 配置)。
- 自定义菜单与容器
菜单:创建自定义菜单内容,类似于 ChestCommands,但与触发器集成以实现更好的管理。
容器:菜单可作为容器,分为私有或公有。这解决了持久化玩家数据同步的问题,并允许配置物品插入/移除的权限。
- 自定义指令
自定义指令:玩家可根据加载的帮助内容了解如何配置和实现自定义指令功能。包括自定义指令权限节点功能。
- 更多目标选择器
从 v2.0.0 开始,新增了 4 个目标选择器:@t, @d, @y, @x。
@t - 用户正在注视的玩家或实体。
@d - 最近的实体。
@y - 随机实体或生物。
@x - 玩家注视的位置。
- JavaScript 脚本功能
从 v2.1.0 开始,其他插件可以轻松注册自定义条件和动作,从而与 Trigger 无缝集成。
在触发器中直接使用 JavaScript 脚本编写复杂逻辑——动态判断、循环、调用服务器 API——尽在掌握。
- 宠物系统
从 v2.1.0 开始,创造并培育专属宠物,它们将伴随你征战沙场,学习技能,穿戴装备,甚至进化为新形态。打造独一无二的战斗伙伴!
- 世界编辑系统
从 v2.1.0 开始,无需依赖 WorldEdit 即可创建如超平坦或虚空般的自定义世界。使用金斧头选择区域进行复制、粘贴、填充等操作以及其他标准的世界编辑动作。
- 数据统计与分析系统
从 v2.1.0 开始,记录详细的玩家数据,从击杀数到聊天消息。统计模块全面追踪玩家行为。使用 /tg stats 指令查看个人或他人的详细统计数据。支持 PlaceholderAPI,以便在计分板或菜单中实时显示数据。
- Web 管理系统
从 v2.1.0 开始,将你的服务器带入浏览器!Web 管理面板允许实时查看触发器、变量和计时器的状态,切换触发器的开/关,甚至调用 REST API 以与其他系统集成。配置简单,安全可靠,让你随时随地掌控服务器动态。
- 依赖项
本插件的所有依赖项均为可选;它基本上不需要其他插件即可运行。
- 其他信息
从现在开始,我们不再收取任何费用。本插件旨在解决无法实现的功能相关问题。如果你遇到有人重新发布并收费的情况,请及时举报。
作者:红伞伞白杆杆
Trigger Plugin Introduction
Trigger is a highly compatible trigger plugin, primarily designed to empower server owners to implement functionalities that are otherwise difficult to achieve. It uses a concise configuration syntax, allowing for complex conditional judgments and action responses based on almost any in-game event. It boasts powerful version compatibility (since v1.5.0) and also maintains compatibility with many plugin cores and mod APIs. Currently compatible with: 1.21.X, 1.20.X, 1.19.X, 1.18.X, 1.17.X, 1.16.X, 1.15.X, 1.14.X, 1.13.X, 1.12.X, 1.11.X, 1.10.X, 1.9.X, 1.8.X, 1.7.X, 1.6.X, 1.5.X, 1.4.X, 1.3.X, 1.2.X, 1.1.X, 1.0.X
✨ Core Features
- Trigger System
Supports over 100 native events: Player movement, block breaking, entity damage, command input, world time changes... Almost any game event can serve as a trigger starting point.
Events can be attached with ANY / ALL modes for fine-grained control over trigger logic.
Triggers can be enabled/disabled and assigned priority to determine execution order.
- Condition System
Built-in numerous condition placeholders: Player attributes, item information, entity types, world states, timer variables, etc., meeting any judgment requirement.
Supports logical combinations: Build complex conditional expressions using and, or, and parentheses.
Supports regex matching, numerical comparison, string comparison, and negation operations (! or un prefix).
- Action System
Can execute console commands, player commands (with OP elevation support), send messages (regular, title, action bar), play sounds, display particle effects, and more.
Actions support delayed execution ({wait:seconds} syntax) for timed control.
Fallback actions (un_command) can be specified when conditions are not met.
- Region System
Supports WorldGuard regions, and also features its own built-in region system. Regions can be dynamic or static, with real-time tracking.
Allows configuration of region-related aspects for customized regional behavior.
- Group System
Item Groups: Define complex items with NBT, enchantments, and Lore for condition matching or command operations.
Entity Groups: Manage entity types, health, equipment, supporting UUID tracking of members.
Player Groups: Dynamically manage player collections for group permissions or event binding.
Region Groups: Dynamically manage regions, enabling real-time analysis for timely actions and condition processing.
Trigger Groups: Manage multiple triggers simultaneously for easier administration.
Group operations can dynamically add or remove members via commands or trigger actions.
- Timers & Variables
Timers: Create count-up or countdown timers. Value changes can trigger events. Supports global/private scopes and can be persistent.
Variables: Store any data type (numbers, strings, booleans). Can be read in conditions and support persistence.
Both Timers and Variables support cross-server synchronization (requires BungeeCord configuration).
- Custom Menus & Containers
Menus: Create custom menu content, similar to ChestCommands, but integrated with triggers for better management.
Containers: Menus can act as containers, either private or public. This solves issues with persistent player data synchronization and allows configuration of item insertion/removal permissions.
- Custom Commands
Custom Commands: Players can learn how to configure and implement custom command features based on loaded help content. Includes custom command permission node functionality.
- More Target Selectors
Starting from v2.0.0, 4 new target selectors have been added: @t, @d, @y, @x.
@t - The player or entity the user is looking at.
@d - The nearest entity.
@y - A random entity or mob.
@x - The position the player is looking at.
- JavaScript Scripting Functionality
Starting from v2.1.0, other plugins can easily register custom conditions and actions for seamless integration with Trigger.
Write complex logic directly in triggers using JavaScript scripts – dynamic judgments, loops, calling server APIs – all within your grasp.
- Pet System
Starting from v2.1.0, create and nurture exclusive pets that will follow you into battle, learn skills, wear equipment, and even evolve into new forms. Forge unique combat companions!
- World Editing System
Starting from v2.1.0, create custom worlds like superflat or void without relying on WorldEdit. Use the golden axe to select regions for copy, paste, fill operations, and other standard world editing actions.
- Data Statistics & Analysis System
Starting from v2.1.0, record detailed player data, from kills to chat messages. The statistics module tracks player behavior comprehensively. Use the /tg stats command to view personal or others' detailed stats. Supports PlaceholderAPI for real-time data display in scoreboards or menus.
- Web Management System
Starting from v2.1.0, bring your server into the browser! The web management panel allows real-time viewing of trigger, variable, and timer statuses, toggling triggers on/off, and even calling REST APIs for integration with other systems. Simple configuration, secure and reliable, allowing you to control server dynamics anytime, anywhere.
- Dependencies
All dependencies for this plugin are optional; it basically requires no other plugins to function.
- Other Information
From now on, we do not charge any fees. This plugin is designed to solve problems related to unimplementable features. If you encounter someone reposting it and charging a fee, please report them promptly.
Author: 红伞伞白杆杆
下载 Trigger-触发器插件
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Trigger-触发器插件
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Trigger-触发器插件
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Trigger-触发器插件
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Trigger-触发器插件
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Trigger-触发器插件
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Trigger-触发器插件
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Trigger-触发器插件
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Trigger-触发器插件
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
添加了 JavaScript 脚本功能 添加了世界编辑功能 添加了网站服务器功能 添加了数据统计功能 增强了宠物系统
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
PacketEvents 是一款专为 Minecraft Java 版打造的协议库,旨在简化数据包的处理与传输。
插件
ExyliaPlugins 的库。
插件
通过对话框或铁砧界面帮助你的 Anthme
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
插件
为基于 Spigot/Paper/Folia 的服务器添加对 Vivecraft 的支持
插件
用于绘制游戏内地图或在浏览器中随探索实时进行地图绘制的实时地图。
评论 0
登录后参与评分
还没有评论,来抢沙发吧