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!
@Thyadar PMed you.:)
@V10lator: Thanks for your answer.
No, no group has this permission (besides Admins of course).
I tried it with several forms now, but the PlugIn always creates a square.
The only errors I get is this.
20:48:38 [SEVERE] Could not pass event org.bukkit.event.block.BlockPistonRetractEvent to BananaRegion
java.lang.ArrayIndexOutOfBoundsException 2
at de.V10lator.BananaRegion.BananaRegion_API.getOwners(BananaRegion_API.java:166)
at de.V10lator.BananaRegion.BRBlockListener.onBlockPistonRetract(BRBlockListener.java:195)
at org.bukkit.plugin.java.JavaPluginLoader$47.execute(JavaPluginLoader.java:593)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:57)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:453)
at net.minecraft.server.BlockPiston.g(BlockPiston.java:90)
at net.minecraft.server.BlockPiston.doPhysics(BlockPiston.java:52)
at net.minecraft.server.BlockPistonExtension.doPhysics(BlockPistonExtension.java:152)
at net.minecraft.server.World.k(World.java:526)
at net.minecraft.server.World.applyPhysics(World.java:501)
at net.minecraft.server.BlockRedstoneTorch.remove(BlockRedstoneTorch.java:66)
at net.minecraft.server.Chunk.a(Chunk.java:313)
at net.minecraft.server.World.setRawTypeIdAndData(World.java:353)
at net.minecraft.server.World.setTypeIdAndData(World.java:450)
at net.minecraft.server.BlockRedstoneTorch.a(BlockRedstoneTorch.java:118)
at net.minecraft.server.World.a(World.java:2334)
at net.minecraft.server.World.doTick(World.java:1745)
at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:524)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:435)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:465)
But we never use Pistons? DaFuq? :D
@Thyadar It supports non-squared regions, too. If somebody is able to destroy the fences make sure he doesn't have the permission bananaregion.admin (which defaults to op).
Do you have any errors in your server logs?
I gotta Question: Is it possible that the PlugIn is just able to protect squares?
Cause I build a region which is NOT just a square (look at Picture) and the renter is
able to destroy the fence which is in the "square-area".
Just look at the picture, Im sure you get what I mean ;)
(Red Line / Fence; Yellow / Area in which they still are able to build (especially the fences)
Thanks!
http://img6.imagebanana.com/img/dk3ik2li/Banana.jpg
@mafima You mean [FOR SELL] regions? Please update, cause that was fixed in v4.7 (we're at 4.9 now)
It is possible to go on regions that other users bought and /RENT them!!!! WTF
@WingedSpear It supports redstone and pistons for a long time...?
@V10lator
Red stone and Pistons support? or its still bugged?
Does this work with 1.1? Anyone tested?
verbose= false
whats this for?
Is there any chance we can get the source for this so I can make some slight changes.
I would love to make the first line text changeable, and also a right click on the sign option instead of using the /rent command...
Also i would like to add more permission to allow people to build regions/plots but not all the other admin stuff.
if you want you can email it to me - [email protected] or if you got a github page or something would be very helpful.
Thanks
thanks so much i got it to work :D
If i install Vault will it take $ from players?
i don't have Vault but Iconomy
@V10lator
umm :| ;( can you add this to next update ? :))))
@Adrenalineq If the player doesn't have enough money the region will be for rent again, but it will not be cleared.
This plugin have automatic clear house when player dont have money?
@xnightrider720x Do you have Vault installed, too?