Sign Rental - Rent Land with Signs! [Protection][iCon]

Discussion in 'Archived: Plugin Requests' started by Kalais, Jul 3, 2011.

  1. Offline

    Kalais

    Fed up with the lack of support and the complexity of other rental plugins, I'm requesting this:

    Sign Rental - Rent Land with Signs! -or- Contract - Rental Agreement on a Sign
    (compatible with iConomy and WorldGuard)

    Features:
    - Simple flags
    - Land protection

    How it works:
    An admin would build a fenced in area (or block specified in config). On said fence, a sign would be placed. The sign would give protection to whoever clicked on the sign for a set amount of days. After clicked, the sign will change from [ForRent] to [Rented]. The protection would be provided INSIDE the fenced area, allowing build access and at the fence level and up to the sky (perhaps configurable). If a user wanted to move or doesn't want land protection anymore an admin can break their sign.

    Signs:
    [ForRent] (Set by admin only)
    Price:
    Days:
    Renew: t/f

    [Rented]
    PlayerName

    [Owned] (Set by admin only)
    PlayerName

    [MoreUsers]
    PlayerName1
    PlayerName2
    PlayerName3
     
  2. Offline

    Liam Allan

    I can try and make this . . . But I might intergrate it with Region Market . . .
     
  3. Offline

    Kalais

    Any help is appreciated. We have a new city completed which has hundreds of plots of land (fenced areas of 25x25 and 50x50) and I need a quick and easy way to allow renting.
     
  4. Offline

    Liam Allan

    Are you using worldguard. I'm going to make it work with that :D
     
  5. Offline

    Kalais

    Yes, I am.
     
  6. Offline

    Liam Allan

    Good then :D
     
  7. Offline

    Kohle

    Oh I would like this plugin, too!
     
  8. Offline

    Kalais

    One developer down! Anyone else care to give it a go?
     
  9. Offline

    Jaxkr

    I will work on this. Count me in. Do you have a Skype or something Liam?
     
  10. Offline

    MetalMadness

    If you want them to keep the house, and not rent, try regios
     
  11. Offline

    codename_B

    I'm going to have a bash.
     
    Liam Allan likes this.
  12. Offline

    Liam Allan

    Yeah! I would love to work together! Skype: liamallan12345
     
  13. Offline

    Kalais

  14. Offline

    codename_B

    Test build to see if I got area protection working - I have no way of testing atm

    http://uf6.info/bcode/BananaRegion.jar

    line 1: bananaregion
    line 2: playername

    place ontop of a fence that surrounds an area
     
  15. Offline

    Kalais

    Testing: mine.kaisleyisla.com:1337
    It seems only the sign is protected.

    EDIT: Nothing is protected.
     
  16. Offline

    codename_B

    Noted: working on fixing this. Will keep you posted.

    @Kalais - working version should be online now.

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

    Kalais

    Console:
    Code:
    23:00:35 [SEVERE] Could not pass event PLAYER_INTERACT to BananaRegion
    java.lang.NullPointerException
            at com.ubempire.region.eventHandler.onPlayerInteract(eventHandler.java:2
    1)
            at org.bukkit.plugin.java.JavaPluginLoader$10.execute(JavaPluginLoader.j
    ava:307)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:58)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:321)
            at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEven
    t(CraftEventFactory.java:168)
            at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEven
    t(CraftEventFactory.java:139)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:780)
            at net.minecraft.server.Packet18ArmAnimation.a(SourceFile:35)
            at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:84)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    >
    No protection either.

    Config file:
    Code:
    -80,120:
        protected: false
    -94,119:
        protected: false
    -110,121:
        protected: false
    
     
  18. Offline

    codename_B

    Good news - I've fixed things :)
    Thanks for the bug report btw.

    Download again from the same link - the sign checker is on a loop - so be patient with it if it doesn't protect immediately, I guess lol.
     
  19. Offline

    Kalais

    It protects now. Config file seems to put each protected block on a separate line instead of showing protected coordinates.

    So, this will eventually allow:
    - Click to Rent
    - Configurable Rent price
    - Configurable # of Days per Rent
    - Signs change to [Rented] after clicked on
    ?
     
  20. Offline

    codename_B

    This will eventually allow:
    - [For Rent] signs
    - Click to rent
    - Configurable rent prices
    - Signs change to [Rented] after clicked on
     
  21. Offline

    Kalais

    That's great.

    Current dilemma:
    When using this on top of a WorldGuard region it won't allow the person, whose name is on the sign, to build.

    Edit: Build allow flag let the user build which may be a problem as on my server the region is a massive city with plots of land.
     
  22. Offline

    codename_B

    So you want this to override worldguard regions?
     
  23. Offline

    Kalais

    Just within the area I've designated (fence or another block if you make it configurable).
     
  24. Offline

    codename_B

    I'm not sure if that's possible - but I'm going to try to make it so - I've changed the plugin to attempt to do this, so re-download please.
     
  25. Offline

    Kalais

    You can place lava and water in a Rental area if it's not in your name.

    It only works with build deny while WorldGuard spams them that they do not have permission. Possible to only allow them to build up and not dig into the region? When the user is done renting or doesn't have enough money to pay I'd like for the land to not have huge pits from basements they've built.

    Also, for some reason users can build outside the fence now.

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

    codename_B

    Shouldn't be the case, but I'll look into it
    Yeah, that's probably because I'm setting the flags - I'm not sure if there is a way to do this without doing that.
    .
     
  27. Offline

    Kalais

    Right click the ground with the lava/water bucket long enough and it'll stay.

    The user must not be able to build outside of the fence, only within.

    Seems the fence line isn't stable. It's sometimes letting users build outside of the region and sometimes not.

    Can you come check it out?

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

    codename_B

    @Kalais - try that build - it should stick with worldguard flags.
     
  29. Offline

    Jaxkr

    Looks like @codename_B has this covered. He is a lot more experienced and far faster than me, so I am going to back out of this.

    Bye! Going to work on some new plugin!
     
  30. Offline

    codename_B

    Don't let that stop you @Jaxkr - mine may not end up being exactly what he wants.
     

Share This Page