Introduction
Lib Sequence is designed to run a sequence of actions with predefined waits between each step.
Features
- Support placeholders (local placeholders and PlaceholderAPI)
- Can resolve chains (Player => Button => CommandBlock => Sequence) to detect the correct initiator
- Actions can be applied to a set of players (e.g. sending a message)
- Support multiple languages to print messages to each player in his own language
- Custom checks to abort a sequence if a predefined condition is not fulfilled (e.g. the player is outside a WorldGuard region)
- A lot of integration hooks, e.g. for custom actions, custom checks, custom chain resolver, custom player sets ...
- Permission System and Security Token to control sequence execution
- Integrated Directory to share sequences between plugins
- Detailed documentation as Github Wiki and javadoc
Example
Code (Text):
demo:
1:
action: broadcast
message: Sequence is started by %PLAYER%
wait-after-action: 10
2:
action: broadcast
message: Second notification 10 Seconds later
3:
action: command
command: time set noon
How to use
There are three ways you can use the LibSequence:
- Start a sequence using normal minecraft commands
- Use the API to start a sequence from your custom plugin
- Instanciate the java object to customize the LibSequence code itself
Custom Actions
Furthermore you can define you own actions and provide them for use by other plugins.
Your first step
Together with the plugin default config you receive an example sequence called "demo". Simple run "/sequence start demo" from the console. If this command should be executed by a player, you must give him the permissions "libsequence.command.start" and "libsequence.sequence.demo" first.
Documentation
Please see our Github Wiki at
https://github.com/Kirastur/LibSequence/wiki
Support
For support please contact us as discord
https://discord.gg/MBJjqUHQHR