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
@Dizkonnekted
That's what the Ticket section and Enhancement option are for ;) Makes it easy for developers to track.
This is awesome! I am excited about the worldguard support coming, hopefully soon!
Shereis this is one of the best plugins for admin's I have ever used!!
Well done and congratulations on making such a fine plugin!
I have a feature request, can you please make it so that the messages from ScriptBlock can be set to custom text, and also optionally not shown at all? The reason I ask is I would like the ability to not allow players know which plugins are being used. Currently the messages from scriptblock display the name of the plugin.
Again thank you so much!! ^.^
Diz
Just posted a new Error in the Issue Thread. You need to Lock at it. It lets crash my Server. And I donĀ“t know where it does come from...
@Sonorpearl
What do you mean by worldwide ?
I think I will try to add the cooldown per player option in the future ! but I have a lot to do first : fix issues... and cleaning the code (actually it's a real mess... I would not add so many features without cleaning the code each time I add one... =p ).
About your cooldown issue, you should try deleting the cooldowns.dat, And look at the ticket you've opened, to see the synthax error you've made ; )
Is the Cooldown of Blocks worldwide? It would be better if I can set a Cooldown per Player. Also there is a Bug with Cooldowns, because I set a cooldown to 1 and its now Stuck there!
@TrinaryAtom
Pleased to hear this !
@jm401
What kind of script will you make with "if", and "if else"? if it's just for permissions like riffic said, it's doable... but if it's more generic... it will be hard to implement...
About the "set a+1" I really don't have any idea how you can use it.... Do you have an example ?
@sykefuu
You have the @amount:"number" options if you want to use the script just once for the whole server ... but if you want to use it once per player, is not yet possible with simple options...
@Bowarrow51
Can you show me an example of what you will do with those possibilities ?
@toxuin
Thanks ! ; )
What do you mean by permission support ?
( as I know ScriptBlock is already supporting permissions ; ) )
And About Residence support, I think, I won't add it in a near future... I prefer focusing on Admin features first !
About the Donate Button, Riffic said it ;)
@Puksa >
Donate is at the top right of many plugin pages, including this one.
You are doing a great job. I just want to thank you.
If the idea of this plugin is yours ā you're genius! If it's not ā it doesn't matter! ā nice to have it implemented. Thank you once again for frequent updates! I have subscribed to file changes:)
What I am really waiting is permission support because not all my plugins can fallback to OP list. Maybe Vault integration is the first step?:) Oh, and Residence support would be nice:)
BTW, please make a "donate" button ā I couldn't find one, only the list of donators.
A posted a annoying and laggy Error under Tickets.
@ihasamoose
Yes it is ! You need to use "@group:NameOfTheGroup" option before the command you want to be restricted to a specified group !
Is it possible to lock a scriptblock'd block to a certain group? This would make promotions a lot easier for people with factions. I.E Citizen Manager joins Trogolytes and isn't a manager because of it. Since only the Managers have access to the Trogolytes Manager promotion block, they will be automatically able to join the trogolytes as a manager without manual interference.
@Sonorpearl
look at the latest file ... ; ) it's already done !
One Feature is missing for me. The Feature that a Script activates when a Player is only standing on a Block, kinda like in some Teleport Plugins. Maybe Ingame toggleable to every single Block. It would be nice for some reasons.
@Jaminb2030
@Yorkforce
@jisaacs1207
I've created a ticket for your issue. Please check it and reply there for support !
I'm back ! Out of ScriptBlock, I still have a lot of work, so I will progressively fix issues and reply to your messages ! Please be patient ! thanks !
Iv added scriptblock.use to the Starting rank with groupmanager but @player commands are only working for OP's i have updated this plugin and vault. im out of ideas as to why.
Just wanted to say a huge thanks, this plugin is excellent!
EDIT: Unfortunately I seem to be getting this error when using the @bypass
01.01 13:03:07 [Server] SEVERE at fr.shereis.scriptblock.ReadThread.run(ReadThread.java:138) 01.01 13:03:07 [Server] SEVERE at java.lang.Long.parseLong(Long.java:483) 01.01 13:03:07 [Server] SEVERE at java.lang.Long.parseLong(Long.java:430) 01.01 13:03:07 [Server] SEVERE at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) 01.01 13:03:07 [Server] SEVERE java.lang.NumberFormatException: For input string: " 5000" 01.01 13:03:07 [Server] SEVERE Exception in thread "Thread-33708"
the script is linked to a button, .. [@bypass /econ bank create <player> <player>] throws out the error. If I create the bank account manually all other buttons work eg [@bypass /econ bank deposit <player> 100]
Using latest PEX and latest RB
Getting the following error.
java.lang.IllegalAccessError: Synchronized code got accessed from another thread: fr.shereis.scriptblock.ReadThread at org.bukkit.event.player.PlayerListener.onPlayerTeleport(PlayerListener:0) at org.bukkit.plugin.java.JavaPluginLoader$9.execute(JavaPluginLoader.java:321) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:339) at org.bukkit.craftbukkit.entity.CraftPlayer.teleport(CraftPlayer.java:297) at org.bukkit.craftbukkit.entity.CraftEntity.teleport(CraftEntity.java:156) at net.slipcor.pvparena.arenas.Arena.tpPlayerToCoordName(Arena.java:853) at net.slipcor.pvparena.arenas.FreeArena.chooseColor(FreeArena.java:81) at net.slipcor.pvparena.managers.CommandManager.parseJoin(CommandManager.java:83) at net.slipcor.pvparena.arenas.Arena.parseCommand(Arena.java:221) at net.slipcor.pvparena.PVPArena.onCommand(PVPArena.java:286) at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40) at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:165) at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:378) at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:757) at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:722) at org.bukkit.craftbukkit.entity.CraftPlayer.chat(CraftPlayer.java:202) at fr.shereis.scriptblock.ReadThread.run(ReadThread.java:257)