Evented

This plugin allows you to program events.

Commands:

  • /as <player> <action> <command>
  • /when <player> <event> <action> <command>
  • /eventlist
  • /cancel <id>
  • /if <word> <check> <word> <command>
  • /do <command> [and] <command> [and] <command> et.c
  • /wait <ticks> <command> Waits a certain amount of ticks before executing.
  • --- If you are having problems with a message appearing over another message, such as join message, just wait 1 tick.
  • /silent Execute a command without any output.
  • --- If the command is a vanilla command you will have to disable the property broadcast-console-to-ops=false in server.properties

    Players: The players on your server
    Events: joins, leaves, and runs_command
    Actions: say, run
    Command: The command you want to run when the event fires / The condition is true
    ID: The ID of the event. You retrieve it when doing /when and /eventlist
    Word: The word you want to compare with
    Check: equals, equalsIgnoreCase

Variables: Surround the variable name with % and % to retrieve information about the current "session"
All variables:

  1. When player runs command the command is stored in %command%

Examples:

/when LEGOlord208 runs_command run /if %command% equalsIgnoreCase nick /do /kill LEGOlord208 and /broadcast LEGOlord208 tried to change nick and /nick LEGOlord208 Pooper
Notice: The command nick and broadcast is added by Essentials When I do /nick, and it doesn't matter if I pass in a nick or not, I'll still be killed, "LEGOlord208 tried to change nick" will be announce and I'll change (back) to "Pooper". Basically... NO ESCAPE

Of course you can do many things. For example a greeting to the Owner!
/when LEGOlord208 joins say LEGOlord208 is the owner
Now say will say it as you, and if it's the console it will be announced as "[CONSOLE]".

Some use of /as!
What if you want to troll someone?
/when Noob123 leaves run /as Noob123 say I'm a noob and I'm now out of here!

Of course, as, if, and do doesn't need to be ran by /when!
This could be good in command blocks!
/do say Hello and /say Look I can say two things

Slashes before commands are optional.



Last message: GIHDHAB
https://github.com/LEGOlord208/Evented


Comments

Posts Quoted:
Reply
Clear All Quotes

About This Project

  • Project ID
    97170
  • Created
    Jan 13, 2016
  • Last Released File
    Jan 26, 2016
  • Total Downloads
    636
  • License

Categories

Members

Recent Files

Bukkit