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:
- 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
Great plugin!!!!
Can you provide some examples of the configurations?
I don't understand how to use the variable player, do you have to name a particular player or the plugin listens to any players actions?
Thanks!
Event plugin????????????????
@EnderSandman
Oh thank you! This is actually the first Plugin I submitted (Except a long time ago where it wasn't approved)
That's why it was bad formatting. Tried learning some new formatting to make this page smoother :D
This plugin looks like it will be real useful. Can't wait until it is released