Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run commands on game actions #220

Open
daboross opened this issue Jul 4, 2016 · 0 comments
Open

Run commands on game actions #220

daboross opened this issue Jul 4, 2016 · 0 comments

Comments

@daboross
Copy link
Contributor

daboross commented Jul 4, 2016

This shouldn't evolve into a scripting situation, all this should do is allow a few simple commands to be executed when a player joins the queue, and when the game is finished.

Configuration format should be:

# Run commands on specific timing places.
run-commands-on:
    queue-join:
    # For queue-join, @p will be replaced with the name of the player who joined
    - command1 @p
    - command2 @p
    game-end:
    # For game-end, each command will be run once for each winner, and @p will be replaced with
    # the name of that specific winner
    #
    # This will only run once for non-team games, but be warned it will run multiple times when teams
    # are enabled. These commands will be run 1 second after players are teleported back and all 
    # items saved are restored.
    - give @p log 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant