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
Default plugins folder and files is not creating. Also they may probably some memory leaking issue in your plugins as my server start crashing after installing ScriptBlock.
@example6
the @bypass option already works... what permission plugin are you using ? or maybe you are talking about a special @bypass option designed only for specifics group ?
I will love you forever if you get the @bypass option working next <3
I see it up now. I'll give it a shot tonight.
@keenerb
The last version 0.4 is finished !!! it will be up for download very soon ! ( Sorry for the wait but, it need Moderator approvals... ! )
Fantastic.
I hope maybe you're considering making the object commands a plain text fiel rather than this .dat...
@keenerb
I've applied a fix to that, it will be in the next version... I can't release it now because I have a few Issues to correct before ! It will be released in few hours or tomorrow !
"You don't have permission to use that command !" when i try to run /sbcreate.
I'm not using any permissions, and I am an op.
Any idea what's wrong?
@keenerb
This feature, will normally come very soon ! i'm working on it !
Any chance we'll be able to edit the commands with a generic text editor?
I have about 20 commands I want duplicated across ten or fifteen signs, and managing them individually is a bit of a pain!
@Brustus
not yet, and.... not yet too.... but, it will !
I loved fluff's plugin. Does this plugin support commands activated by stone pressure plates? Does it suppor the "@<groupname>" variable that restricted signs to permissions groups?
@scandragon
I think there is no reason that ScriptBlock doesn't execute commandhelper aliases... have you expected some issues with aliases ? what are they ? show me some example of what you've done, and of your commandhelper config please !
@S4h4rk
hmm well it's good to see that not all permissions plugins are laggy when promoting/demoting ! so ... I think I will try to add it before the delay option !
Would be nice if this could execute commandhelper aliases.. Any chance this could be done at some point in the near future?
@Shereis
I watched the CPU load with "top" (under Linux), and I don't even see any significant difference with PermissionsBukkit group promotion followed by demotion.
S4h4rk
@S4h4rk
I don't know if PermissionsBukkit take as much resourses as PEX while promoting/demoting, but when doing this with PEX, it leads to triple the CPU usage very easily ! if so, be sure you don't use this on blocks that player can "spam click", or your server will have serious lags !
I'm actually working on a delay option... it will prevent this kind of problems ! Then I will add the "promoting option" to be support natively...
Anyway it's a good way to get plugins that don't support OPs works with ScriptBlock ! ; )
I figured out how to make ScriptBlock do the group permissions thing with PermissionsBukkit (and SuperpermsBridge) without directly supporting it!
Say I have a button that I want to teleport the players that press it somewhere but the default permission players on my server are given does not allow them to teleport themselves (or anyone else). I could just use the @bypass option on a ScriptBlock command if the teleportation plugin (TelePlusPlus) I like to use allowed (temporary for the life of the command) op privileges. The problem is that once TelePlusPlus sees a permissions system, it doesn't honor op privileges. Then the thought occurred to me that PermissionsBukkit allows op privileges to add players to a group and remove them from a group. So I created a group like so in my plugins/PermissionsBukkit/config.yml file:
Group "scriptblock_tp" is allowed to teleport. On a button I can put the following script via ScriptBlock:
When a regular player activates the button, they are added to the scriptblock_tp group, teleported (which is allowed due to being in the scriptblock_tp group) and then removed from the scriptblock_tp group.
I hope this is useful information to share.
Best regards, S4h4rk
@4am
Your issue is fixed.
By the way, if I add Redstone support, what will be your utilization of it ?
@WhiteDragon32
bPermissions is now Supported ! please send feedback, or issues if there is some ! Thanks !
@WhiteDragon32
I'm back from holidays, I will give more updates now... So I will look around the feature you've request, when I'm done with the ones I consider High Priority !
@xrobau
My License says you can't modify it without authorization ! I just want to keep control of what is done with my plugin until I don't support it anymore. So, you can submit patches if you have my authorization! Just send me the source or tell me what your patch will fix to have this authorization (by PM or here) ! However, I can add your link about the patch in the ScriptBlock page (if you want, and with credit of course)! if i'm okay with its content !
Any chance of fixing the licence so it's GPL or LGPL or something? The licence says I'm not allowed to submit patches - which I'm pretty sure you didn't mean 8)