Runs configured commands when players cross WorldEdit-defined region boundaries, a flexible building block for in-game cutscenes, gates, and event scripting.
CommandTriggers lets vanilla or other plugin commands execute automatically when certain events fire and conditions are met. The architecture is built around abstract triggers that listen for events and run an attached list of commands when activated.
Currently, only one trigger type is implemented: region, which fires when a player enters or exits a WorldEdit-selected region. The plugin's structure (an abstract Trigger class and a TriggerService) is set up so additional trigger types can be added later, block-break, item-pickup, login, scheduled, and so on.
Commands are executed as console, meaning they run with full server permissions regardless of who triggered them. The substring %EVENT_PLAYER% in any attached command is replaced with the username of the player who fired the trigger before execution, so a single trigger can target whoever crossed it (e.g. tp %EVENT_PLAYER% 0 80 0).
Regions and triggers, including their attached command lists, are persisted to the plugin's config.yml on every change and reloaded on startup.
//wand and click two corners to define a 3D region.
/ct regions create welcome_zone
/ct triggers create welcome region welcome_zone onEnter
/ct triggers trigger welcome commands add "say Welcome to the lobby!"
All commands are also available under the alias /ct. Permission required: commandtriggers.admin.