Inactive [MECH] SignLift v1.22 - Elevators with signs [1.2.5 R1.0] (Permissions)

Discussion in 'Inactive/Unsupported Plugins' started by freman, Jan 30, 2011.

  1. Offline

    freman

    SignLift - Elevators with signs:
    Version: v1.22

    Based on CraftBook's elevator system, SignLift works very much the same way - with two small improvements:
    1. Before transporting you it checks to make sure that you won't warp into a wall
    2. Prevents accidental block placement on transport
    Create signs on top of each other with [Lift up]/[Lift down]/[Lift] on the second line to use.

    Create signs on top of each other with {Lift up}/{Lift down}/{Lift} on the second line to create a private lift

    Example:
    Create a sign on ground level with the second line set to [Lift Down]
    Dig down under that sign (place a block in the top of the hole)
    Create a sign with the second line set to [Lift Up]

    Right click the sign to use



    Features:
    • Customizable strings
    • Safety checks to prevent into wall "lifting"
    • Brick placement prevention
    • First line can be the floor name
    • Hide signs on the back of blocks and use buttons!
    • Private lifts
    • Permissions
    Download SignLift


    Configuration (config.yml)
    Show Spoiler

    Code:
    string:
        lift: LIFT
            - String users will use when placing lifts that go neither up nore down
     
        down:
            lift: LIFT DOWN
            - String users will use when placing lifts that go down
     
            default: Going Down
            - What is messaged to the user when going down
     
            format: Going to %s
            - Message format for going down to a named floor (%s gets replaced with name)
     
        normal:
            open: '['
            - Open for normal lifts
            close: ']'
            - Close for normal lifts
        private:
            open: '{'
            - Open for private lifts
            close: '}'
            - Close for private lifts
        up:
            lift: LIFT UP
            - String users will use when placing lifts that go up
     
            default: Going Up
            - What is messaged to the user when going up
     
            format: Going to %s
            - Message format for going up to a named floor (%s gets replaced with name)
     
        message:
            destroy:
                denied: You don't have permission to destroy that sign lift
                - Message to display when someone attempts to destroy a lift they don't have permission to
            lift:
                denied: You don't have permission to use this lift
                - Message to display when someone attempts to use a lift they don't have permission to
            create:
                denied: You don't have permission to create that sign lift
                - Message to display when someone attempts to create a lift they don't have permission to
     
    check:
        destination:
            paranoid: true
            - true: Uses original algorithm, gaurenteed not transport you into a block
            - false: Uses new one, may end up being partially in a block (never wholely)
    


    Permissions (PermissionsBukkit)
    Show Spoiler

    Code:
    signlift.*:
    - Gives access to all SignLift privileges
    signlift.create.*:
    - Gives access to all SignLift create privileges
    signlift.create.normal:
    - Permits the creation of a normal sign lifts for anyone to use
    signlift.create.private.own:
    - Permits the creation of private sign lifts with the PRIVATE tag
    signlift.create.private.others:
    - Permits the creation of private sign lifts for other users
    signlift.use.normal:
    - Permits the use of any normal sign lift
    signlift.use.private.own:
    - Permits the use of any private sign lift made for this user
    signlift.use.private.others:
    - Permits the use of other users private lifts
    
    If no permissions manager is installed then the default's are that every player can do everything with exception to signlift.use.private.others which only ops can use.


    Changelog:
    Version 1.22
    • Changed the whitespace checks
    • Fixed the parameters error.
    Version 1.21
    • Added more whitespace checks to pervent crashing on empty signs
    Show Spoiler


    Version 1.2
    • Updated for 1.2.3 R0.2
    • Added a whitespace check to pervent crashing on empty signs
    Version 1.1
    • Fixed block placing bug introduced in 1.0
    Version 1.0
    • Private signs are now done by encapsulating the "LIFT UP", "LIFT DOWN" and "LIFT" in {} instead of []
    • Saves owner to disk
    • Delete your configuration file
    Version 0.9
    • Permissions
    • Basic block protection
    • Might be a good idea to delete your config, it won't break but you'll have old unused values
    Version 0.8
    • Introduction of private lifts
    • Updated deprecated code
    Version 0.7
    • Updated build for latest bukkit - Will not work on older builds.
    • Re-factored the entire codebase, buttons will now respond to left clicks as well as right clicks.
    Version 0.6

    • Updated build for latest bukkit - might work on older builds but not too old...
    • Changed the sign seek code on the button will only look for wall signs on the opposite side of the block directly behind the button.
    Version 0.5

    • Made it so you can hide signs on the back of blocks and use buttons
    Version 0.4

    • Add configuration file
    • Make strings used customizable
    • Make it possible to switch to a less paranoid block detection algorithm
    • Cleaned up accidental block place prevention code.
    Version 0.3

    • Added ladders to the list of safe things
    • Fixed rounding issues
    Version 0.2

    • Bug fixes...
    Version 0.1

    • Releasing my awesome plugin




    Support:
    Alcohol makes coding in Java more fun, Caffeine makes it possible to do after a day of coding in other languages at work - both of these habits are expensive - Want to help me feed my addictions and make more, better plugins faster? Consider hitting the button below.
    [​IMG]
     
  2. Offline

    freman

    SignLift has no support whatsoever for permissions. It has no permissions nodes. It doesn't even contain the string "permission"
     
  3. Offline

    Soryo

    Can't wait for this to be updated :D
    but take your time.. you're the one doing us a favor by providing this mod!
     
  4. Offline

    Xordaii

    Keeping an eye on your thread. Just started a server this week, and wow, this could be useful. Thanks for the work! Was happy to see how simple it looked. Great job! Especially like the button idea.

    Take your time updating it. Better job that way, and I can SO understand needing time to do the things you want to do (vs the things you NEED to do.)
     
  5. Offline

    Nautules

    This goes on my watchlist =) our brand new server could use this one!

    It looks very nice.
     
  6. Offline

    Bjourk

    Love the plugin. Good luck with the update; I'll be waiting!
     
  7. Offline

    AmounRah

    I downloaded this. Like this a lot because I can use it for my "office buildings" for floor by floor stops rather than typing commands. THE ONLY thing I noticed is that while you right click while holding a sign, cause the game to (sometimes, not all the time) go into the menu where you type what you want for a sign, and when you click done without typing anything it exits and does not place a sign anywhere. Not sure if it was just my close location to other signs or not but I thought I would report it just in case.
     
  8. Offline

    DMX

    Can you make for the 1.5 version ?
     
  9. Offline

    stewie1million

    16 days later......
     
  10. Offline

    Plague

    CB 670 - inactive
     
  11. Offline

    Bjourk

    Oh noes!
     
  12. Offline

    MrConfig

    I can confirm that SignLift 0.7 is working with latest CB 766. If like me you were gettting a permission denied (You don't have permission to create a Elevator Sign) you most likely have Permission and MinecartMania installed. For some reasons, MinecartMania conflicts with SignLift so just add permission node 'minecartmania.signs.*' and SignLift will work again!
     
  13. Offline

    freman

    Does minecartmania use the word "lift" perhaps?
    I've updated the subject thread subject to reflect that the plugin has been tested with the latest RB and works now how do I get it out of inactive...
     
  14. Offline

    MrConfig

    I haven't found anything in the Minecartmania Wiki that relates to [lift] but it does have a Elevator sign that uses the word Elevator as trigger but not lift (maybe lift is an alias for elevator and it's not documented?).
     
  15. Offline

    freman

    Don't suppose you can tell me how you achieve that?
     
  16. Hmm just got them spammed right now. I can't reproduce them, as they are being caused by natural use by players, I can only try and ask "who's messing with lifts" when I see the errors, but that just doesn't work well :p

    I was making a [command] sign, and the errors started spamming, so that's likely the issue, your plugin is triggering on any sign with [text], or so...

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 7, 2016
  17. Offline

    freman

    okey, I'll have a look - it gives me somewhere to look :D
     
  18. Offline

    freman

    ok.... I have no idea how you're beaking it.

    The exception it's throwing is from line 42 of SignLiftPlayerListener. There's no-way it should even get to line 42 if there's a null block.

    Line 42
    Code:
    block = block.getFace((new Button(block.getType(), block.getData())).getAttachedFace(), 2);
    So what this code does is gets the face that of the block that a button is attached to, then gets the block on the opposite side of that block from the button.

    Has nothing to do with what's on a sign, before even reaching line 42 there are 2 if statements that should bawk that check to make sure a block is attached to the event and that the block is a stone button

    Try this version Joy

    http://dl.dropbox.com/u/46756/Bukkit/SignLift/SignLift.0.7.a.jar - I added a check to see if getAttachedFace returns null

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 7, 2016
  19. Offline

    MikeA

    I'm still waiting for permissions to be implemented xD You should try to do that. It would be very helpful.
     
  20. Offline

    freman

    Probably not happening
     
  21. Offline

    MikeA

    But why though :l? It shouldn't be too hard to do if you already have knowledge of coding plugins :l.
     
  22. Offline

    Cheeqow

    it's worked. Thank u
     
  23. Offline

    EpicATrain

    Please update to 818. Thank you.
     
  24. Offline

    freman

    Did you even stop to try it yourself to see if it worked?

    (for the record, it works fine)
     
  25. Offline

    MrConfig

    Working fine with 953.
     
  26. Offline

    Trollkemada

    Fine with 953 :D
     
  27. Offline

    freman

    I give to you an update that introduces private lifts.
    There's no protection for the lift or the block it's on just yet (hey, it's bed time) but it should work nicely
    The private lift feature is NOT enabled by default.
     
  28. Offline

    Wannab

    I know ive seen this asked b4, but i havent seen a response to the question.

    Why arent you adding permissions nodes?
    I would like to be able to restrict access of making lift signs to my mods only.
     
  29. Offline

    freman

    Bukkit has no built in permissions, and when there's a major update that breaks the xN permissions plugins that breaks the plugins that rely on them - so I don't do permissions (yet)

    Besides, signlifts add no load to the server unless actually used - worst thing you have to worry about is a few extra signs getting thrown up

    Plugin updated to 0.9 - Now has support for permissions (I told you I'd support permissions when bukkit did)

    Uses PermissionsBukkit

    Example PermissionsBukkit/config.yml
    Code:
    users:
       Fremnet:
            permissions:
                permissions.example: true
            groups:
            - admin
    groups:
        default:
            permissions:
                permissions.build: false
                signlift.*: false
        admin:
            permissions:
                permissions.*: true
                signlift.*: true
            inheritance:
            - user
        user:
            permissions:
                permissions.build: true
                signlift.create.normal: true
                signlift.create.private.own: false
                signlift.use.normal: true
                signlift.use.private.own: true
            worlds:
                creative:
                    coolplugin.item: true
            inheritance:
            - default
    messages:
        build: '&cYou do not have permission to build here.'
    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 7, 2016
  30. is this plugin backwards compatible ? To 953? Im using a modded craftbukkit file with krnlyng's modloadermp mod, to be able to use industrial craft and WW2 guns in my server, but when i've placed a sign, it dosnt seem to care less what im doing..
    I can smack the button as hard as i want to with right click, not a darn thing happens.. The button pushes in, and zilch....
     

Share This Page