BetterMechanics
This plugin is written to replace CraftBook and CraftBookMechaisms, because they lacked some features I needed on the server.
I've also added a new feature, called the pen.
Features:
CraftBook-stuff (take a look at the CraftBook wiki to find out how you build these):
- Door
- Gate
- Bridge
- Lift
- Hidden switch
- Cauldron
- Ammeter
Bridges, Gates and Doors need a chest with the items, so they're not spawned.
Added:
- Small door, a door with width 1. Sign label is [sDoor]/[sDoor Up]/[sDoor Down].
- Small bridge, a bridge with width 1. Sign label is [sBridge]/[sBridge End].
- TeleLift, a lift that works like /tele and teleports you to given coordinates. Sign label is [TeleLift] Coordinates have to be put on the 3rd line in syntax: [x:z:y] (so separated by colons).
- Pen
you can put text in your memory and paste it on a sign. This only works if you can build in the area.
Very useful if you have a plugin like MinecartMania running. How this works:
Pen commands:
/pen set <text> » set the sign text (the char '^' is a line break)
/pen setline <line> <text> » set one line of the text (lines start at 0)
/pen clear » clears the current text
/pen dump » dumps the current text
/pen clearline <line> » clears the line (set to "", lines start at 0)
Pen control:
Right clicking a sign will either place the text on the sing, or, if your memory is emtpy, load the text in your memory.
The tool can be changed in the config, but the default tool is a piece of (char)coal.
All these features have permission nodes, and a (Meaglin's) Zones and/or WorldGuard check is possible. Just edit the config to enable or disable these features. The permission nodes are:
Permission nodes:
bettermechanics.small_bridge.use bettermechanics.small_bridge.create bettermechanics.bridge.use bettermechanics.bridge.create bettermechanics.small_gate.use bettermechanics.small_gate.create bettermechanics.gate.use bettermechanics.gate.create bettermechanics.small_door.use bettermechanics.small_door.create bettermechanics.door.use bettermechanics.door.create bettermechanics.lift.use bettermechanics.lift.create bettermechanics.hidden_switch.use bettermechanics.hidden_switch.create bettermechanics.ammeter bettermechanics.cauldron bettermechanics.pen And for reloading the config: bettermechanics.reloadconfig
Download BetterMechanics
Zip: https://github.com/downloads/Edoxile/BetterMechanics/BetterMechanics_v1.11.zip
Source code: https://github.com/Edoxile/BetterMechanics
If you find any bugs, or if you have a brilliant new feature that should be added, please let me know!
Credits go to sk89q for both the idea, and pieces of code that I've used of him. Also thanks to Meaglin and GuntherDW for fixing some bugs.
Same error here:
http://pastie.org/4748359
@LordKainzo 2012-04-02 22:02:31 [SEVERE] Could not load 'plugins\BetterMechanics.jar' in folder 'plugins' org.bukkit.plugin.InvalidPluginException: java.lang.VerifyError: class net.edoxile.bettermechanics.BetterMechanics overrides final method getName.()Ljava/lang/String; at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:150) at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:307) at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:232) at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:308) at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:284) at net.minecraft.server.ServerConfigurationManager.<init>(ServerConfigurationManager.java:53) at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:188) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:478) at net.minecraft.server.ThreadServerApplication.run(SourceFile:490) Caused by: java.lang.VerifyError: class net.edoxile.bettermechanics.BetterMechanics overrides final method getName.()Ljava/lang/String; at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(Unknown Source) at java.security.SecureClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.access$100(Unknown Source) 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) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:139) ... 8 more
@LordKainzo
by the looks of it, it doesn't work.
I get this errors on startup, Im using the latest dev build of craftbukkit #2090.
http://dev.bukkit.org/paste/4958/
Attempt at updating to 1.2.3 Link Removed: http://www.mediafire.com/?8skveb2b0ig5zd1
Let me know if it works
Sounds great, never was satisfied with CraftBook, this is a perfect replacement used together with RedstoneChips.
EDIT: Pleease update this plugin!
and now R5 comes along... please please please edoxile, don't make me learn java, update this. think of the children!
works flawlessly with 1.1 r4!
someone seriously needs to take this plugin because this is really great plugin.
@LordKainzo worked with 1.0.1 but with 1.1 it crashes the server when i toggle doors with redstone. sadface. @Edoxile any chance this will be updated any time soon?
Does this have any errors with latest?
Also; please update! =)
This is a very useful plugin for my server, but could you make so that gates doesn't need a chest nearby? Thanks
Can you add writing to bookcases? :)
I was wondering if you were aware of any issues between mcmmo and lifts? I cant get mine to work. I can create them (as op) and there are no issues, but you dont teleport.
Also, could the new gates (101) be used as a build material for gates and doors?