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 Sep 17, 2012@croxis
I have tried "lift" but it doesn't work, but someone on my server said to test "lift.*" and suddenly it work O_o
-
View User Profile
-
Send Message
Posted Sep 17, 2012Todd, update to lift 24 to fix that issue.
TNT, there is a permission node "lift" but the default is set to be on for everyone. I don't use PEX but I'm not doing anything fancy with permissions. Try and add the permission "lift" just to be safe.
-
View User Profile
-
Send Message
Posted Sep 16, 20122012-09-16 17:31:22 [WARNING] [Lift] Task #13 for Lift v22 generated an exception java.util.ConcurrentModificationException at java.util.HashMap$HashIterator.nextEntry(Unknown Source) at java.util.HashMap$KeyIterator.next(Unknown Source) at net.croxis.plugins.lift.ElevatorManager.run(ElevatorManager.java:209) at org.bukkit.craftbukkit.scheduler.CraftTask.run(CraftTask.java:52) at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:321) at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:509) at net.minecraft.server.DedicatedServer.q(DedicatedServer.java:213) at net.minecraft.server.MinecraftServer.p(MinecraftServer.java:473) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:405) at net.minecraft.server.ThreadServerApplication.run(SourceFile:539)
-
View User Profile
-
Send Message
Posted Sep 16, 2012@Yndi74
My players can't still use the elevator, multipassengers with players doesn't work, IT only work on me because I'm op and how I can get the elevators working for everyone? sigh, again, Imma switch back to bLift. I'll keep an eye on this plugin when the issues are fixed. Thanks.
-
View User Profile
-
Send Message
Posted Sep 15, 2012Bug,bug,bug :S update please
-
View User Profile
-
Send Message
Posted Sep 15, 2012@TNTUP
i dont need any permission. I put the lift.jar in plugins and i build 1 lift and all it's ok
-
View User Profile
-
Send Message
Posted Sep 15, 2012@Yndi74
Thats not an issue, my players can't use the button. Whats the damn permission or what? Its not LWC fault, they're public and they still cant use! >.<
-
View User Profile
-
Send Message
Posted Sep 15, 2012@TNTUP
If you use the LWC for protect signs etc, remove protection or make public protected signs for lift
-
View User Profile
-
Send Message
Posted Sep 14, 2012Okay, though the diamond thing I'Ve build was for testing, I redid a test in the ground and it works. no glass thing appeared. but there's a thing it doesn't work, the multipassengers doesn't work ( xD the creepers used the elevator when I pressed on the button) my players can't use it. Does it needs a permission or what?
I can't use lift: true because PEX doesn't work with it. Can you add PEX support like Lift.lift?
-
View User Profile
-
Send Message
Posted Sep 14, 2012@croxis
Thy
-
View User Profile
-
Send Message
Posted Sep 14, 2012TNT, the only thing I can think of is that there is additional iron under the wall. But I have no way to know for sure unless I have a .schematic file of your lift or check out your lift on your server
Yndi, it will be in the next version
-
View User Profile
-
Send Message
Posted Sep 13, 2012@croxis
erm, why giving my config.yml if I just got the plugin? I didn't make anything in the config. Can you tell why theres glass on the wall?
-
View User Profile
-
Send Message
Posted Sep 13, 2012I hawe a I have a problem with the flying.
The player on the top floor (13) enters the elevator, takes the road onto the ground floor and step out elevator after a couple of floors.
Goes over to an other elevator then and goes down throughout with it. After he went down onto the ground floor, he can fly.
It would be possible to put it into the config a limitation than :
preventEntry: true/false (already is)
preventLeave: true/false
P.S. : The fly mode is switched on when this happens, as if he use the /fly command. And can reproduce this bug with /warp or other teleport commands, what takes it near to the other elevator
-
View User Profile
-
Send Message
Posted Sep 13, 2012Can you post your config.yml TNTUP
And the reason why signs are required is because if I had a no sign option, people will complain when their signless, multifloor elevators don't work. It is almost always better to have one single UI instead of multiple.
-
View User Profile
-
Send Message
Posted Sep 12, 2012@croxis
It would be nice if its possible to fix it, I'm the only one I can use the elevator and idk why it does this, it breaks the wall. idk if its a permission issue, my players can't use it.
And I have a question, for a two-floor building, why I need to put signs to work? With bLift its not needed to place a sign, just a button.
-
View User Profile
-
Send Message
Posted Sep 12, 2012It works just fine for me on 1.3.2. I'll see if I can't corner someone to test multipassengers
-
View User Profile
-
Send Message
Posted Sep 11, 2012Don't work for me on 1.3.2
-
View User Profile
-
Send Message
Posted Sep 11, 2012Hi, just saying the multi passenger doesn't work and how the hell it does this?
Using bukkit dev one. You see when I press on the button, the glass blocks appears (right side)
My players can't use the elevator, thats why. I can't get the permissions to work, I use PEX. gotta switch back to bLift, though this plugin doesn't support multi passengers.
-
View User Profile
-
Send Message
Posted Sep 10, 2012I have VariableTriggers and I'd like to setup a trigger for clicking on regular signs to msg text to the player but when I click it I get an error, I believe from Lift, saying:
"there was an error in the code please report bug, conditions, and debug log if possible"
I'm assuming I get this error because the sign is not part of a lift configuration as it is just a regular sign. Is there anyway around this?
-
View User Profile
-
Send Message
Posted Sep 10, 2012@Manuestaire
I'll give you somo more details, right clicking a sign with a block in your hand, works only if the sign has not a block infront, this is if the block could be placed before the event is cancelled. Regards