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!
they only have the bananaregion.use permissions.. with the R1 version it works, but not with the R4
@Doenerb0y That's weird. Please check your permissions (bananaregion.admin can build everywhere).
anyone can build on the region. please update.. there are no errors in the server.log i use #2036 and the latest version of ur plugin..
Suggestions from players on my server: Co-ownership,| Clear banned player plots,| /clear plot command or something of the sort,| Plot selling/buying between players
OKey, I'll give it an other go then and report back with detailed info if it fails
@V10lator
okay butt why can't you make some pvp toggling system for a region? It would seriously improve your plugin's awsomeness.
@oleerik Till now I got only reports that it works just fine with 1.2, so if anything broke for you please open a ticket and tell me what exactly broke.
@unholydecimator 1. There are [FREE] and [FOR SELL] (does exactly what you want with [BUY]) regions. If you want a region that no-one can rent make a [FOR SELL] region with a cost of 0 and buy it for yourself.
2. If I would do this there would be no place to store the username on the sign but BannagRegion has to store the username, cause there is no database... ;)
I love this plugin.
When will it be updated for 1.2? :) Doesn't seem to work very well
V10lator: PLEASE READ THIS!
2 Suggestions to make your banana region plugin perfect!
Its already excelent as it is.
Suggestion 1:
Make it so you can have regions that no one can rent and have it so you can have regions that you can permanently buy.
Suggestion 2:
Make it possible to have PVP Enabled/Disabled Regions. (Would make this plugin rival worldguard, being very lightweight and having this awsome feature!)
Suggested Method: You can do whatever you want, but this is my suggestion of how to do it. The player would place a sign then type in the following options
If you implimented all of this I would be very happy and your plugin would be AWSOME!
I'd love two things..
1) Being able to make non-owners use levers/buttons
2) Make it so repeater ticks can't be changed by others than the owner.
have you considered adding a config option allowing people to set how much should this selection protect on Y axis to both sides (up/down)? it would be a great addition :-)
and if you'd allow for a configurable amount of money per player's selection so that a player will need to first buy his land out from the server before he can rent it, you would own a super-awesome anti-grief plugin that everybody wants (the config value would be money per block or something like that I'd imagine)
@ProjectInfinity This plugin doesn't parse the sign all the time. Many players near one sign shouldn't cause any lag.
How would this work with a lot of players nearby? I hear other plugins relying on sign parsing, such as Lockette has a problem with lag if more than 25 players are near it.
Also, is there some way to make a maximum bananaregion size or predetermined (scaling maybe?) rent for a bananaregion? I'd like to use this as self-serve protection for my users, however I want the rent to scale as the size of the bananaregion does so we don't end up with people claiming ridiculous amount of land.
@Crayder
Check out regios. :)
@V10lator This is a very good and lightweight plugin, do you know if there are any others that are as light (as in, not WorldGuard) that will allow me, as an admin, to protect small regions?
@Crayder You can use it for that if you make for sell regions and buy them for yourself, but that's not the main use of it. The main use is to rent/sell regions to other users.
Yes, it claims the entire Y axis.
Also, are claimed regions completely claimed on the entire Y axis?
Plugin looks awesome. I plan to use this plugin specifically as a tool for admins to separate certain areas as non-griefable. Is that a practical and realistic use of this? I basically just want to be able to section off small "shop" regions that cannot be destroyed.
@V10lator: Thanks for continuing this plugin. Love it.