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

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

  1. Offline

    Kalais

    With no flags the user is unable to build in the fence area now. Seems destroying signs doesn't remove the rental either.

    @Jaxkr It'll give you a chance to hone your skills! :)

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

    codename_B

    Destroying the signs will remove the rental on the next cycle.
     
  3. Offline

    Kalais

    Only the user can destroy it though. But more importantly, they can't build now.
     
  4. Offline

    codename_B

    Download again (working around worldguard is tricky :( )

    Downloaded the new version?

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

    Kalais

    Testing now.

    @codename_B
    Can still build outside of fence area.

    Edit: All users can even with build set to deny.

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

    codename_B

    Blech :(

    New one online - any better?
     
  7. Offline

    Kalais

    Same results with build deny: users can build outside of the fence* in a protected region.
     
  8. Offline

    codename_B

    Try the new one - same download link.

    I've hooked into the worldguard events at the simplest way I can.

    Any progress?
     
  9. Offline

    Kalais

    Would this be easier:

    Tie the plugin into WG. Basically, a ForRent sign and the plugin would send the command to make a new WG region which would make the area surrounding it the parent. When the sign is removed it would delete the region.

    Edit: Testing new one.
     
  10. Offline

    codename_B

    Not really;
    A: I don't want to tie the plugin into worldguard
    B: Logistically and financially inconceivable!

    You're welcome to build something like that
     
  11. Offline

    Kalais

    Just a suggestion. I don't know coding. :)
    The latest version doesn't allow building inside of the fence.
     
  12. Offline

    codename_B

    not even by the player who owns the fence/admins?
     
  13. Offline

    Kalais

    When a region is set to build deny and there's a fence inside that region, no they still can not build inside of the fence.

    @codename_B
    What does work:

    Large region: "City" - Parent to "Test"
    Small region: "Test" - Located inside of a fenced in region, located WITHIN "City" - Build: Allow

    Only downfall to this method is that I have over 100 plots (fenced in areas) that would require regions.

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

    codename_B

    Why must the large area for plots be worldguarded? You could always just do a one large region over all the plots with build: true;

    It's a shame I can't ovverride worldguard, but also it's not really a surprise.
     
  15. Offline

    Kalais

    @codename_B
    I'll be around for testing whenever you have another update.
     
  16. Offline

    codename_B

    There is another update now - with rent functionality.
    iConomy isn't included YET but it logs how much it should charge the player.
     
  17. Offline

    Jaxkr

    Thanks! I might work on a universal time plugin that would make this plugin run a lot smoother.
     
  18. Offline

    Kalais

    Testing now. Same sign format?

    Sounds intriguing. Is it anything like the properTime plugin? (That plugin still allows for time to jump around.)

    @codename_B
    Ok, my friend looked at the source and found that signs had changed so I did it like so:

    bananaregion
    [FOR RENT] (or rent)
    1 (default being 25)

    Found the /rent and /unrent commands. They work (signs are changed on relogging) and show player name and revert to [FOR RENT] properly. Some "Internal Errors" appear on screen and this shows up in console:

    /rent
    Code:
    21:08:12 [INFO] xJoshJx wants to rent.
    21:08:12 [INFO] Tried to set line 1 to xJoshJx
    21:08:12 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'rent
    ' in plugin BananaRegion v0.2
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:12
    9)
            at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:2
    98)
            at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.
    java:711)
            at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:676)
    
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:669)
            at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
            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)
    Caused by: java.lang.NullPointerException
            at com.ubempire.region.RegionReader.readStatic(RegionReader.java:28)
            at com.ubempire.region.Region.onCommand(Region.java:47)
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
            ... 12 more
    /unrent
    Code:
    21:08:26 [INFO] xJoshJx wants to rent.
    21:08:26 [INFO] Tried to set line 1 to [FOR RENT]
    21:08:26 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'unre
    nt' in plugin BananaRegion v0.2
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:12
    9)
            at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:2
    98)
            at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.
    java:711)
            at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:676)
    
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:669)
            at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
            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)
    Caused by: java.lang.NullPointerException
            at com.ubempire.region.RegionReader.readStatic(RegionReader.java:28)
            at com.ubempire.region.Region.onCommand(Region.java:57)
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
            ... 12 more
    Config appeared correct, although everyblock has it's own line.

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

Share This Page