Inactive [MECH/MISC] RedstoneCommand v3.0.2 - Turn on redstone simply by typing in a command [1.2.5-1.3.1]

Discussion in 'Inactive/Unsupported Plugins' started by homerbond005, May 30, 2011.

  1. Maybe this page is outdated. Please see Bukkit Dev.

    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 http://mcstats.org and GitHub for more info.

    Installation:
    1. Copy RedstoneCommand.jar in /plugins/
    2. Restart/reload server
    Configuration:
    1. Open config.yml
    2. Change permissionsEnabled to:
      1. false if you want OP-only
      2. true if you want to define permissions
    3. 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)
    1. [RSC]
    2. <command>
    3. <delay in sec (optional)>
    4. unused
    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

    What is delay?

    If you define 3 sec as delay, and type /rsc <name> it will turn on for 3 sec.

    Direction of the sign

    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.

    Download:


    Todo:
    • Add verboose mode toggle
    Changelog:
    • v3.0.2:
      • Change updater (new server)
    Show Spoiler

    • v3.0.1:
      • Added option for turning off the auto update reminder in config.yml
    • v3.0:
      • Change class paths
      • Added option for settings the location where the torch is placed
      • Torch location can be selected automatically
      • Changed a lot of code
      • Faster
    • v2.7:
      • Usage data will be sent anonymously to http://mcstats.org with Metrics
      • Fixed bug with wrong "no-permission" messages
      • Now supporting PermissionsEx, Bukkit Perms, bPermissions and OP-only
      • Changed class path
    • v2.6.7:
      • Fixed problems when using RSC and NoLagg together
      • More stability
    • v2.6.6:
      • Ready for Minecraft 1.2 and Bukkit 1.1-R5
    • v2.6.5:
      • Chunk loading before toggling a torch
      • CB 1.1-R3 support
      • No earlier versions are supported!
    • v2.6.4:
      • PEX support added
      • Added explicit commands (/rsc on <name> and /rsc off <name>)
      • Renamed Locations.yml to config.yml
      • Fixed small bugs
    • v2.6.3:
      • Fixed issue when delaying a RSC with the console.
    • v2.6.2:
      • Fixed permissions order while creating a sign
    • v2.6.1:
      • Added rsc.*, rsc.delete.* and rsc.use.*
    • v2.6:
      • Full Console Support added
      • Fixed some spelling failures
    • v2.5:
      • Reintroduced /rsc list
      • Delayed RSCs:
        • [rsc]
        • <name>
        • <delaytime in sec (optional)>
        • <something>
        • Removed "Permissions" and added PermissionsBukkit
      • Bug fix with arrows
      • Smaller source code
    • v2.1.1:
      • A small bug with bad consequences: No use for the whole plugin. There was a failure in the multiworld management. Now hopefully fixed :)
    • v2.1:
      • BIGGEST BUG FIX EVER!
      • No more bugs. (I hope so :D)
      • Bukkit #1060 compatible
      • Removed /list command because of bugs. Will be adde next update.
    • v2.0:
      • Bukkit #1000 compatible!
    • v1.3:
      • Permissions for:
        • /rsc list (RSC.list)
        • creation of RSCs (RSC.create)
      • Bug fixes
    • v1.0 Beta:
      • /rsc list
      • /rsc delete <command>
      • Bug fixes
    • v0.2 Alpha: Bug fixes
    • v0.1 Alpha: First release


    [​IMG]
     
    DRP96 likes this.
  2. Offline

    WMisiedjan

    This idea is great, I think I'll implant it into my WirelessRedstone plugin!
    I'll give you some credit for the idea!
     
  3. Actually, PailStone was the first one, who has Commands to trigger Redstone.
     
  4. Can't find PailStone on plugins.bukkit.org.
     
  5. It got moved to unsupported. Sadly
     
  6. Offline

    Plague

    the title should contain latest tested recommended build
     
  7. I'd like to but I do not know how to change it.
    Sorry I've found it.
     
  8. Offline

    Windows_i7_920

    This plugin does not work at all on my server. I am using CB 818.

    Command execution:
    Code:
    org.bukkit.command.CommandException: Unhandled exception executing command 'rsc' in plugin RedstoneCommand v1.0
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:128)
            at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:281)
            at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:718)
            at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:684)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:677)
            at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:32)
            at net.minecraft.server.NetworkManager.b(NetworkManager.java:217)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:401)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:311)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.ArrayIndexOutOfBoundsException: 0
            at com.bukkit.HomerBond005.RedstoneCommand.RedstoneCommand.onCommand(RedstoneCommand.java:146)
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
            ... 12 more
    
    Attempt at making a sign:
    Code:
    10:35:16 [SEVERE] Could not pass event SIGN_CHANGE to RedstoneCommand
    java.lang.NullPointerException
            at com.bukkit.HomerBond005.RedstoneCommand.RSCL.listRSC(RSCL.java:29)
            at com.bukkit.HomerBond005.RedstoneCommand.RSCL.onSignChange(RSCL.java:63)
            at org.bukkit.plugin.java.JavaPluginLoader$30.execute(JavaPluginLoader.java:447)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:310)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:992)
            at net.minecraft.server.Packet130UpdateSign.a(SourceFile:41)
            at net.minecraft.server.NetworkManager.b(NetworkManager.java:217)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:401)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:311)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    
     
  9. Hmm now I'm at my iPod Touch so I can't look it up, but I think I know what the failure is.
    Which plugins do you have installed?
    Edit:
    Please try updating RSC.
     
  10. On my server it works fine.
     
  11. Offline

    t2wave

    I really need to get this on the server I play. I've been wanting this since PailStone died. Thank you very much for this.
     
    homerbond005 likes this.
  12. Offline

    Szhlopp

    Does this not work with the latest build?
     
  13. There is a bukkit bug. If you could wait 15 min I'll try fixing it.

    Please wait a few days. It is a bit difficult.

    --------------------------------------------------------------------
    Update for #1000:
    No changes, simply bug fixing. :)
    --------------------------------------------------------------------

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 16, 2016
  14. Offline

    Szhlopp

    Thank you muchly, will test here soon!
     
  15. Offline

    Szhlopp

    Well I can create the [RSC] sign now, but when I try to type '/rsc one' I get these errors:

    11.08 02:47:19 [Server] INFO ... 12 more
    11.08 02:47:19 [Server] INFO at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
    11.08 02:47:19 [Server] INFO at com.bukkit.HomerBond005.RedstoneCommand.RedstoneCommand.onCommand(RedstoneCommand.java:194)
    11.08 02:47:19 [Server] INFO at com.bukkit.HomerBond005.RedstoneCommand.RedstoneCommand.toggleRSC(RedstoneCommand.java:110)
    11.08 02:47:19 [Server] INFO at org.bukkit.Location.getBlock(Location.java:72)
    11.08 02:47:19 [Server] INFO Caused by: java.lang.NullPointerException
    11.08 02:47:19 [Server] INFO at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    11.08 02:47:19 [Server] INFO at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    11.08 02:47:19 [Server] INFO at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
    11.08 02:47:19 [Server] INFO at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    11.08 02:47:19 [Server] INFO at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:85)
    11.08 02:47:19 [Server] INFO at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    11.08 02:47:19 [Server] INFO at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
    11.08 02:47:19 [Server] INFO at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:670)
    11.08 02:47:19 [Server] INFO at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:677)
    11.08 02:47:19 [Server] INFO at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:713)
    11.08 02:47:19 [Server] INFO at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:320)
    11.08 02:47:19 [Server] INFO at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:129)
    11.08 02:47:19 [Server] INFO at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
    11.08 02:47:19 [Server] INFO org.bukkit.command.CommandException: Unhandled exception executing command 'rsc' in plugin RedstoneCommand v1.5
     
  16. Please send me the complete error message.

    Sure that "one" is the real name? It is case-sensitive.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 16, 2016
  17. Offline

    strontkever

    didnt work
     
  18. It would be useful if you describe the problem. I tried it on a local server and it works.
     
  19. Offline

    strontkever

    srry for being so short, but i only made the sign, the torch showed up (against a wall not in the middle of a block)
    then typing the command.. huge error came up.. cant copy the error log
     
  20. Maybe the first part?
     
  21. Offline

    Grammar Troll

    SuperPerms support?
     
  22. What are SuperPerms?
     
  23. What are SuperPerms?
     
  24. Offline

    Syntaxlb

    Work for create, but not for use :

    Code:
    2011-08-27 02:04:52 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'rsc' in plugin RedstoneCommand v2.1
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:129)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:352)
        at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:737)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:701)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:694)
        at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:89)
        at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:436)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:454)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:363)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.NullPointerException
        at org.bukkit.Location.getBlock(Location.java:72)
        at com.bukkit.HomerBond005.RedstoneCommand.RedstoneCommand.deleteRSC(RedstoneCommand.java:85)
        at com.bukkit.HomerBond005.RedstoneCommand.RedstoneCommand.onCommand(RedstoneCommand.java:204)
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
        ... 13 more
    With build 1060
     
  25. I think think this failure has been created by deleting an RSC. I'll try fixing it today.
    By the way, this is a good example how to post an error. Bukkit Build, how it was created and the error message. Nothing is missing. Thanks :)
     
  26. Offline

    WiLDiSH

    Error when I try to use the command I get this
    Code:
    07:13:00 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'rsc' in plugin RedstoneCommand v2.1
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:129)
            at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:352)
            at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:737)
            at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:701)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:694)
            at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
            at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:89)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:454)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:363)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.NullPointerException
            at org.bukkit.Location.getBlock(Location.java:72)
            at com.bukkit.HomerBond005.RedstoneCommand.RedstoneCommand.toggleRSC(RedstoneCommand.java:110)
            at com.bukkit.HomerBond005.RedstoneCommand.RedstoneCommand.onCommand(RedstoneCommand.java:210)
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
            ... 12 more
    

    LOL just noticed the same thing is above me.
     
  27. Offline

    DRP96

    Sounds good, but unfortunately doesn't work :(
    Always "An internal error occured"... when I use /rsc <command>
     
  28. Sure that the name is right? It is casesensitiv. If it is right, please take a look in /plugins/RedstoneCommand/config.yml
    Is there a line, with the name of the RSC?
     
  29. Offline

    DRP96

    Yes, the Name is right. It is also in the config file. If I Write a wrong Name it says that it does not exist. But when it's right it says.
    Ach ne wie ich grad sehe du sprichst auch deutsch? xD
    Dann auf deutsch: also wenn der name richtig ist kommt immer der interne fehler.. Es ist auch alles richtig, der fehler kommt übrigens auch wenn ich versuche ein Command zu löschen. Bukkit ist v1060.
     
  30. Okay... Hmm. Ist irgendwas in der Console? Müsste ja eigentlich.... Bitte mach davon ein Screenshot oder poste das bei pastebin oder so. Aber ich glaube ich hab den Fehler :D (Glauben heisst nicht wissen xD)
     

Share This Page