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!
Some regions are unprotectet after update to 1.3.1 (but some are still protectet). Pls Update :)
thanks
edit: seems to work, sry for false positive, but sometimes member cant build on their own regions...thats very strange...maybe its the fault of the new region loader? (this was also in 1.2.5...)
edit: and sometimes even if i remove the sign of a region..its still protecter by bananaregion... :(
This plug in is great and really easy to use :)
It would be nice if you could have a limit on the number of regions a player can rent/buy.
Also would be nice to have the ability to require a certain permission (VIP role) to rent larger regions.
Does it rollback what you do after your rent runs out?
I want to create a hotel, where you can rent rooms for a certain amount of timeā¦ Is that possible?
Also can I make another plugin video?
thanks the new version fix the bug with creating new worlds... with v5.0-rc4 my server crashed everytime i wanted to import a new world with multiverse :D
Great plugin! I will use this forever. But umm I found an issue with what Hans said.... @Hans6666
Agreed.. it may have been fixed in v4.15 when making the sign...yeah.....but... Cough!....... /setrent -1000000
Woot... Millionaire!
Just letting you know.
Is this able to make regions without Worldguard? Is it able to be part of a region already made with Worldguard? Like say I have the Global Region set and I make a City Region is this able to setparent to the City Region?
@Hans6666 Well, the new codes are highly experimental. Is this with or without enabling experimental mode in the config? Also let's move this discussion to the ticket you created, thanks. :)
EDIT: Forget the question, must be without as RegionReader shouldn't run at all if it's enabled. Please enable it and re-test.
URGENT! with new new update the laggs are getting bigger :( i got these error: 21:53:36 [WARNING] Task of 'BananaRegion' generated an exception[0m java.lang.NumberFormatException: For input string: ""[0m at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)[0m at java.lang.Integer.parseInt(Integer.java:470)[0m at java.lang.Integer.parseInt(Integer.java:499)[0m at de.V10lator.BananaRegion.DateTime.getDaysSince(DateTime.java:39)[0m at de.V10lator.BananaRegion.NewRegionReader.checkRegion(NewRegionReader.java:199)[0m at de.V10lator.BananaRegion.NewRegionReader.loadRegion(NewRegionReader.java:276)[0m at de.V10lator.BananaRegion.NewRegionReader.initRegion(NewRegionReader.java:143)[0m at de.V10lator.BananaRegion.RegionReader.run(RegionReader.java:67)[0m
and then after a time the server restarted automativcally :(
@Fr0zenFr0g Economy is disabled if Vault is not installed. I'll add a switch to the config, thanks. :)
Can I disable economy?
hi again, my server had some laggs and i wanted to find out which plugin is causing it, so i used nolagg to create a log...bananaregion is the 2-3rd highest plugin which does take sometimes causes performance problems.... here: Total duration: 110.699 ms / 500 ticks Average duration: 0.221 ms/tick Selected task: Task #5 Plugin: BananaRegion Location: de.V10lator.BananaRegion.RegionReader
de.V10lator.BananaRegion.BananaRegion.restartTasks(188) de.V10lator.BananaRegion.BananaRegion.onEnable(100) org.bukkit.plugin.java.JavaPlugin.setEnabled(215) org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(337) org.bukkit.plugin.SimplePluginManager.enablePlugin(381) org.bukkit.craftbukkit.CraftServer.loadPlugin(256) org.bukkit.craftbukkit.CraftServer.enablePlugins(238)
is it possible to remove this? or make the performance less?
would be great if you could deny negative values in the price of an region...some guys with the permissions on my server cheated money with this method...thanks
@NNickey Well, the hoster seems to have some problems again, sorry. Just try it again later.
@V10lator URL below not found.. ;(
Can you release the source as I like the idea but i want to change a few things for my server.
could you remove that is is required that the fences are completely closed? im still using an older version but im getting chunk errors...so i want to update..and when i use the newest version all regions are not protectet because they are not completely closed...theres one block air for the entrance..this worked at the older version..if its not possible i have to place a block on all 200-300 regions o.0