VariableTriggers
Make your own plugin like features and more using VariableTriggers
This is a very powerful plugin that has unlimited potential. Create triggers that run lines of script when a player Clicks or Walks on a block (dirt, door, switch, trigger, torch, any block) or Create Event Triggers such as PlayerDeath , EntityDeath, BlockBreak, BlockPlaced, Join, Quit, Respawn, Interact and EntitySpawn that also run scripts. You can define Area Triggers and Command Triggers as well. You can use Dynamic Object variables and conditional IF and ELSE statements in the scripts. You can run any command that a player or OP can run and many speacial built-in commands to Teleport, Spawn Entities, Play Effects Visual or Sound, Set Blocks, Toggle Blocks, Check Players Heath and much more!. The scripts are executed on their own threads to take the strain off of the main server thread.
@disciple218
And so does VT.
Backup/remove all old files, use the version you want (1.3.3.1 or 2.0.3) and start the server. In 2.0.3 it is in the settings file. In 1.3.3.1 it's a seperate file.
Like any other plugin.
@KyadCK
Ok, getting a little frustrated now... Where do I enter my LOGIN and DATABASE information??
There is no mysql.yml file, like it says in the documentation; and there is nothing in settings.yml pertaining to MySQL. Most plugins have a section in a config file with entries for username, password, database name, port, etc.
@disciple218
Literally @MYSQL @obj.var <statement>. As in legit SQL statements. As if you were typing in SQL command line.
Regular SQL info, like any other plugin.
Anyone know how to use the @MySQL command? What needs to go in settings.yml?
@JHXSMatthew
Spigot's async checker. You would have to swap to Bukkit to get around the AsyncCatcher class. [insert rant about MD5 here]
@JHXSMatthew
/vte add PlayerJoin main @PLAYER Hello.
When trying to - '@CMDOP effect <playername> 1 1' event "PlayerJoin"
[16:47:57] [Thread-21/WARN]: Unknown CommandBlock failed to handle command
java.lang.IllegalStateException Asynchronous effect add!
at org.spigotmc.AsyncCatcher.catchOp(AsyncCatcher.java:14) ~[spigot-1.8.7.jar:git-Spigot-b3c0272-7723b90]
at net.minecraft.server.v1_8_R3.EntityLiving.addEffect(EntityLiving.java:582) ~[spigot-1.8.7.jar:git-Spigot-b3c0272-7723b90]
at net.minecraft.server.v1_8_R3.CommandEffect.execute(SourceFile:97) ~[spigot-1.8.7.jar:git-Spigot-b3c0272-7723b90]
at org.bukkit.craftbukkit.v1_8_R3.command.VanillaCommandWrapper.dispatchVanillaCommand(VanillaCommandWrapper.java:110) [spigot-1.8.7.jar:git-Spigot-b3c0272-7723b90]
at org.bukkit.craftbukkit.v1_8_R3.command.VanillaCommandWrapper.execute(VanillaCommandWrapper.java:43) [spigot-1.8.7.jar:git-Spigot-b3c0272-7723b90]
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141) [spigot-1.8.7.jar:git-Spigot-b3c0272-7723b90]
at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchCommand(CraftServer.java:642) [spigot-1.8.7.jar:git-Spigot-b3c0272-7723b90]
at com.github.lyokofirelyte.VariableTriggers.VTParser.parse(VTParser.java:406) [VariableTriggers.jar]
at com.github.lyokofirelyte.VariableTriggers.VTParser$1.run(VTParser.java:106) [VariableTriggers.jar]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_45]
/vte add PlayerJoin script @CMDOP say hahahahah
Even this does not work.
No problem here.
Basically I want to know what's the format of V2.0 scripts and how to use scripts in triggers file.
@KyadCK
This is what my settings.yml file contains:
FIRST_RUN: true DEBUG: true TIMER_INTERVAL: 60
Nothing about MySQL. Do I need to add it manually? And if so, what's the format?
@disciple218
Settings.yml
hello 1.8.7 some scripts cannot be saved in time
hello 1.8.7 some scripts cannot be saved in time
Can someone Explain How i could do this..
I need to lock a chest And the only way it can be Open Is killing a entity, and locked when a new entity spawns.
I noticed there's no Mysql.yml file generated in VT2. Is the @MYSQL command still supported?
If any experts with this plugin want to earn some $ helping to make scripts and triggers with this plugin add me on skype: jared.knies
I got a BIG PROBLEM. I dont know why this is happening but when I shut down my server and start it again, the triggers I had would remove. Why is this happening? Any solution?
@Zeal_BG
Hello!
I know that is possible with a lot of other existing plugins like MyCommand for your example. But I think that it would be interesting that VariableTriggers has this feature. :)
It would avoid the use of other external plugins like MyCommand.
I'm sorry if my english is bad, I little used a translation website.
@ARCHITECTE90
There are milion plugins to do this. You can just make the command /test do /vt run filename:test with op permission level. I use the plugin MyCommand for this.
Hello!
I have a suggestion for VariableTriggers. :)
Can you add a feature to register a command as a real command please? Let me explain.
Example:
This feature would allow to show the command when you press TAB (/t TAB /test) and to show the description, aliases and usage of the command when typing /help test!
I think that would make the plugin more powerful! Even if he's already a lot! :)
My example is just an idea, you can add this suggestion in an other form. :)
Can someone tell me how to create an InventoryTrigger? I know that I have to create file in Inventories, but when I try to open the file It says Invalid Inventory and that something went wrong with the '@OPENINV' line.
Here is what is in my Inventories/InventoryTriggers.yml
Inventory:
- 'cancelled: true'
- 'title: TELEPORTS'
- 'slots: 9'
- 'item: wool, meta: 5, amount: 1, name: Spawn, lore: Teleport, slot: 0'