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
@harryjamesuk
Then hopefully the author is going to fix this soon :)
@Folas1337
Yes, Sadly not working :'(
Love the plugin, just one question, though:
For the permission "BlockCommand.add", is it possible to make certain ranks only be able to add a certain type of command? (E.G. A player only being able to use /bc add msg, but not /bc add cmd).
I'd like to make creating a block command available to higher ranking players, but not allow them to do anything crazy like op themselves. :)
Thank you!
Rightclicking a block and then executing the command doesn't work in R2.0 anymore. Could you maybe fix it? =)
@DerAhava
oh I will fix that now
Edit: Update is waiting for approvial
In every cmd it cut's out 2!
@Folas1337
I will try to add this feature but it looks hard. I cant promise you that this is possible.
@Blackixx
Thanks for it. I've downloaded it and will test it _again_ :D
Isn't it possible to make tripwire transfer the player-information, too? I would like to send messages to people that are crossing tripwire or execute any command with their name as a variable. I don't know if Bukkit supports that yet, but please look into it =) Would be so great!
@Folas1337
Fixed bug. Update is waiting for approvial!
@Blackixx
Thanks for the awesome update, I'm going to check it. Let's see tripwire now :P
When loading your plugin I can't place redstone anymore. No matter where I try, it simply doesn't work. After removing your plugin it's working again. Could you somehow solve this?
Maybe it's because you didn't compile for 1.3.1-R1.0?
yay!!s
@Folas1337
I will rewrite BlockCommand today, because the code is a bit messy
Will you update to 1.3.1? Would be really cool.
I don't know if it's possible to make tripwire transmit the player-information, so if someone hits a tripwire it'll send the player-info to the redstone and the redstone to the command, so f.e. "/say %player%" will turn into "/say Testificate" instead of "%player%", because that won't have any effect XD Please keep me updated about that and tell me if it's possible at all...
@helmetron
"1) Config file says Do not Edit Config"
Oh forgot to change this as I added some configurable stuff (first it was used to store BlockCommands or Messages.
"tried to set the flooronly to false and added a new command. THis did not work. for walking or touching" This should work, but each command/message will only be executed one time until the player got another message/command.
Example:
"But sends so many messages and commands that it makes it useless for me"
When a player is touching to blocks with a message/cmd, the command/message will be executed each PlayerMoveEvent.
I tried v1.4 and had no luck. Went back to version 1.3 and got it to work. 1) Config file says Do not Edit Config. tried to set the flooronly to false and added a new command. THis did not work. for walking or touching. I reseted everything back to original and it works when you walk. But sends so many messages and commands that it makes it useless for me. Can you modify it to have a cool down? I could not get the touching to work. If I bump into the block it does nothing. Is there a setting I am missing? Can you edit the config? Thanks for your help. I love this mod.
@ev3rm0r3
You have to write /bc stop after you bound a command to a block. And a player executes a command only one time until he executes another blockcommand. If a player touches to different blockcommands at the same time, the command will be executed every move.
Well I can't get it too work with a click, a swing, a punch BUT, i can get it to work as players walk over the blocks. Only problem is using it for promotion is a spamfest. When a player stands on the block it promotes them like 20 times spamming the ops on the server. Is there a way you can add a cooldown to the command? Say 5 seconds or completely adjustable?
@gibbly96
Wenn du jeden Block einzeln markierst wird der Befehl nur einmal ausgeführt, bis ein anderer Befehl ausgeführt wird
Hey. Wäre es möglich, das wenn man eine bestimmte Zone markiert, und einer der Blocks wird betreten, das dann ein Command ausgeführt wird. Ich könnte natürlich jeden Block einzeln markieren, aber dann laufe ich auch Gefahr das er mehrmals ausgeführt wird oder das die Nachricht mehrmals angezeigt wird.
Tut mir Leid wenn es diese Funktion schon geben sollte ^^
Gabriel
@Blackixx, ich schreib dich später oder morgen mal auf Skype an wegen meinem Vorschlag. Bin zur Zeit etwas.. naja egal, auf jeden Fall kam ich nicht dazu es dir früher zu schreiben. Sorry dafür :) Bis dann
This is an awesome plugin you can do so much with it! Thanks alot for this!