BananaRegion
BananaRegion
This is a continuation of BananaRegion from codename_B.
How to
Simply surround the area with fences (nether fences and/or fence gates will work, too) and put a sign ontop of these. On the first line of the sign you have to write BananaRegion, use the third line to set the price.
Features
- Protects the region from anyone else interacting (except for wooden doors, wooden pressure plates and fence gates), placing blocks, destroying blocks etc.
- Supports full-world protections.
- Supports freebuild regions.
- Supports for sell regions.
- Supports multiple owners (just create more renting signs for the same region).
- Supports nested regions.
- Makes the region fireproof.
- Makes the region explosion proof.
- Stops fluids from moving into regions.
- Prevents Enderman griefing in the regions.
- Friendly mobs for region owners/admins.
- Rent auto-renews if players have enough money.
- Charges the player to get a 7 day lease on the region - real days NOT minecraft days.
- Players cannot destroy, change, or place rental signs.
- Players cannot destroy the protective fence.
- Automatic godmode in regions for admins and region owners - more incentive to own a region!
- An excellent and easy to use API for devs to add their own things to BananaRegion.
Commands
/rent
To rent the region you're looking at.
/unrent
To unrent the region you're looking at.
/setrent x
To change the monthly fee to x (Warning: This unrents the region, too!)
/brreload
To reload the configuration from disk.
/update BananaRegion
To update this plugin. Have a look here for more information.
Permissions
bananaregion.admin
You need this node to build new regions, destroy old ones, use /unrent for regions you're not owning, to use /setrent and /brreload. Defaults to op.
bananaregion.use
You need this node to use the /rent command. Defaults to all.
autoupdate.announce
Users with this node will be notified about new updates. Defaults to op.
autoupdate.update.bananaregion
Users with this node will be able to /update this plugin. Defaults to op.
for more information about the autoupdate nodes have a look here.
Dependencies
BananaRegion uses Vault. That means: No Vault, no economy support (it will work without, too).
API
If you have a instance of this plugin (Hint: pluginManager.getPlugin("BananaRegion") ) use the method getAPI() to get the API.
int getVersion()
To get the versions number of the API. This number changes whenever the API gets something new added or if something breaks.
boolean canBuild(Block block, Player player)
Returns true if one of the following conditions met:
- The block don't belong to a protected region/world.
- The player owns the region the block is in.
- The player has the permission bananaregion.admin.
- The block belongs to a freebuild region.
boolean canBuild(Block block, String player)
Returns true if:
- The block don't belong to a protected region/world.
- The player owns the region the block is in.
- The player is online and has the permission bananaregion.admin
- A Vault compatible permissions plugin with support for offline players is enabled and the player has the permission bananaregion.admin
- The block belongs to a freebuild region.
String[] getOwners(Block block)
Returns a string array containing the owners of the block (this array can be empty).
boolean isRegion(Block block)
Returns true if the block is part of a region or false if not.
boolean isProtectedRegion(Block block)
Returns true if the block is part of a protected region or false if not.
boolean isFreeRegion(Block block)
Returns true if the block is part of a freebuild region or false if not.
Configuration/World protection
godmode
Activate godmode for region owners/admins.
antiAnimalGrief
Only region owners can damage animals in their region.
WorldProtections
Allow (true) or deny (deny) specific actions globally for your worlds. Admins/Region owners will still be allowed to do anything.
In this section you can also specify the region lease length per world.
Freebuild regions
To make freebuild regions surround a region with fences like always. Also write BananaRegion on the first line of the sign. But this time write [FREE] on the second!
Everybody will be allowed to build in freebuild regions. Else permissions will depend on the WorldProtections.
For sell regions
To define a region for sell write [FOR SELL] on the second sign line.
Videos
Thanks to ChrisC for making this video!
-
View User Profile
-
Send Message
Posted Jan 22, 2012i have a question
when one of my players rents a region no money gets removed from his account
does it take the $ after the 7 days ?
if you know why please help me thanks
-
View User Profile
-
Send Message
Posted Jan 21, 2012@Valtn I don't think it's cause of 1.1, I think the plugin crashed and you have a error telling why in your servers log file. ;)
Also I still updated it for 1.1, but won't release it till there's a RB.
-
View User Profile
-
Send Message
Posted Jan 21, 2012When I put a sign the [FOR SELL] doesnt seem to activate, it doesnt turn into color and people can destroy it, anyway I try to put /rent but nothing happens it only appears in chat /rent
I belive this happens because of the craftbukkit dev build, please update the plugin for the 1.1
-
View User Profile
-
Send Message
Posted Jan 17, 2012@capitano33 What do you mean with renew?
@Valtn Huh? That shouldn't be! Do you have any errors in your logs?
-
View User Profile
-
Send Message
Posted Jan 17, 2012What is the problem that anyone can destroy others regions? they dont have the admin permission
-
View User Profile
-
Send Message
Posted Jan 12, 2012Thanks for your plugin
it's possible to add the option to renew automaticaly the bananaregion please?
-
View User Profile
-
Send Message
Posted Jan 12, 2012@Jadedwolfs 1. yes, 2. no
-
View User Profile
-
Send Message
Posted Jan 12, 2012Does the money from a user who is renting or buying a region just disappear? If so is there a way to have the money be sent to a bank or player instead?
-
View User Profile
-
Send Message
Posted Jan 10, 2012-
View User Profile
-
Send Message
Posted Jan 10, 2012Can I use iConomy? If not, how do I Get the "Money" to Rent?
-
View User Profile
-
Send Message
Posted Jan 6, 2012@EllB I don't really understand. Of course they can't mine outside of the region, that's what the plugin is good for. And the fence has to be protected, if they would destroy it the region would be deleted at BananaRegions next cache update.
-
View User Profile
-
Send Message
Posted Jan 6, 2012Thanks alot for the plugin! We're using it on my server and it works perfectly for everyone, and it's so simple that (almost) everyone can use it. But, my players wanna mine a bit outside their region, but they can't. So, I want you to add a configurable option to not protect the fence around the region. Thanks for reading this, it would be awesome if you added it as soon as possible!
-
View User Profile
-
Send Message
Posted Jan 4, 2012@saimon13 This is a restriction of notch code. The text only disappears for the player which broke the sign and it reappears after relogon.
-
View User Profile
-
Send Message
Posted Jan 4, 2012When normal player comes and breaks the bananaregions sign. Text in the sign disappears.
-
View User Profile
-
Send Message
Posted Jan 4, 2012I was going to ask for this to also support iron bars but after reading Enilsss's Post I think thats probably the best option by far.
Would it be possible to set the ID's of blocks that can be used as region indicators in the config file?
-
View User Profile
-
Send Message
Posted Jan 3, 2012Liking the idea of this plugin, but I personally am not a big fan of fences. What if instead of fences, players could make a config-file specified block to identify protected regions, and perhaps the block would be on ground level. I'm thinking of lapisblock outlines for players' regions.
Anyway this plugin looks great, definitely looks better than all of the other plugins that require 10000 commands which 95% of users will never really grasp.
-
View User Profile
-
Send Message
Posted Dec 31, 2011@Valtn Yes you can. But don't nest a region inside of a free region, that won't work atm.
-
View User Profile
-
Send Message
Posted Dec 30, 2011can you put a bananaregion inside another? that would be great like for making cities :D
-
View User Profile
-
Send Message
Posted Dec 29, 2011-
View User Profile
-
Send Message
Posted Dec 28, 2011Player A places a sign and rents it. Player B comes along and types /rent. Ownership changes to Player B and player A can no longer build. How do I fix this? (this is just an example) Other than that great plugin and exactly what I was looking for. I am using Latest PermissionsEx, mineconomy and latest BananaRegion too.