TorchCommand
TorchCommand 1.4

With this plugin you can change redstone torch state with command.
Vault dependency.
Usage
Place a redstone torch.
Type: /tc set name
After this right-click on the redstone torch.
Type: /tc on/off name or /tc name >>> To enable or disable the redstone torch.
Commands
/tc set <name> >>> Set a redstone torch with name <name>.
/tc (on/off) <name> (world) (time) >>> Toggle redstone torch with name <name>between on and off state.
/tc <name> (world) >>> Toggle redstone torch with name <name>between on and off state.
/tc info <name> >>> Get the info about redstone torch with name <name>
/tc delete <name> >>> Delete a redstone torch with name <name>.
/tc list <page> >>> List redstone torches.
Permissions
torchcommand.use.<torchname> >> Permission for command enabling/disabling redstone torches for <torchname>.
torchcommand.set >> Permission for command: /tc set
torchcommand.torch >> Permission for command enabling/disabling redstone torches.
torchcommand.info >> Permission for command: /tc info
torchcommand.delete >> Permission for command: /tc delete
torchcommand.list >> Permission for command: /tc list
Installation
Download latest file and put it to your 'plugins/' folder.
Then restart your server or load it with PlugMan or with other plugin manager.

-
View User Profile
-
Send Message
Posted Apr 29, 2013Hello, I have a problem. Is there a way i could light the torch, then it automaticly close after a certain time ? Like 30 sec or anythings else ? Thanks.
-
View User Profile
-
Send Message
Posted Apr 4, 2013Still works for 1.4.6 ! :)
-
View User Profile
-
Send Message
Posted Mar 25, 2013This is such a simple plugin but the power it provides is awesome. Thanks for this
-
View User Profile
-
Send Message
Posted Mar 24, 2013@newboyhun
Thx !! :)
-
View User Profile
-
Send Message
Posted Mar 24, 2013@ZrarZ
I will =)
-
View User Profile
-
Send Message
Posted Mar 24, 2013@newboyhun I have an other request, if you can add a persmission as : torchcommand.use.<name> It's better because like that some channels will be reserved for/to admins or some VIPs
{Sorry if I not very clear, I want no use Google Translate ! :p - And thank you for accepted my idea :) }
-
View User Profile
-
Send Message
Posted Mar 24, 2013@ZrarZ
Nice idea, =)
As you wish today it will be done.
-
View User Profile
-
Send Message
Posted Mar 23, 2013Hello ! It would be nice if you can add a delay after the command, like : /tc on <name> <time in seconds> and /tc off <name> <time in seconds>
Otherwise it's very useful !!
-
View User Profile
-
Send Message
Posted Mar 22, 2013@ragan262
I know but this is an old plugin, i will remove it.
-
View User Profile
-
Send Message
Posted Mar 22, 2013You do not need to use vault for permissions. What vault does is that it calls bukkit's method to check permissions.
https://github.com/MilkBowl/Vault/blob/master/src/net/milkbowl/vault/permission/Permission.java#L98-L100
-
View User Profile
-
Send Message
Posted Mar 22, 2013Updated to 1.4.7 and changed permissions name!!!!
-
View User Profile
-
Send Message
Posted Oct 4, 2012@ilxMine
I know it's late =(
But i will make this too.
@nurwin22
Seperated the tc torch to on and off.
I will add ilxMine 's idea too,so there will be more way to change the state of a redstone torch.
-
View User Profile
-
Send Message
Posted Aug 20, 2012@newboyhun
Hey just wanted to say thank you for such an amazing plugin man. Please don't let it die! xD I hope you'll be releasing a 1.3.1 build soon!
EDIT: Instead of a toggle command (/tc torch <name>) could you make it into 2 on/off commands? Like /tc on <name> and /tc off <name>? That'd be awesome! I appreciate your hard work.
-
View User Profile
-
Send Message
Posted Jul 20, 2012Could you modify the command '/tc torch' to just '/tc' because it's much faster and helpful. And now that I'm using this plugin for about a week I find it quite annoying that at reboot of the server some states of torches get overwritten and turn themselves on (it only turns the torches on, not off). I advise to add a line in the config with the parameters true or false and that when the server shuts down, the plugin writes to the config file witch state the torch currently is on and at reboot the config file is read and the state that the torch was in gets applied then again.
-
View User Profile
-
Send Message
Posted Jun 25, 2012@jdekruyf
Vault dependency.
@march75 @Conderan
Sorry for waiting ,i was forgot to check this plugin =S Added console usage + multi-world.
-
View User Profile
-
Send Message
Posted Jun 2, 2012@Conderan
Hi guys,
I have the same "problem" like Conderan. I want to use this from the console with a sheduler.
It is possible to upgrade this plugin? With multiworld would by nice :-)
Regards
-
View User Profile
-
Send Message
Posted May 1, 2012I suppose somewhere in your code you have defined a file path that is specific to your computer rather than a universally acceptable file path. Either that or your plugin has a permissions dependency other than PermissionsEX.
Any ideas?
21:47:57 [SEVERE] Error occurred while enabling TorchCommand v1.1.2 (Is it up to date?)
java.lang.NoClassDefFoundError: net/milkbowl/vault/permission/Permission
at me.newboy.TorchCommand.TorchCommand.setupPermissions(TorchCommand.java:47)
at me.newboy.TorchCommand.TorchCommand.onEnable(TorchCommand.java:40)
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:215)
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:336)
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:381)
at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:250)
at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:232)
at net.minecraft.server.MinecraftServer.t(MinecraftServer.java:371)
at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:358)
at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:187)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:422)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
Caused by: java.lang.ClassNotFoundException: net.milkbowl.vault.permission.Permission
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:41)
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:29)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 12 more
-
View User Profile
-
Send Message
Posted Apr 19, 2012Can you make this work from the console & work regardless of which world I'm in? Nearly pointless for me until you do...
-
View User Profile
-
Send Message
Posted Apr 17, 2012@newboyhun
xD
-
View User Profile
-
Send Message
Posted Apr 17, 2012@epicbastion
My days really bad,not much time for testing.
Thanks for report =(
Fixing it.
@hawkfalcon
Noob mistake O_O
I will fix it.