RedstoneCommand
Hello at all!
This is my first plugin. It's very simple but useful. It creates after creating a special sign a redstone torch at the north site off the sign. You can toggle this redstone torch by typing in a command. You can give your users special Permissions to create and/or use such a command. It isn't required (you can enable it in config.yml), but recommend.
Uses Metrics for sending completly anonomous data to http://mcstats.org for usage tracking. See mcstats.org and GitHub for more info.
Installation:
- Copy RedstoneCommand.jar in /plugins/
- Restart/reload server
Configuration:
- Open config.yml
- Change permissionsEnabled to:
- false if you want OP-only
- true if you want to define permissions
- Change signPlaceDirectionModeEnabled to false if you do not want the torch to be placed in front of the sign (automatically direction selection). As default the torch will be placed north of the sign if this value is false.
Usage:
- Create a sign: (Permission: RSC.create)
- [RSC]
- <command>
- [<delay in sec (optional)>]
- [<direction where the torch should be placed (optional)>]
- Then you can use the following commands:
- /rsc <command>
- Toggle the RSC
- Permission: RSC.use.<command>
- /rsc on <command>
- Turn on the RSC (explicit)
- Permission: RSC.use.<command>
- /rsc off <command>
- Turn off the RSC (explicit)
- Permission: RSC.use.<command>
- /rsc delete <command>
- Delete the RSC from library and remove the sign and the torch
- Permission: RSC.delete.<command>
- /rsc list
- List all RSCs
- Permission: RSC.list
- /rsc <command>
What is a delay?
If you define 3 sec as delay, and type /rsc <name> it will turn on for 3 sec.
Direction of the torch
At first the fourth line of the sign will be checked if there is given a direction. If there is no direction defined, it will check if automatically direction selection is turned on in the config (See Configuration). If the automatically direction selection is turned on, it will place the torch in front of the sign (where the text of the sign is). Otherwise the torch is defaulted to the north of the sign position.
Todo:
- Add verboose mode toggle
Please consider donating using the following link:
Source:
Help via PM, bug fix via ticket! Comments won't be answered.
@Bart0110
Thanks for the suggestion. I thought I already added some dependencies, but I didn't. v3.1.2 now includes this :)
@HomerBond005
Maybe the world is loaded after RedstoneCommend. It seems that Pascal98R & dvdbot got this problem I also had this problem and I edited the plugin.yml
I added: softdepend: [Multiverse-Core, MyWorlds]
You can also add more world management plugins but these are the main ones.
@dvdbot
The RSC is in a chunk that is corrupt or can't be loaded for any other reason. Maybe you renamed the world or something like that so that the location of the torch cannot be assigned to a chunk.
After using the /rsc command command a few times I got an internal server error: Here is the error from the Log PS: Im using spigot:
org.bukkit.command.CommandException: Unhandled exception executing command 'rsc' in plugin RedstoneCommand v3.1 at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) [spigot.jar:git-Spigot-1543] at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:181) [spigot.jar:git-Spigot-1543] at org.bukkit.craftbukkit.v1_7_R3.CraftServer.dispatchCommand(CraftServer.java:767) [spigot.jar:git-Spigot-1543] at net.minecraft.server.v1_7_R3.PlayerConnection.handleCommand(PlayerConnection.java:1015) [spigot.jar:git-Spigot-1543] at net.minecraft.server.v1_7_R3.PlayerConnection.a(PlayerConnection.java:845) [spigot.jar:git-Spigot-1543] at net.minecraft.server.v1_7_R3.PacketPlayInChat.a(PacketPlayInChat.java:28) [spigot.jar:git-Spigot-1543] at net.minecraft.server.v1_7_R3.PacketPlayInChat.handle(PacketPlayInChat.java:65) [spigot.jar:git-Spigot-1543] at net.minecraft.server.v1_7_R3.NetworkManager.a(NetworkManager.java:184) [spigot.jar:git-Spigot-1543] at net.minecraft.server.v1_7_R3.ServerConnection.c(ServerConnection.java:81) [spigot.jar:git-Spigot-1543] at net.minecraft.server.v1_7_R3.MinecraftServer.v(MinecraftServer.java:731) [spigot.jar:git-Spigot-1543] at net.minecraft.server.v1_7_R3.DedicatedServer.v(DedicatedServer.java:284) [spigot.jar:git-Spigot-1543] at net.minecraft.server.v1_7_R3.MinecraftServer.u(MinecraftServer.java:584) [spigot.jar:git-Spigot-1543] at net.minecraft.server.v1_7_R3.MinecraftServer.run(MinecraftServer.java:490) [spigot.jar:git-Spigot-1543] at net.minecraft.server.v1_7_R3.ThreadServerApplication.run(SourceFile:628) [spigot.jar:git-Spigot-1543] Caused by: java.lang.NullPointerException at org.bukkit.Location.getChunk(Location.java:73) [spigot.jar:git-Spigot-1543] at de.homerbond005.redstonecommand.RSC.isON(RSC.java:42) [?:?] at de.homerbond005.redstonecommand.RedstoneCommand.toggleRSC(RedstoneCommand.java:286) [?:?] at de.homerbond005.redstonecommand.RedstoneCommand.onCommand(RedstoneCommand.java:122) [?:?] at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) [spigot.jar:git-Spigot-1543]
Very very nice plugin, good work! :D
Edit: I've connected the plugin over linux shell scrips and websites to my smartphone. I can now toggle doors and other thing with my smartphone!!! Awesome :O
I'm getting an error when i try to activate some of my redstonecommandsigns: 14.10 07:53:43 [Server] SEVERE Could not pass event PlayerCommandPreprocessEvent to WorldEdit v5.5.8
I'm using worldedit 5.5.8
@machadolab
Thank you for your suggestion. Currently I am rebuilding my complete workspace on Maven and Ivy. I will release in about 2 weeks the poms for all my Bukkit plugins. Thank you for your nice feedback!
This plugin is awesome. Exactly what I needed for my project. I maven-ized the codebase and rebuilt it since I got an error about "Unsupported major.minor version 51.0" because I am using java 6.
Do you have any interest in the maven-ized version of the project? If so, I will send you a pull request on github.
Not working for me in 1.6.2, if i try to use a rsc sign by doing '/rsc test' then it just gives an error.
@HomerBond005
Thanx
@timstans
Done: http://dev.bukkit.org/bukkit-plugins/redstonecommand/files/5-redstone-commandv3-0-3/
Can you remove the inceptolabs.hopto.org http connection?
Please update to 1.5.1 ;)
works on 1.4.6 but the on off command does the same thing which kinda stinks
This plugin's awesome! It works a lot better than the redstone plugins I used to use. Works fine on 1.4.6 too.
@HomerBond005
Hey man, would you be able to add a config option to disable the global messages? Or perhaps a required permission node? Thanks in advance! Plugin works great on 1.3.2!
@m1k3y9292
This seams like you've got a problem in your GroupManager configuration.
HomerBond005! You rock man! I've been using RedstoneTorch... and I requested some features but the developer has gone MIA. Glad to see your plugin has the features I need! Very simple but very useful indeed! Thanks for all your hard work and for such an awesome plugin! =D
Very nice, I would love the direction to be implemented. You could have it the direction the sign is facing?