[ECON] Inn V0.3 - Make Inns in your server [1000]

Discussion in 'Inactive/Unsupported Plugins' started by greatman, Aug 2, 2011.

  1. Offline

    greatman

    Inn - Make Inns in your server!:
    Version: v0.3

    The Inn plugin allow you to create Hotels/Inn with a door. After you set the price on a door, each time someone will open that door, it will cost money.

    Requirement:
    • Permission 2.X/3.X
    • iConomy 4/5 or BOSEconomy 6/7 or MultiCurrency 0.09
    Download here!

    Source Code

    You can always download the latest devloppement version here but beware, they might be really buggy!

    Commands (open)

    /inn select - Activate select mode. Allow you to select a door for /inn create
    /inn create <Price> - Create a door with the selection done with /inn select
    /inn delete (Player) - Delete a door that you will select or every door of a certain Player (Optional)

    How to create a Inn door? (open)

    - Place the door
    - /inn select
    - Slap the door
    - /inn create <Price>

    How to remove a Inn door? (open)

    There's 2 way to delete a Inn door:
    - Destroy it!
    - Using the /inn delete command (Admin only at this moment)

    Configuration file (open)


    Code:
    Inn:
        cost: 100.0 #The cost of the door
        timeout: 10 #The time semeone don't have to pay for the door after they opened it 1 time. In minutes

    Permission flags (open)

    inn.create - Allow semeone to create a inn door
    inn.bypass - Admin flag to not pay anything while opening the door and you can destroy a Inn door
    inn.delete - Give access to the /inn delete command

    How to post a bug report? (open)

    To post a bug report, use this form:

    Code:
    [b]Version:[/b]
    [b]Full error displayed:[/b]
    [b]Plugins on your server:[/b]

    Credits (open)

    Cereal - Use of his selection system. Modified to fix my needs


    Todo:
    • Make /inn delete available for members (0.4)
    • Automatically close the door after a certain time (0.4)
    • /inn setowner (pname) (0.4+)
    • Door/Hotel upkeep (0.4+)
    • Cuboid to create a Hotel (0.5)
    • When the plugin load, it says No permissions
    • Your ideas!
    Changelog:

    Version 0.3
    • Added SuperPerms support
    • Better implementation of the Register API
    • Code optimization
    • New command: /inn delete (Player) - Delete a door that you will select or every door of a certain Player (Optional)
    • Door now stay in his current status while selecting
    Version 0.2
    • Public release
    • Added a "Timeout" support. With a server-side configuration flag, you can open the door many time you want within your set time.
     
  2. Offline

    HuntMASTER15

    Seems awesome! Will use it once you can remove players rooms with a command (can you yet anyways?).
     
  3. Offline

    greatman

    Forgot to add it in the main post but if you destroy the door, it removes the Inn setting from it.
     
  4. Offline

    HuntMASTER15

    Well I would rather be able to use a command for that.
    f.e. /removeinn HuntMASTER15
     
  5. Offline

    greatman

    How it would work you would type /inn remove and you slap the door. That's the way I would implement it.

    EDIT: But I could also do that a admin can delete every door that someone owns.
     
  6. Offline

    HuntMASTER15

    I like both ideas.
     
  7. Offline

    Daelmorn

    I would like to know about one more possible feature, is there a way to make the door automatically close itself after a set amount of time after someone opens it, just in case they leave it open? and thanks again for developing this one on my request =)

    and yes, I like those ideas too

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

    chernobyl360

    heres the issue with the setup you have its gonna try and force ALL doors you place as an inn. i suggest maybe removing the Place door with another slap command.
     
  9. Offline

    greatman

    Not at all. You place it then you type /inn select. This will allow you the select the door you want to set as a Inn door.

    Will try to do something for that.

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

    Daelmorn

    sweet, thanks man

    not at all man, I asked him to develop it for me, and it does only select one door, you have to do each and every door manually with a new /inn select and /inn create command to make the room an inn room thats up for rent, so it works quite well, as I am running the latest version on my own server with no issues, cept for players being retarded and not listening when I tell them how to open the doors, which seems to be more effective with a right click

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

    chernobyl360

    then it was a misjudgement on my part. sorry! :S
     
  12. Offline

    Plague

    Sorry for the delay in submission approvals, I've been away for a while.

    you are missing a recommended build tag in the title
     
  13. Offline

    greatman

    Added ;)
     
  14. Offline

    greatman

    New version ! 0.3!

    Changelog

    Version 0.3

    • Added SuperPerms support (Need testing tho)
    • Better implementation of the Register API
    • Code optimization
    • New command: /inn delete (Player) - Delete a door that you will select or every door of a certain Player (Optional)
    • Door now stay in his current status while selecting
     
  15. Offline

    Dimantio

    ????
     
  16. Offline

    greatman

  17. Offline

    swift_fox24

    I would suggest changing this from being a purely Inn plugin to a toll plugin, almost. Such as you have to open a door to get into a mob grinder pick up, and you're charged for how long you were in there. You want to harvest the piston controlled Wheat Farm? You gotta pay to do so.
     
  18. Offline

    greatman

    Cool idea. Ill try to do something for that.
     
  19. Offline

    DrPinkies

    Does it automatically set every door as a Hotel/Inn entrance, or do you have to use a command? Because on my server players buy lots...I don;t want them to spend money every time they enter their own homes xD
     
  20. Offline

    greatman

    You have to use /inn select and /inn create to do a door a Inn door. Of course the guy that created the door doesn't pay to open it ;)
     
  21. Offline

    DrPinkies

    Well, that gave me a few ideas. Forgive me if some of these are already part of the mod ;)

    1. Allow permissions so that if a player creates a hotel, anyone who uses the hotel the money transfers to the owner?

    2. Allow permissions so that it costs a set amount of money to create a hotel?

    3. Allow permissions so that it could possibly have an upkeep cost of a hotel?

    4. (This one seems less important to me, but I might as well include it to see your thoughts.) Allow permissions so that hotels of different sizes cost more/less to make, depending on the size?

    5. (If you believe 4 is a good idea) Allow permissions so that after a hotel is made, they can add on to the hotel or "upgrade" it for money.
     
  22. Offline

    greatman

    1. Already like that
    2. The price for a door is configurable in the config file.
    3. Will add that in my todo.
    4. Since it only works with doors atm and not cuboids that will not work but i'm planning in adding cuboid support.
    5. What type of upgrade? Size upgrade?
     
  23. Offline

    DrPinkies

    2. By that I thought you meant the configurable price is the price it costs to enter, not the cost to actually create it. My bad.

    5. Yes, I meant Size. Sorry for not being specific.

    And to repeat, at any time if you want me to help test some things, just tell me :)
     
  24. Offline

    greatman

    The price for the creation is in the config file but to open it's with the create command.
    For the size upgrade, ill try to figure a nice way to do it.
     
  25. Offline

    DrPinkies

    Alright, because otherwise the different pricing for different sizes would be useless. Because someone could make a tiny hotel, and then just add on to it. With it costing money to add blocks, it will make it harder for people to cheat :p
     
  26. Offline

    jlu

    Wait, i have to test this plugin!

    EDIT: Genious! Request: A /inn setowner (pname) for my doors!
     
  27. Offline

    Daelmorn

    greatman, I had another idea you could do... and maybe a secondary plugin that you can tie in with somethin like this, I recently built an arena on my server to punish people who break the rules, I was thinkin that if someone tries to break the inn doors, or they go through the entire inn and open all doors themselves, that it would be great to be able to have a way to automatically teleport them into my nice dark arena full of monsters

    just a thought, but it could be handy to have somethin like this, I would be willing to help develop it maybe but I am a bit rusty on Java

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

    kyoshiru

    Link is broken, mind fixing it please?
     
  29. Offline

    strontkever

    broken idd :)
     
  30. Offline

    strontkever

    can someone give me copy pls? im waiting for this plugin.. link is still broken
     

Share This Page