ToggleBlock
Introduction
A simple plugin that allows players to register blocks and then toggle on and off (all blocks to air). Useful for dams, bridges, traps, secret areas, controlling redstone via commands and much more.
Features
- Multi-world support
- Block data support (wool colours, wood types, container positions etc)
- All regions are saved and accessible after a reload
- Regions are easily backed up
- Supports tbon and tboff commands from the console and players
- Can be used to activate redstone via a command (redstone torch in a region)
- Useful for draw-bridges, moats, traps, secret areas and more
- All regions are global and can be accessed by anyone
- Redstone activation (region on only when powered)
- Redstone can be inverted (region off when powered)
- Use /tb to list all regions
- Can be used to wirelessly activate redstone
Upcoming Features
- Fix dupe issue by protecting blocks in a ToggleBlock region
- Take user requests (comment below)
- Will be available in Polish for the 1.4 update
Current Bugs/Issues
- See above concerning duplication issue
Commands
Possible commands:
- /tb [name] - Starts/stops edit mode for a specific region of blocks
- /tbon [name] - Resets all blocks in the specific region to their original state
- /tboff [name] - Turns all blocks in the region to air.
- /tbr [name] - Links a sign (look at it) with a region to support redstone
- /tbrd - Remove linked sign that you're looking at
Source Code
This may be helpful for those wishing to learn Java or for the approval process. See http://dev.bukkit.org/server-mods/toggle-blocks/pages/code/
-
View User Profile
-
Send Message
Posted Dec 24, 2015Linking signs with redstone doesn't seem to function on Spigot-1.8.8-R0.1 SNAPSHOT, using commands does work, however. No error messages in console.
-
View User Profile
-
Send Message
Posted Jul 28, 2014Nice plugin, does the job well and fast! Great job! Love it!
-
View User Profile
-
Send Message
Posted Mar 29, 2014can you add a single command to toggle "on" and "off" also the command for each one of those funcions?
-
View User Profile
-
Send Message
Posted Mar 3, 2013permission support? id like it so that everyone has access to /tbon and /tboff without opping them (im using command sings for this, so they dont know any of the toggleblock commands) but since theres no permission/config, the creator is the only one who can use /tbon /tboff for their door. i need this for a zombie map
-
View User Profile
-
Send Message
Posted Jan 12, 2013is there any way to configure permissions only for some classes ??
-
View User Profile
-
Send Message
Posted Dec 16, 2012@biggrz
No, but you can stick a redstone torch in a region
-
View User Profile
-
Send Message
Posted Dec 15, 2012Very nice plugin. I'm curious, is there a way to have /tbon restore a switch state?
-
View User Profile
-
Send Message
Posted Dec 12, 2012I'm liking the plugin! It would be awesome if there was a list of permissions that are used instead of me having to open the jar up to find 'em. Thanks!
-
View User Profile
-
Send Message
Posted Dec 2, 2012good to know the version made in october 6, 2012 works but the newer versions don't
-
View User Profile
-
Send Message
Posted Dec 2, 201202:11:45 [SEVERE] Could not load 'plugins/ToggleBlock.jar' in folder 'plugins' org.bukkit.plugin.InvalidPluginException: java.lang.UnsupportedClassVersionError: me/lol768/toggleBlocks/main : Unsupported major.minor version 51.0 at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:154) at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:305) at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:230) at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:227) at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:205) at net.minecraft.server.ServerConfigurationManagerAbstract.<init>(ServerConfigurationManagerAbstract.java:51) at net.minecraft.server.ServerConfigurationManager.<init>(SourceFile:11) at net.minecraft.server.DedicatedServer.init(DedicatedServer.java:111) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:398) at net.minecraft.server.ThreadServerApplication.run(SourceFile:856) Caused by: java.lang.UnsupportedClassVersionError: me/lol768/toggleBlocks/main : Unsupported major.minor version 51.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) at java.lang.ClassLoader.defineClass(ClassLoader.java:615) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) at java.net.URLClassLoader.defineClass(URLClassLoader.java:283) at java.net.URLClassLoader.access$000(URLClassLoader.java:58) at java.net.URLClassLoader$1.run(URLClassLoader.java:197) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:44) at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:29) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:247) at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:143) ... 9 more
well obviously you don't know anything about what your talking about because your "help" isn't working AT ALL!!!
so don't even think to come back and say something like "your not doing it right" or something like that
-
View User Profile
-
Send Message
Posted Nov 29, 2012for the last time i have the newest java so you cant tell me that i need to upgrade it
-
View User Profile
-
Send Message
Posted Nov 29, 2012@lol768
I don't get any errors, they just don't function. I did notice that when I do a command it doesn't say the command doesn't exist in the chat like normal.
Can you look into the start up error that I gave you though.
-
View User Profile
-
Send Message
Posted Nov 29, 2012@_InnoKo_
@HammerfeIl
@_InnoKo_ Can I have the latest code from you :D?
Think you might have missed creating the directory perhaps?
@HammerfeIl
What errors do you get when trying the commands?
-
View User Profile
-
Send Message
Posted Nov 28, 2012Hey I got this start up error
2012-11-28 21:46:36 [SEVERE] Couldn't load toggleBlock data :-( 2012-11-28 21:46:36 [SEVERE] Couldn't load redstone info 2012-11-28 21:46:36 [INFO] ERROR: plugins\toggleBlocks\tgr.bin (The system cannot find the path specified)
Also, I'm having a problem with the commands for this plugin as well I'm only able to use the /tbrd and tbr commands. Can you please look into this for I would love to use this plugin.
-
View User Profile
-
Send Message
Posted Nov 28, 2012@chrisvl2010
That error (Unsupported major.minor version 51.0) is from having an older version of Java than the .jar was compiled in. ToggleBlocks was compiled in Java 7, so you must be using 6 or older.
-
View User Profile
-
Send Message
Posted Nov 28, 2012@Kluberge
Can't you already do bPermissions with PermissionsEX?
Can't you already do ChestShop with RealShop, PhysicalShop, or DynamicShop?
Can't you already do ChatColors with Colors?
Can't you already do Anti-XRay with XRay-Informer?
There are many plugins that do essentially the same thing. But they're still all different :)
-
View User Profile
-
Send Message
Posted Nov 27, 2012Can't you already do this with Variable Triggers?
-
View User Profile
-
Send Message
Posted Nov 27, 2012and i know your going to say i need to update java but i have the newest java so idk what the problem is
-
View User Profile
-
Send Message
Posted Nov 27, 2012it keeps saying it cannot load the plugin into the plugins folder
[SEVERE] Could not load 'plugins/ToggleBlock.jar' in folder 'plugins' org.bukkit.plugin.InvalidPluginException: java.lang.UnsupportedClassVersionError: me/lol768/toggleBlocks/main : Unsupported major.minor version 51.0 at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:154) at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:305) at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:230) at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:227) at org.bukkit.craftbukkit.CraftServer.reload(CraftServer.java:577) at org.bukkit.Bukkit.reload(Bukkit.java:183) at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:22) at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:185) at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:502) at org.bukkit.craftbukkit.CraftServer.dispatchServerCommand(CraftServer.java:494) at net.minecraft.server.DedicatedServer.al(DedicatedServer.java:258) at net.minecraft.server.DedicatedServer.r(DedicatedServer.java:223) at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:493) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:426) at net.minecraft.server.ThreadServerApplication.run(SourceFile:856) Caused by: java.lang.UnsupportedClassVersionError: me/lol768/toggleBlocks/main : Unsupported major.minor version 51.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) at java.lang.ClassLoader.defineClass(ClassLoader.java:615) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) at java.net.URLClassLoader.defineClass(URLClassLoader.java:283) at java.net.URLClassLoader.access$000(URLClassLoader.java:58) at java.net.URLClassLoader$1.run(URLClassLoader.java:197) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:44) at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:29) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:247) at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:143) ... 14 more
-
View User Profile
-
Send Message
Posted Nov 27, 2012@lol768
Hahaha, I get that a lot ;)
Alright cool, I uploaded it last night and it just got approved so its up now. I have a server that I'm developing for and some other plugins to maintain but when i get free time i'll definitely work on this plugin some more, and I'll find an efficient way to do region protection. Glad to work with you :)