[INACTIVE][MISC/FUN] Chairs v1.4 - Use stairs as seats and sit down on them [1.2.5-R1.0]

Discussion in 'Inactive/Unsupported Plugins' started by spoothie, Mar 21, 2012.

Thread Status:
Not open for further replies.
  1. Offline


    Chairs - Sit down on stairs
    Version: v1.4

    The plugin is outdated and has been rewritten as 'Comfort'.
    I will not mantain this plugin anymore.
    Comfort on the Bukkit Forums
    Comfort on BukkitDev

    The Chairs plugin makes it possible to use stair-blocks as seats so that you are able to sit down on them. It is similar to the ChairCraft plugin. This one works properly, though.

    Note: It appears that you will see yourself as sitting a bit higher than you are supposed to, other players will see you sitting normal, though (screenshot).

    Download Latest Version
    Source Code

    How To:
    To sit down on a chair, you simply have to rightclick on the stairs-block.
    • If you have the "sneaking"-option in the config.yml enabled, you have to sneak while rightclicking.
    • If you have set the "distance"-option to a value higher than 0, you have to be close enough to the chair to be able to sit down.
    • If you have the "sign-check"-option enabled, there have to be signs at the end of the chair/row of chairs to be able to sit down.
    • If you have set the "max-chair-width"-option to a value higher than 0, the chair/row of chairs must not be longer than this value.
    To stand up from a chair, you have to rightclick on it. You can also destroy the chair to stand up.
    The config.yml contains an explanation to all the options you can set, please read it before asking questions.

    Note: The "item"-option in the config.yml if the type of item you are sitting on. Players can only "sit" on entities (like minecarts or mobs. Item drops are entities, too). This plugin uses item drops on which the player sits down. You can configure the type of item drop, because it is possible that you will sometimes see it floating through the player's body. A lever is quite small, that's why it is the default value

    Commands & Permissions:
    • /chairs reload - Reload the Chairs configuration file.
    • Sit down on chairs.

    Show Spoiler
    # Configuration of the Chairs plugin for Craftbukkit
    # ------
    # A list of all compatible block and item names: http://bit.ly/AmJgMb.
    # ------
    # allowed-blocks: Set the blocks you want to be able to sit down on. Currently, only stairs-blocks are working.
    # item: Set the item you want to sit on.
    # auto-rotate: If set to true, you are automatically rotated to the descending face of the stairs-block when sitting down.
    # sneaking: If set to true, you have to sneak to sit down on a chair.
    # max-chair-width: Define how many blocks a chair can be long (set to number <= 0 for unlimited width).
    # sign-check: If set to true, you will only be able to sit down when there are signs on both of the ends of the chair.
    # distance: The maximum distance between the chair (the center of the block) and the player to be able to sit down (to prevent glitching through walls, etc.).
    # sitting-height: Set how high you are sitting 'in' the stairs block (default is 0.7).
    # ------
        - WOOD_STAIRS
        - BRICK_STAIRS
    item: LEVER
    auto-rotate: true
    sneaking: true
    max-chair-width: 3
    sign-check: false
    distance: 1
    sitting-height: 0.7

    Version 1.4 - Download
    • Code cleanup
    • Made chair-item configurable
    • Added configurable maximum distance between chair and player to be able to sit down
    Version 1.3 - Download
    • Fixed item drops not being removed when leaving the server while sitting on a chair.
    Version 1.2 - Download
    • Fixed chairs dropping lever and pumpkin stem drops when braking them.
    • Check for solid blocks beneath chairs before sitting down (otherwise you would fall though the chair).
    Version 1.1 - Download
    • Fixed players stuck in a chair after breaking it.
    • Fixed reload command not working through the server console.
    Version 1.0 - Download
    • Initial release
  2. Offline


    Lol nice this is better then them sitting under the chair. Great Job!
  3. Offline


    Nice very nice plugin ! :)
    but wich texture pack was that on the screenshot ??!
  4. Offline


    Very nice plugin, you deserve a [iron]
  5. Offline


    It is GoodMorningCraft. One of the very neat ones, if you ask me. ;)
    efstajas and Lilerem94 like this.
  6. Offline


    okey because. it looks very nice... thx you so much..! :)
    Spongebob1212 likes this.
  7. Offline


    There is a bug.If you brake the chair but you are on it you can't get out of ...
  8. Offline


    Im getting an error running bukkit 1.2.3-R0.2 when i will use a command per console:
    07:19:52 [WARNING] Unexpected exception while parsing console command
    org.bukkit.command.CommandException: Unhandled exception executing command 'chairs' in plugin Chairs v1.0
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:42)
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:166)
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:469)
    at org.bukkit.craftbukkit.CraftServer.dispatchServerCommand(CraftServer.java:465)
    at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:599)
    at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:568)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:452)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:490)
    Caused by: java.lang.ClassCastException: org.bukkit.craftbukkit.command.ColouredConsoleSender cannot be cast to org.bukkit.entity.Player
    at net.spoothie.chairs.Chairs.onCommand(Chairs.java:78)
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40)
    ... 7 more
  9. Offline


    Fixed both in the latest version. You can find the download link in the op. I also uploaded the source on Github, the link to the repo is in the op, too.
  10. Offline


    I logged out while in the chair, logged in, broke the chair, then I saw this... O_O
    (Pumpkin Stem and Lever)
  11. Offline


    how about craftbukkituptodate support??
    Please make a bukkit dev account.
    You'll get a [diamond] for your nice work.

    So users can farm levers and melon stems ;-)
    On my server this is too but its only dropping melon stems ;-)

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


    Hi, first off want to say that I love this mod it works great on my Bukkit server. Though I wanted to ask you if it would be possible to also make a version that works with the "1.1-R4/1.1-R5" version of Bukkit as well, my Tekkit based server users are dying for a proper working seat plugin, but I can completely understand if you don't want too, or if it isn't possible with the previous server versions.

  13. Offline


    Should be fixed now.
    Allright, here it is: http://dev.bukkit.org/server-mods/chairs/ :)
    I will update and look into this thread more frequently, though.

    I tried it out on a 1.1-R5 server and it worked for me.

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


    I have tried it and ended up with this multiple times, I pasted below the snippet of code it throws out anytime a player try to sit down.

    [SEVERE] Could not pass event org.bukkit.event.player.PlayerInteractEvent to Chairs
        at org.bukkit.plugin.java.JavaPluginLoader$103.execute(JavaPluginLoader.java:1026)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:61)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:460)
        at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:187)
        at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.java:310)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:616)
        at net.minecraft.server.Packet15Place.handle(SourceFile:39)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:231)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:101)
        at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78)
        at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:543)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:441)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:465)
    Caused by: java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        at org.bukkit.plugin.java.JavaPluginLoader$103.execute(JavaPluginLoader.java:1024)
        ... 12 more
  15. Offline


    Which Craftbukkit build did you use? I used build #1985 and it seemed to work.
  16. Offline


    [INFO] This server is running CraftBukkit version git-Bukkit-1.1-R4-b19
    38jnks (MC: 1.1) (Implementing API version 1.1-R4)

    Is what I am currently running on my second server.
  17. Offline


    Could you try it with the build I used to test it (it is 1.1-R5, if that doesn't matter)?
  18. Offline


    yeh just tested, loggin out while sitting on chair, come back looks like I took a floating dump on the chair (stem)

    funny.. at least it can't be picked up.. can u make it go away pls.
  19. Offline


    That doesn't happen to me and should be fixed in version 1.2, which version of the plugin and Craftbukkit do you use?
  20. Offline


  21. Offline


  22. Offline


    It's the perfect plugin for stairs, i always "sit" on stairs.

    P.S: Update the DevBukkit ;)

  23. Offline


    I already have, we just have to wait until the new file gets approved. ;)
  24. Offline


    Can i change the user/op thing. Currently only ops can sit. How do i change it to all the users.
  25. Offline


    Give them the permission 'chairs.sit'.
  26. Offline


    Using this on my server :D Its awesome.

    When you tp to somebody who is far away while sat down. You end up just falling in a black hole :eek:
  27. Offline


    This doesn't happen to me. Do you use the latest version of the plugin? Do you use any plugin for teleporting?

    I uploaded a new version. You can find the changelog in the op.
  28. Offline


    Is this working in 1.2.5? I tried, Bukkit loaded it but it didn't work :/
  29. Offline


    Killcam26 it working fine on our 1.2.5 server.

    Nice plugin :)
  30. Offline


    It is working for me on 1.2.5, too. Which CB build do you use? Are there any errors in the server log? What exactly doesn't work? The whole plugin?
Thread Status:
Not open for further replies.

Share This Page