BlockCommand
This plugin allows you to set commands and messages to blocks. This commands/messages will be executed, if the player touches/clicks on the block.
Features
- You can bind...
- ... a console command to a block
- ... a message to a block
- ... a player command to a block
- Execution:
- If you add a BlockCommand with leftclick, it will be executed by touching the block
- If you add a BlockCommand with rightclick, it will be executed by clicking on the block
- If you add a BlockCommand with a configurable item (default = redstone), it will be executed by redstone
- You can add a player variable %player% to your message/command
- If you wrote the command, you are in add-mode and can add the command/message to infinite blocks
- Multiworld support
- Permissions support
- You can remove a BlockCommand with a configurable item (default = bone) in Add-Mode
Commands
- /bc add <msg/cmd/pcmd> <text>
- /bc stop
Permissions
- BlockCommand.add
- BlockCommand.touch
- BlockCommand.click
How to use - example
- just type /bc add msg Hello %player%
- Then click on the floor (rightclick)
- type /bc stop
- now if you walk on the floor, you get the message "hello <your name>"
- type again /bc add msg lol
- take a bone in your hand
- leftclick on the block you have clicked before
- type /bc stop
- now the block is normal again
@Blackixx
Sounds great. Make sure it's not overriding the before added commands and everything, but I'm pretty sure you know what you're doing :) Thanks for your reply!
[Edit] Thanks for adding redstone that quickly *happy*
@Folas1337
Ok I will add this too. My idea: If a player with redstone to a block in the Add-Mode, he will create a RedstoneCommandBlock, which can be only executed by Redstone.
@Blackixx
Another suggestion that came to my mind as I used it for a while: Redstone could also activate it, so a button or lever can do it :)
@Folas1337
Changed rightclick to leftclick.
@Blackixx
Oh, didn't know that you have to left-click. Doesn't it say rightclick on the "example"? Seems to be wrong :D Nvm, I got it. Thanks!
@Folas1337
You need the permissions node BlockCommand.touch / BlockCommand.click to execute commands etc. And you can remove commands etc. with a bone (default). I showed this on the example and the video.
Very good plugin. I hope even players without permissions can execute commands.
Another thing I'm asking is: How to remove commands from a block? Because breaking it does only remove the block but if you replace it, it's still giving the command...
Edit: I see how it's saved in the config, and I know that I could remove it there, but what if someone doesn't have access to my server-files?? :) (/bc remove suggested)
Yeyyyyyy! Thank you! Finally an easy to use system for running commands.
@TheOnlyRealTGS
yes. I will work on it today.
Edit:
Done
Could you make a option for the command to be executed by the player and not from the console?
@Blackixx
I have time this week
@helmetron
ok I will add a new configurable option: That the plugin notices if somebody touches a block on any side
Works Great. Running 1.2.5 Bukkit.
Complementary mods. : WirelessRedstone and RedstoneCommand, MorePhysics. Add a block command to a Piston to trigger the RedstoneCommand to turn on the piston. Add a Redstone repeater to Delay the piston firing until you are on the piston. MorePhysics Enables you to be launched by the piston. WR; Extends this to other pistons.
Only addition that would make this more fun is the Block Commands only work when you stand on them. It would be great if the BlockCommand checked to see if you touched any side of the block. Then you could have some great chain reactions.
Thanks again for the Mod.
This would be great in one Package.
okay thats one of the best plugins i know cause i need a plugin which can bind the /pex user group set command to a BLOCK, botton... (on my server spawn&die) ;D cool plugin thx
This just looks so awesome :) Imma test it now :D
@tqshay
Did you type /bc add cmd /<cmd>? Then its wrong. It should look like this: /bc add cmd kick %player%
Hey! I have tried using the same commands listed in the example but am unable to get commands to execute when stepping on a block. I have noticed that in the server console it will say "Unknown command" every time that I step on the block. I have verified that the commands I am trying to input are working commands. Is there some sort of special formatting for adding commands?
Exactly what I was looking for
@icheesy
Then you must have an other plugin with the same command... Could you test BlockCommand without other plugins one time?
the command doesnt work