ScriptBlock
Welcome on the ScriptBlock v0.8.0 project page !
ScriptBlock is a CraftBukkit plugin inspired by the great Fluff's plugin Annotate and CommandSign !
It allow you to bind text, commands, or MANY commands to any block (levers, buttons, doors, Signs, etc...), triggered by clicking or walking on it !
Here is a Tutorial video made by Kunoichi Kitteh ! Thanks to here !
LiekMudkipzz also made a cool video of ScriptBlock ! It's a bit outdated, some commands have changed ! but Thanks to him too !
Here is the link !
Regarding Donators
Those who help me maintain motivation for Keeping this project updated !
I really Thanks them !
S4h4rk
StefanPelskamp
Slipswhitley
About 0.8.0...
Lot of change in the codes, in the commands, to make possible and easily, for other devs, the add of Options, and the use of ScriptBlock Options for other Minecraft Event than walk , and interact trigger ! ( ask for sources, and for help if you want to do one ! )
Also a New BIG and FULLY customizable permission system. See changes log for more informations !
Features
- Adding any text, command, or set of commands to a block (levers, buttons, doors, signs, etc...) with Various Options !
- Read any Text and execute any commands or command Script. that has been bound to a block with right or left-click !
- ScriptBlock use the Vault API ! You need to download it even if you don't want to use the Economy and Permissions features !
Download Vault - Support all permissions plugins supported by Vault or if you don't like permissions, it can be Op based only !
- Most of Economy plugins support (if Vault support it, ScriptBlock support it too ! ).
- MultiWorld Support.
- Player can use a bound command, even if he usually doesn't have the permission to use it, with the help of the @bypass prefix.
- You can edit scripts with a simple Text editor like notepad
++
. - Look at Changes Logs for more Infos !
Commands
Trigger:
- /sbinteract
is used for "on block interaction triggered" scripts ! - /sbwalk
is used for "on block walk triggered" scripts !
After you've choosen the kind of trigger you want , you need to choose the type of commands you want to send to ScriptBlock !
Types:
- create
Use this command to create a script and follow displayed informations ! - add
Use this command to add a command, or a script to an already created one, or to an already bound one. - remove
Use this command to remove a script from a block. - view
Use this command to view the script you've bound to a block ! - reload
This command let you reload the save file, to refresh the scripts bound on blocks !
Usefull when editing script in the BlocksData.yml save file while server is still running !
exemples:"/sbinteract create" , "/sbwalk create", "/sbinteract remove", "/sbwalk remove", etc...
Options
There is a lot of cool options you can use for your scripts ! You MUST at least use one option with your script to make it work !
Options List
Permissions
ScriptBlock Permissions system have a lot of possible customisation. You can use simple permissions nodes if you are admin and want full power, without taking the time to set up all the permissions for your players. Or you can take the time, and fully customize the way you want your players to use ScriptBlock.
Upcoming Features
- Per Player Cooldown.
Economy plugins support- Copy/paste Scripts. (low priority)
Add a Config file to edit Script that has been bound.More Permission NodesA command that let you know what commands you've bound to a block.- WorldGuard / Residence support. (low priority)
- Custom messages
- Chat color
Right-click does not work for interact blocks with $item properly. It does not update the items in the inventory well.
Also would it be possible to shorten /sbwalk to /sbw and /sbinteract to /sbi? I'm having issues hitting my character limit ^_^
@jisaacs1207
Yes I'm sure, I checked again, and I'm not a Op in the OP.txt and it worked , and I also do not have any PEX permission !
what is the exact permission message you got ? do you have the permission message when you create the script or only when you interact with a block?
Have you tried it with other commands from another plugin then PEX and does it worked ???
@Shereis
Are you sure it is not because you were opped in the op.txt file that it worked? I'll try again, but I did try that. I'll get back to you in a bit.
---Nope, still getting the no permissions thing. Darn. I hope there is a workaround! I've tried every option you have there.
@jisaacs1207
it looks like that the bad script error for @bypassGROUP is a bug. I'll fix it quickly. (anyway quotes are not needed, so don't add them )
About the @bypassPERM, it works well for me, I used this command to create the script : /sbinteract create @bypassPERM:permissions.* /pex user <player> group add grouptest
make sure you've wrote it like this ! if you did ... try it with other commands from other plugin and tell me if they works !
if still not, try other options too !
the @bypass do not works with PEX commands, so I will add a console option in the next quick update, to bypass commands that can not be bypassed by the others bypass options !
@Shereis
I am running @bypass /pex user <player> group add regular ... the plugin is permissionsex. I've tried @bypassPERM:"permissions.*" /pex user <player> group add regular ... still no permissions error... I've tried @bypassGROUP:"op" /pex user <player> group add regular and got a badscript error. I've also tried the last two without quotes.
Any ideas?
@Humanfiend
I will remove block interact console spamming in the next update ! Chat color won't be added soon because, you already can use chat colors with the sign ยง ( check option page for more infos. )
per player cooldown is one of the feature planned in the next update. but I'm really really overbooked for now ! But I'll do my best !
@jisaacs1207
What commands are you trying to use ? and what is the plugin related to those commands ? Anyway you should check this ticket
Hi, I tried adding allowOps to my pex config, but I still cannot use @bypass. My players just get the no permissions message. Am I doing something wrong?
@Humanfiend
For this purpose, I started up a web forum. Allows you to give them as many rules and information as you want, without taking up space or server resources. I make it a requirement for them to register on the forum. They don't need to be active on it, but at least then they have access to everything they need.
EDIT: not to discourage you from using ScriptBlock. This plugin has many great uses, but I don't think giving your players pages and pages of information is one of them. You might use it to remind them to login to your web forum for the information instead.
Dear Shereis and everyone else ._.
Hope all is well, though I have a question or two for ya: Planning on using your plugin here for a major part of our server spawn for means of giving information to new players, 1000 signs just is not working :P so taking a look at your "to do" list would it be possible to get an estimated ETA for "chat color" and "Per Player Cooldown''? (no rush just curious) Also I did not find anything on the config for this but scripts activated are showing up in console. With 20-50 players using this its very spammy. <- any info on this?
Thanks in advance ^-^
@dropposite
hmmm... can you post in a ticket the errors you've got to help me fix it in a futur update ?
Anyway as a quick fix you need to make a backup of your script files (interact_scripts.yml, and walk_scripts.yml ), then :
@Shereis deleted the dat file, rebooted the server as a test
[SEVERE] Error occurred while enabling ScriptBlock v0.8.6 (Is it up to date?)
the console gives a long list of errors now.....
this isnt good
@dropposite
yup, and the other one if you also have issues with walks block cooldowns !
@Shereis you mean the BlockData\interact_Cooldowns.dat file?
@dropposite
You should try to delete your cooldown files in the scriptblock folder !
Is a player able to activate a script block that executes a command they don't have the permissions for if they have permission to use script blocks?
EDIT: Nevermind. Sorry i didn't see the options link at first.
woah please help.... I tried using the cooldown command, which works great, but when i restart the server, it changes the cooldown to a rediculous number
i have a sign that gives free food, but with cooldown to prevent overuse... i have it set to 45 minutes cooldown.... heres what i have typed
/sbinteract create [@bypass /feed] [@cooldown:45]
This works perfectly... and after 45 minutes, it works again and sets the correct cooldown...i was so happy this worked....
Then i restart the server and click the sign again and it tells me there is 432H 44M 41S left.... I deleted the script and sign, recreated the whole thing, rebooted the server and the same thing happened again.... it loads up the remaining time and thinkgs its 432 hours left....
What did I do wrong here?
sorry for doublepost
@deleted_7116233
Hey Nentify! :O
Can someone teach me how to set this up to open/buy/upgrade VirtualChests?
Your Poll asks about VariableTriggers. It is impressive WOW and is similar to Scriptblock but does so much more than ScriptBlock. I have started using it and really love it, but that does not mean it will replace SB. I will still use Scriptblock and VariableTriggers.
@bryanschmidty
The addition of a choice is a good idea.
@deleted_7116233
But i can't help but point you two to what has already been stated. Look at the bottom of this plugin's main page.
"Upcoming Features"
- - -> "Per Player Cooldown."
@deleted_7116233
Maybe the option to choose in the script whether it's a global cooldown, or per-user cooldown