V10lift
Overview
As many users cry for an update of the elevators plugin but it's copyrighted and the author isn't reachable I decided to write a new elevator plugin from scratch.
How to
First build your lift cabin. If you want to have a floor choosing sign in the cabin (see videos) put a sign with [V10lift] on the first line somewhere in your cabin. Then use the command /v10lift create - It will tell you to rightclick all the blocks of your cabin, so do that.
After that use the command v10lift create my new lift where my new lift will be the name of your lift.
Now you can start adding floors. To do that use v10lift floor add my new floor while you're standing at the height of the new floor. If you want to have different floors at different worlds you need to have V10verlap (min. v0.6), too.
If not already done build the hoistway now. Then define blocks as input blocks. Input blocks are blocks which will call your lift to a specific floor when they receive redstone input. If you want to use a button to call the lift use the block behind the button as input block! If you stand at the floor you want the elevator to move to simply use v10lift input add else use v10lift input add floor name.
When you finished all floors and inputs for your lift use v10lift edit to disable the editor. You can re-enable it at any time with v10lift edit lift name.
Output signs
It is possible to show what you'r lift is doing by placing a sign with [V10lift] on the first line and your lift name on the second. If you want to have a sign which only shows if the lift is at a specific floor put your floor name on the third, too.
Offline inputs
Since v0.4.10 you can create offline inputs. Do that the same way you would create a normal input, expect that you don't have to pass a floor name. While a offline input is powered you lift is in offline mode, which means it is unusable.
Commands
V10lift create
To create a new lift (see how to).
V10lift delete
To delete a elevator.
V10lift abort
To abort your current action.
V10lift whois
To see name of a lift.
V10lift edit
To edit lift floors and input blocks.
V10lift floor add
To add a new floor.
V10lift floor del
To remove a floor.
V10lift floor rename
To rename a floor.
V10lift input add
To add a new input block.
V10lift input del
To remove a input block.
V10lift build
To edit the blocks of an already existing lift.
V10lift rope add
To add a new rope.
V10lift rope del
To remove a rope.
V10lift door
To edit door blocks.
V10lift speed
To set the lift speed.
V10lift realistic
To toggle realistic mode.
V10lift repair
To repair a lift.
V10lift whitelist
To add or remove players to/from the the whitelist of a floor. If the whitelist is empty it is disabled.
V10lift reset
To clear all queues and reload the config file. Use this whenever you have a problem, it can even fix some null pointer exceptions!
V10lift help
To get some help.
Update V10lift
To update this plugin. Have a look here for more information.
Permissions
v10lift.build
To be able to build new lifts. Defaults to all.
v10lift.repair
To repair a lift with a right click at the defective sign. Defaults to op.
v10lift.repair.master
To repair a lift with /v10lift repair lift name Defaults to op.
v10lift.admin
To be able to edit/delete every lift and move to whitelisted floors without beeing on the whitelist. Defaults to op.
autoupdate.announce
Users with this node will be notified about new updates. Defaults to op.
autoupdate.update.v10lift
Users with this node will be able to use /update this plugin. Defaults to op.
for more information about the autoupdate nodes have a look here.
Defective lifts
Since v0.2.3 you can configure your lifts to get defective. To do that set the DefectRate higher than 0. The rate is the chance of the lift to get defective at every move, that means if you set it to 100 your lift won't move anymore cause it gets defective instantly.
How to repair
If you use output signs one of this signs will show something abnormal whenever the lift is defective. To repair it a user with the permissions node lift.repair has to right click on that sign either in creative mode or with 5 pieces of redstone in his hand. The amount and the item is configurable, too.
If you don't use output signs or want your repairers to be able to repair the lifts by command they have to have the permissions node v10lift.repair.master - Also they have to have 10 diamonds in their inventory. The amount and the item is configurable, too. See /v10lift repair for more information.
Realistic mode
Since v0.3 you can toggle the realistic mode for every lift. If the mode is enabled the lift will wait a short time before closing the doors at a floor. Also it doesn't close the door as long as an entity is at the door way.
Since v0.4.13 The door closes automatically after some seconds if in realistic mode. The amount of seconds is configurable (DoorCloseTime).
For devs
There's an API. You can get it with getAPI() at the plugins instance. For more information have a look at the JavaDocs or at the sources, which are included in the jar file.
@V10lator
The plugin is in the plugins folder, but no loading/enabling message a stacktrace showing what's wrong.
@Mark897
02:55:57 [INFORMATION] Starting minecraft server version 1.3.1
-snip-
02:55:58 [INFORMATION] [V10lift] Loading V10lift v0.4.11
-snip-
02:55:59 [INFORMATION] [V10lift] Enabling V10lift v0.4.11
02:55:59 [INFORMATION] [V10lift] [AutoUpdate] v1.0 enabled!
02:56:00 [INFORMATION] v0.4.11 enabled!
Are you sure the jar is in your plugins folder? There must be either a loading / enabling message or a stacktrace showing what's wrong...
@V10lator
Well, basically it is just not loading on my server. I am using Craftbukkit 1.3.1 R 2.0 , before it used to even just load the plugin but without the data files, as if I have no lifts, making me start again. It hasn't done that for quite some time. Oh, and when I say it is not lading, I mean it doesn't even show that it is trying to load on the command prompt.
@Mark897 If you tell me what's broken I'll update...
@V10lator
The plugin...to 1.3.1 R2.0 or higher, if new build of bukkit is out soon.
@Mark897 What needs to be updated?
Are you going to update?
@V10lator
Not sure if it's the same issue you posted a link to, but here is the error from the server.log http://pastebin.com/CWYtPvcG
@V10lator
Just wanted to add to what MajorCyto was saying. I'm having the same issue when creating lifts. Well only some lifts. It seems to be linked to the Output Signs only. I can create a lift with just input buttons, or even with the lift sign inside the cabin with no problems. But once I place an Output Sign and then exit the editor, it throws errors in the console and locks up. Ended up having to restart the server. If you don't think to save everything just before exiting editor mode, you end up having to rebuild some stuff because of the roll back. After that it seems to work fine though without any problems. Even if I go back into the editor and change some things, it works fine. Although I haven't tried changing the output signs.
Unfortunately I didn't think to grab the error when it happened, and just restarted the server. But I think I saw PlayerTileEntity or something along those lines in the console error. If it happens again I'll try to grab the exact error and post it.
@MajorCyto The error is not from V10lift. But anyway, this sounds like a loop takes way to much time to finish. Is it really that random or is there some specific action causing this (like one of v10lifts commands or actions) ?
I don't think it has anything to do with PEX and/or HeroChat.
A really hard way would be to use a Java profiler at the server. But profiling take performance, so you shouldn't do it on a produtive server. But then you could have a look what method (should be only one, as minecraft is (mostly) single threaded) uses the CPU while the server is frozen.
Well it worked-ish. It started going up, then halfway up through the process it stopped, then timed out the server, and i couldnt log back in. It didnt produce any errors in console, it just froze console to.
Making everything unsuable until a forced restart, which caused a small roll back.
Edit - Actually i just let it sit there, and it un-froze itself and the server after about 5 minutes. It caused other plugins to start erroring though.
The only thing that didnt belong to anything specific was this error message, but im not sure that its related to the Lift
"[Fatal Error] temp.xml:78:63: The entity name must immediately follow the '&' in the entity reference."
Like i said not sure if that particular error is related to whatever v10lift did to the server, but i dont see anything else.
Edit 2 - After it froze the first time, it started working after that. It seemed like in the past when i tried this plugin it did this then to, its like the first time you make the lift and use it.. it has a chance to freeze and time out the entire server. I think i remember users trying a lift i just created, server timed out, then it would work for a long while. Then randomly cause time outs again.
Except back then it would never unstuck, and we would have roll backs. But still, just because it unstuck's it's self after 5 minutes is not a solution. Know anything about this, or what we can do? I really would like to use this!
Edit 3 - Could it have something to do with colored prefix permissions plugin that is tripping it up? I use PEX and have colored prefix's on users, also use HeroChat but the actual username text isn't colored. (Well, after the prefix i use &f to keep it white so i guess in a "way" it is colored) Surely not though, but then again weird things have happened.
@MajorCyto I hope so. But you could just take a minute and try it... ;)
Does this still work o3o
@V10lator
If it is possible, can you fix bug what I reported?
And can you add my Request?: \/
To Realistic Mode: Can you edit: When I click sign (in elevator, left mouse) elevator wait 3 second to close door... When elevator doors are closed, the elevator wait next 1 sec and go up/down? (moooooore realistic)?
Thanks :D
Have a nice day :)
@Mynemosyne 1. You can't without recompiling the plugin. If you have done such things before: The sources are included in the jar file. 2. No (well, you could again change the codes and recompile...).
first: very great work! :)
but 2 questions: 1. how i can change the text-colors in the sign text...? 2. ...and is it possible to hide the first & the second line?
@AviciiPL Sorry, wikicreole formatted my example -.-
You have 3 input blocks, right? Are they directly connected, like this:
.#.#.#
or is there one block in between, like this:
.#_.#_.#
? If you still don't understand send me your server IP by PM and I'll have a look. :)