[ADMN/SEC/ECON] BananaRegion v3.2 - simple predefined region renting [1060]

Discussion in 'Inactive/Unsupported Plugins' started by codename_B, Jul 7, 2011.

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

    codename_B

    BananaRegion
    simple predefined region renting

    Download link: Download
    Version: 3.2


    Video courtesy of @ChrizC

    What you do: place a sign with the following formatting on an area surrounded by a fence
    Please note you MUST place the sign on top of a fence!
    line 0: bananaregion
    line 1: [FOR RENT]
    line 2: ANY NUMBER (charge per block)
    line 3:

    NOTE: REGIONS MUST BE SEPERATED BY AT LEAST ONE BLOCK OF AIR - DO NOT JOIN THE FENCES OF TWO SEPERATE REGIONS TOGETHER, THEY WILL BE READ AS ONE REGION

    [​IMG]

    What it does:
    • protects the region from anyone else interacting, placing blocks, destroying blocks etc
    • makes the region fireproof
    • rent auto-renews if players have enough money
    • multiple tenants per region
    • charges the player to get a 7 day lease on the region - real days NOT minecraft days
    • stops water and lava flow in the region (most of the time)
    • players cannot destroy, change, or place rental signs
    • players cannot destroy the protective fence
    • automatic godmode in regions for ops and region owners - more incentive to own a region! (configurable in config.yml)
    • an excellent and easy to use API for devs to add their own things to BananaRegion
    Code:
    Commands:
    /rent - rents an area
    /unrent - unrents an area
    
    Permission nodes:
    bananaregion.admin
    
    How to rent:
    Look at the sign and type /rent - you are now renting that area and can build in it
    
    How to unrent:
    Look at the sign and type /unrent - you have been removed from the rental area
    
    Admin commands:
    Look at the sign and type set /setrent 5000 - you have now set the rent on that region to 5000 of your favourite currency
    
    Multiple tenants:
    YES
    
    Nested areas:
    YES
    
    Multiworlds:
    YES
    
    Register:
    YES
    To build in a rented area using this plugin - you must have iCo4, iCo5, EE17 or BoSE installed on the server.
    
    Code:
    The API - very simple
    import com.ubempire.region.block.BananaBlock;
    public static BananaBlock BananaBlock;
    BananaBlock.isProtected(Block block);
    BananaBlock.isProtectedFrom(Block block, Player player);
    
    Known issues:
    • Pistons
    Changelog:
    • 08/07/2011 - v1 - fixed Register bugs - thanks @Pandarr - released plugin with NEW MULTIWORLD FEATURES
    • 08/07/2011 - v2 - rejiggered BananaRegion.log to be organised per-world and added (hopefully) some more idiot proofing
    • 10/07/2011 - v2.1 - not released - fixed WorldGuard fire protection bug
    • 10/07/2011 - v2.2 - added auto-rent renewal when the signs expire if the player has enough funds in their account
    • 10/07/2011 - v2.3 - added GODMODE - added CONFIG.YML
    • 11/07/2011 - v2.4 - added SANITY CHECK - only updates the list of signs if a new chunk has been loaded containing a sign or a sign has changed.
    • 11/07/2011 - v2.5 - added basic API - use com.ubempire.region.block.Block; instead of org.bukkit.block.Block;
    • 11/07/2011 - v2.6 - bugfix release
    • 17/07/2011 - v2.7 - removed "click" based protection from everything apart from doors. Removed "blockPhysics" cancellation within a region for everything apart from signs.
    • 19/07/2011 - v2.8 - completely removed large chunks of code in attempt to stop buckets being cancelled
    • 19/07/2011 - v2.9 - put back "click" based protection on everything.
    • 20/07/2011 - v3.0 - removed "click" based protection from wooden doors, kept it on everything else. Attempted to override WorldGuard bucket + chest protection. No major changes, only update if you want to unprotect wooden doors.
    • 22/07/2011 - v3.1 - added SuperPerms with node bananaregion.admin and removed teleport protection
    • 24/07/2011 - v3.2 - added "trim player name to 12 characters" function @Danton1983
     
  2. Offline

    Kalais

    Thanks for taking up my request!
     
  3. Offline

    codename_B

    Coming soon - leasing regions for 7 days instead of a per-block cost.
     
  4. Offline

    Arubian

    wait wait wait do this plugin conflict whit world edit??

    or not i'm stupid :) and will you be adding permissions?

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

    captainawesome7

    This looks epic.
     
  6. Offline

    codename_B

    No conflicts as there is no "wand".
    Permissions will be here probably by version 3, I'm waiting to see the stability of Bukkit's soon-to-be-released built-in permissions first.
    :D Glad you like the look of it - just you wait for the update ;)
     
  7. Offline

    Sh00ck

    a video whould be good ;)
     
  8. Offline

    codename_B

    Updated leasing version is out - should auto-update all old signs.

    Video of?

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

    Sh00ck

    how to make that and how it works :p
     
  10. Offline

    codename_B

    If someone wants to make me a vid, that'd be great!
     
  11. Offline

    Arubian


    i can :) but when will you add permissions
     
  12. Offline

    codename_B

    Why are permissions such a must? What in particular do you need permissions for?
     
  13. Offline

    Arubian

    like there r some server that don't want there players to make a own renting place that why
     
  14. Offline

    codename_B

    Players cannot make their own renting place - players can only rent existing places.
     
  15. Offline

    Arubian

    So like to make the sing to for renting you will need to be an op as you say?
     
  16. Offline

    codename_B

    That's correct. Players can only rent regions that ops define.

    So what do we need permissions for? You only want certain players to be able to rent? :confused: just make the regions expensive enough that only your vips can buy them then

    video added.

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

    Arubian

    BTW Your plugin i was search for month but bukkit don't really have this plugin
     
  18. Offline

    codename_B

    And now it does ;) you're welcome - I do have a donate button ;)
     
  19. Offline

    Arubian

    Ok i will try to see what i can do :)

    This plugin is work perfect on my server people r loving it :) some thing for you need to know do add to this i run a pvp server so when some one rent it can pvp disable in the region. 2. maybe this will be hard maybe make it so when they buy a house the chest that inside will go on there name whit lwc of other chest lock nice plugin

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

    codename_B

    The chests inside a rented region are auto-protected by this plugin. Why would you need any protection on top of that?
     
  21. Offline

    Sh00ck

    Please a config file ... and there you can change the 7Days to UNLIMITED Please


    Code:
    14:59:41 [INFO] reading regions...
    14:59:41 [INFO] 1 regions read.
    14:59:41 [SEVERE] java.lang.NullPointerException
    14:59:41 [SEVERE]       at org.yaml.snakeyaml.emitter.Emitter.expectNode(Emitter.java:399)
    14:59:41 [SEVERE]       at org.yaml.snakeyaml.emitter.Emitter.access$1600(Emitter.java:64)
    14:59:41 [SEVERE]       at org.yaml.snakeyaml.emitter.Emitter$ExpectDocumentRoot.expect(Emitter.java:373)
    14:59:41 [SEVERE]       at org.yaml.snakeyaml.emitter.Emitter.emit(Emitter.java:216)
    14:59:41 [SEVERE]       at org.yaml.snakeyaml.serializer.Serializer.serializeNode(Serializer.java:206)
    14:59:41 [SEVERE]       at org.yaml.snakeyaml.serializer.Serializer.serialize(Serializer.java:114)
    14:59:41 [SEVERE]       at org.yaml.snakeyaml.representer.BaseRepresenter.represent(BaseRepresenter.java:68)
    14:59:41 [SEVERE]       at org.yaml.snakeyaml.Yaml.dumpAll(Yaml.java:221)
    14:59:41 [SEVERE]       at org.yaml.snakeyaml.Yaml.dump(Yaml.java:205)
    14:59:41 [SEVERE]       at org.bukkit.util.config.Configuration.save(Configuration.java:158)
    14:59:41 [SEVERE]       at com.ubempire.region.RegionReader.processRead(RegionReader.java:155)
    14:59:41 [SEVERE]       at com.ubempire.region.RegionReader.read(RegionReader.java:50)
    14:59:41 [SEVERE]       at com.ubempire.region.Region.runTask(Region.java:45)
    14:59:41 [SEVERE]       at com.ubempire.region.Region$1.run(Region.java:169)
    14:59:41 [SEVERE]       at org.bukkit.craftbukkit.scheduler.CraftWorker.run(CraftWorker.java:34)
    14:59:41 [SEVERE]       at java.lang.Thread.run(Thread.java:636)
    
     
  22. Offline

    codename_B

    Wow - what did you do in order to break this?
     
  23. Offline

    Sh00ck

    ?
    i only put the .jar in the Plugins folder ;)
    Not more :p
     
  24. Offline

    codename_B

    I'll tell you what is wrong - you probably don't have the BananaRegion.log file and I don't create it if it doesn't exist >.>

    oops.
    Create a blank text file called BananaRegion.log

    EDIT: Just redownload the jar file - I fixed it.
     
  25. Offline

    Sh00ck

    Really Nice Plugin -.-'

    The only thing what whould be good is :

    Like the last post from me :
    A Config file for the RENT ;)
    But really nice i use it
     
  26. Offline

    codename_B

    A config file to do what? Rent is for 7 days - I will be adding a config file at some point to GLOBALLY change the rent length, but having it at 7 days encourages your users to remember to login.
     
  27. Offline

    Sh00ck

    yes that is that what i mean xD
     
  28. Offline

    vefald

    Broken Download link : ( can you fix it ?
     
  29. Offline

    codename_B

    Dowload link (Megaupload): Download
     
  30. Offline

    vefald

    thx man
     
Thread Status:
Not open for further replies.

Share This Page