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!
@V10lator
If I want to build something on my Region it says " You don't have permission for this area". Doesn't BananaRegion supports full-world protections ?
@Leonard1122334455 All I see at your screenshot are messages that you are in a protected area, which looks like it is working. So what exactly isn't working?
Doesn't support full world protections for me :/ http://oi47.tinypic.com/2n8yij5.jpg
Help would be nice :D
I use McMyAdmin to manage permissions and it doesnt support multiworld permissions.
Also, is there any way to assign a banana region to a user? If not, can you add it?
@PAL18 Cause gates are counted as fences, so there is a loop.
Why cant there be double gates?
Also, did you see my previous reply (below the Y axis post)?
@PAL18 It doesn't have to be on the same Y axis all the time, but you have to make sure there are no loops:
Good:
Bad:
Bad:
I think i found another problem:
Do all the fences have to be on the same Y axis?
I have a region that has the fences on various Y axis and while i can build the sign and the user can rent the area, no region protection is performed.
EDIT: Looks like this is the case. I just used MCEdit to make all fences in the sky on the same Y axis (and i moved the sign to the fence) and protection is finally working.
@V10lator
I use McMyAdmin to manage permissions and it doesnt support multiworld permissions.
Also, is there any way to assign a banana region to a user? If not, can you add it?
@PAL18 No, godmode is for region owners / admins inside of regions, not for the whole world.
Sure, the fence can also fly in the sky...
Can't you take away the node in that world?
If godmode is enabled and a world is protected, does this mean all players get god mode on that world? If so, can you make it so that you can disable this from happening?
If i build a fence underground (to hide it), will a region still be protected?
Also, can you add a configuration option that disallows permission node bananaregion.admin from destroying specific regions/worlds? I ask because i have a pvp world (and a certain region) and admins shouldn't be able to destroy blocks.
@PAL18 Yes and yes.
Does this plugin protect from the bedrock all the way up to the sky?
Also, what about non-flat terrain (eg. hills and mountains), can the fence blocks be put in a zig zag pattern?
ne das brauch ich nicht xDD bei mir ist das prob das die Member keine permissions haben um die region zu kaufen xD deswegen wo finde ich die permissions für permissionsex xD
Hallo wo finde ich die Permissions weil meine member können es nicht kaufen oder bauen ?? bitte um hilfe xD
Hallo wo finde ich die Permischens um Membern das recht zu geben die bananaregion zu kaufen und dort drauf zu bauen ?
@Hans6666 Please opoen a ticket and give me the full stacktrace there, not just one line of it.
2012-08-27 16:55:53 [WARNING] [BananaRegion] Task #1556 for BananaRegion v5.0 generated an exception java.lang.ArrayIndexOutOfBoundsException
????
Hey bro.really nice plugin but i can't understand how to make this signs.i saw the video from ChrisC but with new things...ohh and i have to restart my server to make a sign which you can't use