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:

  1. Copy RedstoneCommand.jar in /plugins/
  2. Restart/reload server

Configuration:

  1. Open config.yml
  2. Change permissionsEnabled to:
    • false if you want OP-only
    • 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:

  1. Create a sign: (Permission: RSC.create)
    1. [RSC]
    2. <command>
    3. [<delay in sec (optional)>]
    4. [<direction where the torch should be placed (optional)>]
  2. 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 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:
Support my work


Source:

GitHub


Help via PM, bug fix via ticket! Comments won't be answered.



Comments

  • To post a comment, please or register a new account.
Posts Quoted:
Reply
Clear All Quotes

About This Project

Categories

Members

Recent Files