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!
Is there a way to limit how many regions players can buy? Like maybe a permission node: bananaregion.claim.x
Ok thanks V10lator
Can you buy a region forever, without re-renting?
Hey, is there anyway we can have this bypass townypermissions? D:
Thanks, it worked... kinda forgot to add the admin perm
but now I'm getting "Do you have enough money"
@Rsredmage This should work just fine with 1.2.5.
The sign shouldn't go blank and there are only two cases where it does:
I'm planing to release a version which warns you better in that cases, soon.
Any update coming or is this compatible with 1.2.5? When I type in
| bananaregion |
| |
| 20 |
|____________|
The sign goes blank. Then when I try any command it just keeps popping up "Please look at the renting sign while executing this command"
@oleerik Cause you can't save more characters at a sign line. BananaRegion tries to be lightweight, so it doesn't use any kind of database. It only uses the information on the sign... There is a debug build available, use it and give me the result...
@deathnote1029 Please send me your servers IP by PM. :)
i stopped the server and started it, but i still get that error upon restarting fence gates can be used correct?
i have tried everything that i can
Hope your able to find something that i cant
Thanks
deathnote
Problem: Doesn't support 14 character names. If the name is 14 characters it will automaticly remove the last character
@deathnote1029 If you're really sure that the fences are closed please /stop your server and restart it. I saw a similar problem at a server cause the admin used /reload (and /reload is bad...).
@V10lator
hey, im not sure what to do about this, i cant seem to find any way to fix it:
im unsure what i can do, but whatever it is, it does prevent players from building inside of it, i have located the two plots that cant be built in, and tried remaking them and everything, yet nothing happens, i have worldguard but i've set the same params on those as i have other plots and the other plots work fine.
I use build 2110 of 1.2.4 and the V4.1.1
Hope you can help me out
Thanks,
deathnote1029
@V10lator
sorry i'm a noob hadn't read that sorry. Really sorry for asking so a noob question. (first read than ask silly questions) ;-)
Can you please add a feature that allows player to buy areas forever? (Only an admin can make areas that can be bought forever) Please this were good for my town on my server so that they dont need to always care about their house got deleted.
@tehdansorz This sounds more like another protections plugin (like WorldGuard) interfering... If you're sure this is BananaRegions fault please open a ticket and include as much information as possible! Also note that a breakage would print stracktraces into your server.log file. Be sure to include them into your ticket.
Please update to 1.2.3 R1 ! Nobody can build in their regions !
@Doenerb0y Sorry, but I'm unable to reproduce the problem, so as long as you don't have any more infos and if you really, really tripple checked permissions there's nothing I can do atm other than slowly review the code, which I still did, but I couldn't find anything... :(
help please :/