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
@PhiberOptikx
did you tried without the quotations mark ?
@Shereis
I'm having troubles with @permADD
[Sign 1] /sbinteract create @permADD:"testing.test"
[Sign 2] /sbinteract create @perm:"testing.test" /sbinteract add @player This worked!
^ Not working.
@dragontears6
Thanks, pleased to see it's usefull for you !
Just wanted to let you know this is my ABSOLUTE favorite plugin. Well done. Simple and powerful.
@PhiberOptikx
0.8.6 incoming, the "@bypassPERM" bug you had should be fixed ; )
@Shereis
Sounds great bud!
@PhiberOptikx
Oh... my bad, I've added it in the v0.7.2 change log , but forgot to add it on the option page.
Concerning your issue I will look at it asap .
EDIT: I think I have an idea about the source of your issue on "@bypassPERM", I will try my fix tomorrow.
@PhiberOptikx
Sorry I'm lighting up your wall with comments, but...
http://pastebin.com/Q90aFcus
Here is a call stack after I utilized the bypassPERM option with Essentials.kick.
@PhiberOptikx
In addition, I even gave the user * access in GroupManager. He was still unable to kick himself. But he can do it just fine through commands.
@Shereis
It's actually not on the options page. Control+F Item doesn't exit on that page at all.
Additionally, when I use:
/sbinteract create @bypass /kick <player> Test
It returns: "Error: you can not kick that player"
But when they manually type out the exact same command using THEIR name in place of <player> it works just fine. The perms are setup fine.
@PhiberOptikx
It's due to a conflict linked to the brackets "[ ]" that are also used by ScriptBlock.
Have you tried adding it directly in the related blocksData.yml ? I think it should works !
The itemCost option have already been added about more than a month ago ! ;) you should check the option page !
I'm having an issue attempting to use an [ in a @bypass command. It appears it is using it as an escape character.
Basically this:
@bypass /manuaddv <player> suffix [Cool Tag]
When I click the sign, it's just making me say "Cool Tag" - when the command should be making the user tell GroupManager to add a Suffix Variable to themselves using [ for formatting to make it look pretty.
The exact same effect is when I'm attempting to kick a player from the server for clicking a sign. Example
@bypass /kick <player> [> Hey! I told you not to click this sign! <]
It's just making them type: > Hey! I told you not to click this sign! <
Edit:
Also, are you sure you can't add items as a cost. I would <3 you forever!
ScriptBlock 0.8.5 incoming (fixed delay)
@Slipswhitley
This will take some time, I think, considering that I have to re-code some options to make it compatible... That do not means I will add it. but I will try to set up something that open that kind of possibilities.
However Opening a ticket with your idea is the best way for me to not forget about it ! ; )
Also i had a better idea rather than the If/else scripts if you add this i will donate more :D I love your plugin!!!
When a script reaches a command like @group if the player is not in that group it will stop the script right??
Well instead of stopping the script if you replace the "@" with "#" and put 1-2 sets of brackets after "{ }{ }" The left one will act as 'If" the right one (if you decide to add one) is "Else"
How could this be used examples
In this Script if the player can pay 1000 it will add them as a owner of the region and delete the script, If not it will send them the a message saying "Sorry you do not have enough money to buy this region"
And I have many more uses for this
@Delay isn't working :(
Could you please fix this?
@Slipswhitley
You are lucky, I was just working on scriptblock when I saw your message ^^
0.8.4 needs approval !
Urgent!! Bug
The @amount option isn't working on new version of script-block, Can you please fix urgently as i am running a event on my server tomorrow that uses it.
Thanks Slips
@dropposite
Yes I think it's possible to add a text message to the console when a option is performed by a scripted block !
I will release something like this asap !
i noticed in the console today that a player was somehow bypassing permissions and using a warp command that was supposed to be blocked. Drove me nuts becuase the console made it look like the player had typed the commands.
is there anyway to have the plugins name be added to the console so that when a player triggers a scriptblock event, it will log to the console that your plugin is what issued the command, rather than it looking like someone cheating or a bad permission.
for example, right now Iwould see this:
[PLAYER_COMMAND] Shereis: /warp vip
is it possible to make the console show something like:
[SCRIPT_BLOCK] Shereis: /warp vip
:o Ive forgot this possibility ! Thanks !