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.
@rysroma
They are not. You just don't know how to use the plugin. You can see all the commands with /vt ?
To use VT Arena - /vta ?
I can do the things, maybe your scripts arent made fine. Post threads in the forum with the script code and I will help you there. The redstone and command blocks are not the best decision. They can lagg and crash the server if they are not used right, and you can do better things with them than VT
Some commands described here are not working! When I write them nothing happens, area trigger are not working at all. I have spend 2 whole days with this plugin with no sucess, plugin isnt working at all. Every thing you want to do makes an error i cant make script, I cant give player effect, I cant place blocks. Advice from me: Dont WASTE TIME on that plugin, redstone circuits and commandblocks are much better option!
The async error on Spigot builds from teleporting too fast, etc. doesn't seem to have a problem on the old VT builds. I can teleport fine on Spigot 1.8.8 using the old VT (1.3.3.1) without any async error. I'm probably going to look dumb for asking, since you've probably already considered something like this, but have you tried taking the code from the old VT and using it in the new one, so players on Spigot don't get an error on fast teleportation?
Some variables didnt get saved after the server stop with command /stop and when the server is started again the data is lost. Yes I tried to /vt sv before I stopped the server
@Lyoko_Firelyte
Ok, we're making progress now. The format is MYSQL_<VALUE> instead of the indented list. I can run a script now without any SQL exceptions, so I think the database setup is correct, but the query doesn't seem to be working. Here's my script:
The "onlinetime" column is int(10) unsigned, and "playername" is varchar(32). When running the script, it prints "0" instead of the value of "onlinetime".
@disciple218
Ooh, you need MYSQL_IP and MYSQL_PORT as well. It's one of the following formats:
or
I don't remember which format V2 uses, it's been awhile since I coded that portion.
@Lyoko_Firelyte
Haha, yes. I've been running Bukkit servers since 2011. :)
@disciple218
In order to change the settings.yml properly you must do it when the server is turned off. Then, save your changes and turn the server back on. Have you tried this as well?
@Lyoko_Firelyte
Tried the alternate config you posted, no change.
@Lyoko_Firelyte
I still don't know how to create and use inventory menus. It's just not working for me. Can you help me with this? I created the file in inventories, but it says it invalid. The inventory config I used is the teleportInventor that I found somewhere here. And I don't know is it fixed, but is the bug after autosave fixed? You have to /rs after /st, /ss or /sr.
@disciple218
Try this instead:
@Mach12
This was an accident yes, I use Java 8 for most projects and didn't catch that it applied to VT. I'll upload a new version shortly.
@Zeal_BG
Nice catch, I'll add this fix in the Java 7 version I'm uploading shortly.
The only thing I can say is THANKS YOU for the new update!
Can someone tell me how to create inventory menu? :D
And I was looking in the source and found this:
In @MODIFYPLAYER setdisplayname there is the replace from __ to " "
toModify.setDisplayName(main.AS(args[3].replaceAll("__", " ")));
But in @MODIFYPLAYER setlistname its not added, but we need it!
toModify.setPlayerListName(main.AS(args[3]));
@Lyoko_Firelyte
Thank you for your reply. I tried this format, but still can't get it to work. Here's a snippet from my log if you're interested: http://pastebin.com/Lbh8Sei8
Apparently VariableTriggers 2.0.4 requires Java 8.
Whether this is on or off purpose I out of my scope, but some server hosts, mine included, don't feature Java 8. This prevents me from using the latest version, which is a shame because VariableTriggers is a core feature on my server.
/vtc add main @TOGGLEBLOCK 22 1275,70,-363 ? /vtc add @TOGGLEBLOCK 22 1275,70,-363
both dont work
@ATechAlpha
You must specify the script name you're adding it to. With V2, you can have multiple scripts within the same file, ex:
'main' always runs when the event fires - that's the default. So, you can type /vte add PlayerClickBlock main @PLAYER hi
@disciple218
Hi guys, i havent played minecraft in forever but i remember this plugin always! but i have gotten a bit rusty. i want to make a feather that when you right click it gives you the block type , block location. but nothing i do seems to be saving to my events.
/vtc @PLAYER hi (works for click events) but /vte add PlayerClickBlock @PLAYER hi or /vte add PlayerBreakBlock @PLAYER hi nothing it saving to the files even though its saying event created.
@KyadCK
You're wrong. Did you miss my post from two weeks ago when I told you what was in my settings.yml file? I'm using v2.0.3 and there is nothing in the settings.yml file concerning MySQL settings. There are 3 lines:
Nothing else. I've wiped the VariableTriggers folder and restarted from scratch. Nothing.