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.
Hello, 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.
Still works for 1.4.6 ! :)
This is such a simple plugin but the power it provides is awesome. Thanks for this
@newboyhun
Thx !! :)
@ZrarZ
I will =)
@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 :) }
@ZrarZ
Nice idea, =)
As you wish today it will be done.
Hello ! 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 !!
@ragan262
I know but this is an old plugin, i will remove it.
You 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
Updated to 1.4.7 and changed permissions name!!!!
@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.
@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.
Could 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.
@jdekruyf
Vault dependency.
@march75 @Conderan
Sorry for waiting ,i was forgot to check this plugin =S Added console usage + multi-world.
@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
I 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
Can you make this work from the console & work regardless of which world I'm in? Nearly pointless for me until you do...
@newboyhun
xD
@epicbastion
My days really bad,not much time for testing.
Thanks for report =(
Fixing it.
@hawkfalcon
Noob mistake O_O
I will fix it.