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.
TO ALL. Please use the proper forum section for your scripting questions or problems. Thanks.
@gnarlerman Command Triggers can only be one word. You use the <cmdars> to get any other worsd they typed
/vtcmd ctp @IF si <cmdarg1> = join
/vtcmd ctp @BROADCAST bla bla
@mcfacilitator
They are resident in memory. Lots of triggers fireing need fast access. though thay take up less space in memory than in the files.
How are you managing the scripts (triggers and other script)? Does all of it get loaded into memory as well, or do portions get loaded on demand?
If I wanted to add an effect to the command "/ctp join" but not "/ctp leave" what do I type?
/vtcmd ctp join @BROADCAST bla bla
won't work because VT thinks the word join is the command. What would I do in this situation? I only want /ctp join to have the effect but not /ctp or /ctp stats , etc.
@mcfacilitator
No. The variables are kept in memory for fast access. The only need for a save is if the server is ever stopped and for that the YML file works fine.
Ever consider using mySql to manage the variables?
@Rawker31994
thats what Area triggers are for.
Could you make this hook into worldguard or world edit so that when a reigon is entered commands are performed?
@mcfacilitator Here I started a thread to discuss this
http://dev.bukkit.org/server-mods/variabletriggers/forum/general/41242-about-default-behavoir-of-obj-var/
Thanks
@Slipswhitley
for the piece of pizza and a coke :) it is appreciated. and lets me know my work is appreciated.
@fletch_to_99
Well the period of time that thay are op is less than 1/20th of a second, a lot less. but I'll put some thought to this. Maybe a setting in config to only TP without op.
TeleportOp: false
If you wish to continue this conversation please start a thread in the forum under general or appropriate. Thanks
@lexlaiden
Could you potentially release a version with out the setting of op (so the next version will have 2 releases) because while the player is teleporting if they spam the stop command they can stop the server. If so that would be great!
Thanks,
Fletch
@fletch_to_99
I remember now why I did it with op, some plugins restrict players from teleporting to certian areas or other type of restrictions. This is needed to get past that since the admin sets these triggers obviously he want's them to TP
The problem with op sticking is not because of setting and teleporting so fast its because of ConcurrentModificationException which was my bad in how i coded the @CMDOP to overide perm and did the same for @TP. I fixed @CMDOP in an earlier update but forgot all about @TP.
I have fixed code and will be in next update.
http://dev.bukkit.org/server-mods/variabletriggers/forum/newfeatures/40993-whats-been-added-so-far-the-the-next-upcomming-release/
@lexlaiden
Teleplusplusdoesnt set the player to op and it works fine, look here (lines 44 - 136) https://github.com/phaed420/TelePlusPlus/blob/master/src/net/sacredlabyrinth/Phaed/TelePlusPlus/managers/TeleportManager.java
The problem is with the player set to op in that short amount of time while teleporting the player can stop the server. A user on my server has already been able to exploit this and he was the person that reported this exploit too me.
@fletch_to_99
Similar issue was corrected with @CMDOP forgot to do the same to the @TP command will fix in next update and yes must give temp op for teleport since bukkit api checks perms before teleporting and if player has not the permission to teleport they won't
Is there a reason that you need to set the player being teleported to OP? It has thrown errors a few times and some players were perma set to op.
Heres the error http://pastebin.com/cCUsivyv
Affirmative for null ints = 0, and null bools = false, but I can't seem to test for null strings
@IF s $testing.testing = ""
@PLAYER null string = ""
@ELSE
@PLAYER null string = unknown
@ENDIF
gives me unknown
@lexlaiden
Thank you for replying but what I meant was the default opted to use the <relativeloc::> format instead of the static world position style.
Example if I make a walk trigger that sets flames somewhere, I can then go into the walktrigger file and more easily manipulate it instead of first having to convert it to <relativeloc::> style.
Thank you.
@lexlaiden
L... Lo... Loops! Hell yeah! Now I don't need any birthday present :D
@lexlaiden
*happy dance*
Oh yay! YAY!@lexlaiden
Lookie lookie
http://dev.bukkit.org/server-mods/variabletriggers/forum/newfeatures/40993-whats-been-added-so-far-the-the-next-upcomming-release/