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
@freakyy85
Thanks, I will see if I can update it !
this is a nice plugin! can you continue updating it? :D
Hate to bring bad new but... 1.4 totally crippled this plugin
Any chance for an update (heavily relies on this plugin for small but vital things)
-Cwbh10
Thank you so much for creating this!
It's my favourite plugin ever. n_n
Nice plugin yes , but who i can do for do not se the cooldown red mesage on my server?
@jasper3108
Sorry, I'm not german ! Anyway, you should try to download it again, I think your file is corrupted.
I used the "/sbinteract" command and got this Error:
22:46:47 [INFORMATION] [ScriptBlock] kbdasoccer performed command "create"... 22:46:47 [SCHWERWIEGEND] null org.bukkit.command.CommandException: Unhandled exception executing command 'sbin teract' in plugin ScriptBlock v0.8.7 at org.bukkit.command.PluginCommand.execute(PluginCommand.java:42) at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:16 8) at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:4 92) at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler. java:878) at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:825)
at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:807) at net.minecraft.server.Packet3Chat.handle(Packet3Chat.java:44) at net.minecraft.server.NetworkManager.b(NetworkManager.java:276) at net.minecraft.server.NetServerHandler.d(NetServerHandler.java:109) at net.minecraft.server.ServerConnection.b(SourceFile:35) at net.minecraft.server.DedicatedServerConnection.b(SourceFile:30) at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:581) at net.minecraft.server.DedicatedServer.q(DedicatedServer.java:212) at net.minecraft.server.MinecraftServer.p(MinecraftServer.java:474) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:406) at net.minecraft.server.ThreadServerApplication.run(SourceFile:539) Caused by: java.lang.UnsupportedOperationException: SuperPerms no group permissi ons. at net.milkbowl.vault.permission.plugins.Permission_SuperPerms.getPrimar yGroup(Permission_SuperPerms.java:96) at net.milkbowl.vault.permission.Permission.getPrimaryGroup(Permission.j ava:646) at scriptblock.command.CommandCreate.isValid(CommandCreate.java:46) at scriptblock.command.CommandHandler.onCommand(CommandHandler.java:80) at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40) ... 15 more 22:49:19 [INFORMATION] [ScriptBlock] kbdasoccer performed command "create"... 22:49:24 [INFORMATION] [ScriptBlock] kbdasoccer performed command "create"... 22:49:24 [SCHWERWIEGEND] null org.bukkit.command.CommandException: Unhandled exception executing command 'sbwa lk' in plugin ScriptBlock v0.8.7 at org.bukkit.command.PluginCommand.execute(PluginCommand.java:42) at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:16 8) at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:4 92) at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler. java:878) at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:825)
at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:807) at net.minecraft.server.Packet3Chat.handle(Packet3Chat.java:44) at net.minecraft.server.NetworkManager.b(NetworkManager.java:276) at net.minecraft.server.NetServerHandler.d(NetServerHandler.java:109) at net.minecraft.server.ServerConnection.b(SourceFile:35) at net.minecraft.server.DedicatedServerConnection.b(SourceFile:30) at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:581) at net.minecraft.server.DedicatedServer.q(DedicatedServer.java:212) at net.minecraft.server.MinecraftServer.p(MinecraftServer.java:474) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:406) at net.minecraft.server.ThreadServerApplication.run(SourceFile:539) Caused by: java.lang.UnsupportedOperationException: SuperPerms no group permissi ons. at net.milkbowl.vault.permission.plugins.Permission_SuperPerms.getPrimar yGroup(Permission_SuperPerms.java:96) at net.milkbowl.vault.permission.Permission.getPrimaryGroup(Permission.j ava:646) at scriptblock.command.CommandCreate.isValid(CommandCreate.java:46) at scriptblock.command.CommandHandler.onCommand(CommandHandler.java:80) at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40) ... 15 more
Can you please help me. I had CB-1.3.1-R2.0 and the newest version of Vault, and my command was: "/sbinteract create @bypass /spawn"
PS: Are you German?
@Folas1337
I know, I should add lot of things... but I miss some free time, sorry.
@ananddavis692
check the changelog of the last version and you'll see that the @CONSOLE option already exist !
What about adding @console as a option, to execute a command from the console, that would be really useful.
How about adding redstone as trigger? I know that you need Vault to check permissions then, but you can have buttons to make the console execute things that the player doesn't have permission to, but that will still be executed when he's getting to that one button!
@deleted_7116233
One of the problem about the @bypassPERM is that it use the Vault API to add a permission... and under PEX it seems that it only add it for the current world... or maybe just for the main world... a way to test it would be, to use the @permADD option (as it use the same part of the Vault API than the @bypassPERM option) ! ( but I can't test it actually )
Also you are right the permission should be removed once the script was run BUT ONLY if the user didn't have it before !
you can also test it with the @permREMOVE option ... if it still doesn't remove the permission node... well maybe it's an issue I should look for !
Anyway to fix your problem, you can also try the new "@CONSOLE /yourCommand" option ! it should work with this kind of command !
@meiamone @Gadund @deleted_7753621 @ed1499
Thanks All !!
@cvo1010
You can make scripts like variable trigger, but the difference with it is that I spent most of the time to have a very clean code and to make this one easier to use at the cost of less possibilities ... but... I also made an API... so ....anyone who learn the basics of coding and the basics of java can code any option he wants and then can make any script he wants... learning those basics won't be harder than learning how to make a script with variable trigger so... I think it's a shame to lose time learning a script language that you can only use for one plugin when you can learn a language that will, in the future, let you code what ever you want !!
I should make a tutorial... but I do not have the time... but I can help anyone who want to learn how to make its own option...
Put it into code view, Bukkit keeps sticking my lines together.
@cvo1010
Nope
I'ts better....... :D
Does this work the same way as VariableTriggers and skript?
Nice, this plugin is way easier to use then other script plugins, oh and thanks for updating to 1.3.1. Keep up the awesome work bro!
@Shereis
Thanks a lot, especially for the super quick response! I'm glad you're so dedicated to this plugin, you've made doing things on my server a lot easier :)
@Shereis
Ahhh ;D Thank you
@Shereis
Thanks, thanks THANKS!
@deleted_7753621 @Gadund @meiamone
Okay quick fix update incoming !
@deleted_7753621
Same problem here running on Bukkit-1.3.1-R2.0-b2340jnks. I posted a ticket.