ToggleBlock

ToggleBlock Logo

name

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/

You must login to post a comment. Don't have an account? Register to get one!

  • Avatar of Pocketkid2 Pocketkid2 Jul 28, 2014 at 21:45 UTC - 0 likes

    Nice plugin, does the job well and fast! Great job! Love it!

  • Avatar of delroku delroku Mar 30, 2014 at 02:22 UTC - 0 likes

    can you add a single command to toggle "on" and "off" also the command for each one of those funcions?

  • Avatar of lukek60 lukek60 Mar 03, 2013 at 19:08 UTC - 0 likes

    permission 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

  • Avatar of ImaginecraftMcServer ImaginecraftMcServer Jan 12, 2013 at 09:45 UTC - 0 likes

    is there any way to configure permissions only for some classes ??

  • Avatar of lol768 lol768 Dec 16, 2012 at 18:24 UTC - 1 like

    @biggrz: Go

    No, but you can stick a redstone torch in a region

    I no longer moderate this site. Please create a report for the Curse staff to handle if you need assistance.

  • Avatar of biggrz biggrz Dec 16, 2012 at 07:14 UTC - 0 likes

    Very nice plugin. I'm curious, is there a way to have /tbon restore a switch state?

  • Avatar of mdcollins05 mdcollins05 Dec 13, 2012 at 05:19 UTC - 0 likes

    I'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!

    BlockMovers

  • Avatar of chrisvl2010 chrisvl2010 Dec 02, 2012 at 10:20 UTC - 0 likes

    good to know the version made in october 6, 2012 works but the newer versions don't

  • Avatar of chrisvl2010 chrisvl2010 Dec 02, 2012 at 10:15 UTC - 0 likes

    02: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

  • Avatar of chrisvl2010 chrisvl2010 Nov 30, 2012 at 01:47 UTC - 0 likes

    for the last time i have the newest java so you cant tell me that i need to upgrade it

Facts

Date created
Jul 13, 2012
Categories
Last update
Nov 27, 2012
Development stage
Beta
License
GNU General Public License version 3 (GPLv3)
Curse link
ToggleBlock
Downloads
2,335
Recent files

Authors