Lift
This plugin is no longer maintained
You can instead take a look at LiftReloaded: https://www.spigotmc.org/resources/liftreloaded.97551
Description
A simple elevator plugin.
Primary features:
- Command free
- No configuration needed (but there if you want it!)
- Database free (Lifts are determined by block arrangements, nothing more)
- Multi floor elevators
- Multi passenger elevators, including mobs and dropped items
- Abstract elevator shaft shapes
- Redstone triggers
- Carpets can now be placed in any elevator floor. No more unsightly glass!
- All rails can now be put in shafts. Minecarts will now go up and down lifts and resume their previous speed upon arrival (this is largely untested, more feedback here is needed!)
Video note: the sign below the button is no longer needed! See the build instructions below for the new method.
More video tutorials - English, Deutsch, Português
How it works
No commands! No save file to worry about! It is easy to add, remove, or change floors. Just place or remove blocks! Lifts are made by scanning block arrangements are not saved or stored in memory after they are used. With the default configuration this is a fast process, less than 20 milliseconds.
Installation
Just drop the plugin in the plugin folder and play! No permissions to set up and the configuration is set up with defaults that will work for most servers. If you use a permission manager you might have to add add the permission "lift" and "lift.change" This is a bug in some managers
Here is the default configuration if you wish to play with the settings or language:
# Note: Smaller values result in less lag. Lift speed less than 0.4 may not work well for non spout servers. maxLiftArea: 16
maxHeight: 256
debug: true
autoPlace: false
preventEntry: false
preventLeave: true
checkFloor: false
liftMobs: true
floorBlocks:
- GLASS
- '*_STAINED_GLASS'
redstone: false
STRING_oneFloor: There is only one floor.
STRING_currentFloor: Current Floor
STRING_dest: §1Dest
STRING_cantEnter: Can't enter elevator in use
STRING_cantLeave: Can't leave elevator in use
baseBlockSpeeds:
IRON_BLOCK: 0.5
- maxLiftArea is the number of connected blocks the lift can be. Larger values will result in a longer start up time when using a lift. Super large values can even freeze your server for a moment.
- maxHeight limits how tall an elevator can be.
- debug prints out extra information that can help me track down errors
- autoPlace will automatically position entities over the center of the base blocks which can prevent them from hitting edges and getting stuck
- preventEntry blocks players from entering moving lift.
- preventLeave blocks players from leaving a moving lift.
- checkFloor prevents glass duping. With it false the plugin will NOT check to make sure all the floors have all the glass blocks filled it, but will have better performance for busy servers.
- redstone can start a lift by using a redstone signal to the block behind the lift button. This can result in some lag on servers with a lot of pulsing redstone signals.
- floorBlocks is a list of valid blocks for the flooring of floors. * is a wildcard. For example, '*_STAINED_GLASS' allows all blocks with '_STAINED_GLASS' as the block name.
- baseBlockSpeeds is a list of blocks you wish to use in the elevator base and how fast they make the lift. Multiple block types can be added. For example:
baseBlockSpeeds: IRON_BLOCK: 0.5 GOLD_BLOCK: 0.75 DIAMOND_BLOCK: 1.0
This example has three different blocks that can be used as a base, with faster lifts being more expensive. Make sure there are two spaces for proper yaml formatting!
Permission
There are two permission nodes. By default both are set to true allowing anyone to use lifts right away:
- "lift" allow players be passengers and use lifts. To not let players use the lift, set lift to false in your permission plugin of choice.
- "lift.change" allow players to change destination floors of any lift. To not allow players to change the floor signs, set lift.change to false in your permission plugin of choice.
I will not be adding permissions to individual lifts. It is not possible with how the code works.
Usage With Default Config
1) Create the bottom floor with iron blocks. An elevator can be as small as 1 block or as big as 15 blocks in any shape. Smaller areas will have less lag. Make sure the lift iron blocks don't touch any other iron in the building the plugin doesn't know the difference!
2) Next create the floor's control panel. On a wall place the following blocks. The signs and buttons must be "over" one of the iron base blocks.
- Required sign, leave blank or put the name of the floor on the first line.
- Button
- Air
- Iron floor block you just placed.
3) Create the elevator shaft. To create a new floor platform use glass blocks instead of iron. Like the first floor over one of the glass blocks create the floor interface.
- Required sign, leave blank or put the name of the floor on the first line.
- Button
- Air
- Glass floor
4) Make sure the shaft is clear of all obstructions except for floor glass, buttons and signs. Torches and vines are also allowed in the elevator shaft.
5) To use your elevator right click the sign above the button to select a destination floor. The sign will automatically add the correct information.
Important Notes
If you find a bug or a feature not working as advertised please report to the ticket page. Bug reports in the comments will (probably) be ignored.
There is a config to adjust max lift area, lift height, lift speed, and a few other options. The defaults are sane and most people wont need to change them.
FAQ
Q: Will you add build permissions?
A: No. Permissions are attached to players. An elevator is created by scanning a chunk for specific blocks in specific places. There is no easy way to stop a player from finishing an elevator without doing expensive, lag-causing calculations. To prevent a player from building an elevator you must prevent them from placing one of the elevator block types (iron block, sign, glass, or button). There are other plugins with this functionality.
Q: What are valid blocks to use inside the shaft?
A: Other than the glass blocks for the lift floors you play places torches, signs (ideal for sensors), buttons, vines, ladders, carpets, redstone, rails, and water.
Q: Will you add economy?
A: No. There are too many variations on how to do this and I want to keep the plugin focused and simple. There are other plugins you can use to add economy. One example is charging for button pressing:
Troubleshooting
For Lift versions < 50
You are getting errors with block X473 like:
1:34:32 [INFO] [Lift] [DEBUG] Starting elevator gen caused by: MXPLRS_Kirill v42 21:34:32 [INFO] ==Unknown Error== 21:34:32 [INFO] Yscan: 64 21:34:32 [INFO] Block: X473 21:34:32 [INFO] Is Valid Block: false 21:34:32 [INFO] Is Base Block: false 21:34:32 [INFO] [Lift] Player elevator generation returned a null object. Please report circumstances that generated this error.
The issue you are having is exceptionally likely to be due to Railcraft's tracking block (visible with the goggles as the tracking aura), you can disable it by setting block.hidden to 0 in Railcraft's config. The default ID of this block is 473.
-
View User Profile
-
Send Message
Posted Jul 19, 2013When someone gets banned while he/she is in the lift, the lift will stop working forever.
I got this bug on my spawn elevator and also some users got this bug in their...
Solution: "/lift clear" to clear all players marked as entities in the lift.
Using Bukkit RB 1.5.2 R1.0 and Lift 36
-
View User Profile
-
Send Message
Posted Jul 18, 2013hi croxis i have the BukkitForge-1.5.2-301.jar in coremods and the lift 36 plugins i make my lift i right click the signs no floor txt or destination comes up and lift dont work but i get no errors
-
View User Profile
-
Send Message
Posted Jul 18, 2013@XanvvdeR
RTFM
-
View User Profile
-
Send Message
Posted Jul 17, 2013Does it need to be iron and glass?
-
View User Profile
-
Send Message
Posted Jul 10, 2013@croxis
Fixed the problem, it seemed to be due to map corruption causing lag on the server.
However I do have one small bug to report, when preventEntry: true is set, players get "stuck" if they try to enter an elevator. It doesn't push them far enough back, and they get stuck on the edge of the elevatorshaft with "you cannot enter an elevator in use" spamming their chat.
This is especially bad when a user trys to enter an elevator in use from the top, as they get stuck in the air where the floor should be, then fall down to the next floor and take damage, once the elevator stops holding them in place.
Perhaps a configurable "pushback" option could be in order? (to define how far back the lift should try to push the user if they try to enter/exit when it's active)
-
View User Profile
-
Send Message
Posted Jul 10, 2013@nullschritt
Make sure lift and craftbukkit is up to date. I havent reproduced that behavior. Open a github ticket and give me as many details as possible (lift and craftbukkit version, the lift config.yml, and other plugins you are running)
-
View User Profile
-
Send Message
Posted Jul 9, 2013Hello, love this plugin, however just a couple weeks ago it started acting buggy, glitching about when moving players, now the player just sits at the bottom and bounces over and over, what could have caused this to start happening, and how could I fix it?
-
View User Profile
-
Send Message
Posted Jul 8, 2013@thazro Excellent. Glad it was a bukkit bug and not me!
@Patosai24 I can't seem to reproduce the error. Would it be possible for you to send me a zip/7z/rar of your world with the coordinates of the offending lifts?
And how the heck to you link usernames with this thing...
-
View User Profile
-
Send Message
Posted Jul 8, 2013@croxis
No errors, it createad the lift but nothing happend when i tried to use it, but i can confirm it now works with 1.6.2 with no problems.
-
View User Profile
-
Send Message
Posted Jul 7, 2013I'll take a harder look at it.
-
View User Profile
-
Send Message
Posted Jul 6, 2013Minecraft 1.6.1-R0.1 dev build #2807
There seems to be problems with creating new lifts and using lifts in existence. Sometimes the glass 3x3 tiles on floors don't disappear and you end up glitching as the lift tries to take you up but the glass stops you.
For creating lifts, even though all the floors are already set (with the 3x3 glass tiles and signs and everything), when right clicking signs to activate the lift, the plugin just skips some of the floors. ex. 8 floor building, the "4th floor" for the Lift is actually the 8th and top floor. Some floors are skipped or maybe just don't register, as the glass tiles don't disappear as they should.
This is the error that pops up repeatedly:
[INFO] [Lift] Elevator generation returned a null object. Please report circumstances that generated this error.
Thanks in advance for the plugin and support ;)
-
View User Profile
-
Send Message
Posted Jul 6, 2013Can you give me more information other than "It doesn't work"?
-
View User Profile
-
Send Message
Posted Jul 5, 2013It's not working at all for me on 1.6.1
-
View User Profile
-
Send Message
Posted Jul 5, 2013@thazro
Unlike forge, older bukkit plugins will usually work. Let me know if it actually throws errors.
-
View User Profile
-
Send Message
Posted Jul 4, 2013Update for 1.6.1. please...
-
View User Profile
-
Send Message
Posted Jun 28, 2013@TheFierCeBuLL
Please set debug to true in the config file, post the output to pastebin.com and put a link here.
-
View User Profile
-
Send Message
Posted Jun 27, 2013Why this mistake? 2013-06-27 23:13:26 [INFO] [Lift] Critical Error. Startfloor is null. Please set debug to true in config and report bug. 2013-06-27 23:13:26 [INFO] [Lift] Floormap: {65=net.croxis.plugins.lift.Floor@bf29d25, 69=net.croxis.plugins.lift.Floor@652aee43, 73=net.croxis.plugins.lift.Floor@6580a498, 77=net.croxis.plugins.lift.Floor@60b62b37} 2013-06-27 23:13:26 [INFO] [Lift] Floormap2: {1=net.croxis.plugins.lift.Floor@bf29d25, 2=net.croxis.plugins.lift.Floor@652aee43, 3=net.croxis.plugins.lift.Floor@6580a498, 4=net.croxis.plugins.lift.Floor@60b62b37} 2013-06-27 23:13:26 [SEVERE] Could not pass event BlockRedstoneEvent to Lift v36 org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:427) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) at org.bukkit.plugin.TimedRegisteredListener.callEvent(TimedRegisteredListener.java:30) at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:478) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:463) at net.minecraft.server.v1_5_R3.BlockButtonAbstract.interact(BlockButtonAbstract.java:153) at net.minecraft.server.v1_5_R3.PlayerInteractManager.interact(PlayerInteractManager.java:380) at net.minecraft.server.v1_5_R3.PlayerConnection.a(PlayerConnection.java:637) at net.minecraft.server.v1_5_R3.Packet15Place.handle(SourceFile:58) at org.spigotmc.netty.NettyNetworkManager.b(NettyNetworkManager.java:215) at net.minecraft.server.v1_5_R3.PlayerConnection.d(PlayerConnection.java:115) at net.minecraft.server.v1_5_R3.ServerConnection.b(SourceFile:35) at org.spigotmc.MultiplexingServerConnection.b(MultiplexingServerConnection.java:61) at net.minecraft.server.v1_5_R3.MinecraftServer.r(MinecraftServer.java:583) at net.minecraft.server.v1_5_R3.DedicatedServer.r(DedicatedServer.java:233) at net.minecraft.server.v1_5_R3.MinecraftServer.q(MinecraftServer.java:472) at net.minecraft.server.v1_5_R3.MinecraftServer.run(MinecraftServer.java:404) at net.minecraft.server.v1_5_R3.ThreadServerApplication.run(SourceFile:573) Caused by: java.lang.NullPointerException
-
View User Profile
-
Send Message
Posted Jun 23, 2013@whousthat
I believe your need to use mcpc+, not bukkitforge
-
View User Profile
-
Send Message
Posted Jun 22, 2013Lift is one of my favorite plugins for Bukkit. I never run a server without it!
I just switched from Tekkit lite to the new Tekkit and horror of horrors, Lift won't work!
I'm running the latest BukkitForge. I get no errors, but the signs don't get the magic text that allow me to pick my floor. So I can't go up or down. I've tried creating the elevator as an op and still no go :(
Please help me get my fav lift working! :)
-
View User Profile
-
Send Message
Posted Jun 20, 2013@croxis
Yes I do have towny, but never got around to setting it up yet, I had no idea it could be affecting other plugins in that way, I'll have a look at my towny config, and report back, thanks for the help!