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
@meiamone
You're welcome !!! ^^
@Shereis
Thanks very much! This is such an excellent plugin; very useful!!
@meiamone
" My PEX config is currently "allowOps: false" "
You have your response ! To use "@bypass" , You need to set it like this : "allowOps: true" ! ;)
However, I didn't try to use it on all 1.0.0 bukkit's builds, ether Pex builds... I was waiting for the latest recommended build... but it's seems that it will take some time for the bukkit team to do it....
if the "allowOps: true" does not work come back to tell me about it... I will see what I can do to fix this !
@Shereis
Hi! Love the concept of this, however, my users have scriptblock.use permission and it still says "Don't have enough permission for group [xyz]". I am using the latest PEX and b1509. I'm trying to execute a group set command:
/sbcreate [$cost:100][@bypass /pex user <player> group set Miner]
It works perfectly when I have '*' permissions, however, when I am set as another group it doesn't work. OP or non-OP, it doesn't matter. My PEX config is currently "allowOps: false"
@coverth
I've been using this kind of script many times... there is no reason it won't work !
However, You've forgotten the ":" in the delay synthax you should write it like this : [@delay:600]
if you have any issues, give me more details ! about the problem ! - Does the first command is executed ? - what is your permission plugin ? - Does it say you don't have permission ? - if you are using PEX, Did you activated Ops in the PEX config.yml ?
I would like to do this as a command.. is it possible and if so how?
/sbcreate [@bypass /gamemode <player> 1][@delay 600][@bypass /gamemode <player> 0]
@jisaacs1207
I will when the Bukkit recommended build will be out !
I love your plugin, and use it tons on my server. Please update for 1.0.0! :)
@sykefuu
I'm sorry, but I have so much to do first ! and actually, I don't have a enough time to handle it... maybe in a far update...
I was wondering, is it possible to make the cost be items ? like 5 gold blocks/bar ?
Yes, I believe so.
I'll re-check this evening.
@keenerb
" scriptblock.* " won't work, because I did not integrated it .
Does a player with "scriptblock.use" have the "you don't have permission" message when using an already bound script ?
I can't use a scriptblock unless I'm admin.
I've specified scriptblock.use and also granted scriptblock.* in bpermissions, all I get as a non-op is "You dno't have permission to use this!"
@jisaacs1207
You are roughly right ! The scripts are saved, but are not loaded ...
thanks for reporting this, I'm fixing that ! However, you can load it manually with the /sbreload command !
EDIT: it's now Fixed ! please download the v0.4.2 (who is actually waiting for approval).
Great, can't believe I missed that. One other problem though. With your new release, my scripts don't seem to save on reboot. Any ideas why that could be?
@jisaacs1207
Just add <player> as a placeholder for the name of the player ! ScriptBlock will automatically replace it by the name of the player who click on the button !
Any idea how I would use your plugin in collaboration with groupmanager in order to add a user to a group via buttonpress?
/manuadd <player> <group> won't work because it requires the players name, which I do not know how to pass in via your plugin.
@HalestormXV
Thanks !! it's really gratifying and encouraging for me to have good feedbacks about ScriptBlock ! I will try to find time to add more features !
Your plugin is amazing. I haven't had any problems with it. To be honest this plugin opens a whole world of possibility in and of itself. I have already started using it with MagnetBlock and BCMusic. The ability to activate a slash command really is extravagant. Keep up the good work.
@calvinalx
if the files are not created, and you use the plugins features ! you will have serious issues, while the plugin will try to save it to the files !
by the way I'm working on this ! I will update a new version very very soon ! Sorry for that !
EDIT: it should be fixed ! please download the v0.4.1 !