[ADMN/SEC/ECON] BananaRegion v3.2 - simple predefined region renting [1060]

Discussion in 'Inactive/Unsupported Plugins' started by codename_B, Jul 7, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    DrBowe

    Well, it was more of the height (as oppposed to the depth) that I was thinking of. But then again, nothing's wrong with the good 'ole "strict rules" policy, where if they go beyond the height restrictions, I blow it up ;)
     
  2. Offline

    codename_B

    Sounds awesome! :D You can't spell Banana without Ban ;)
     
  3. Offline

    Wazeq

    what if some1 rents it, will the money go to the owner or just dissapear into the air?
     
  4. Offline

    codename_B

    Money goes back to "the man", so basically disappears into thin air.
     
  5. Offline

    ryguy222

    I updated to 2.5 and I'm getting this error.

    It only occurs once the owner of the region puts a block down into their region. There aren't any pistons in the region, or near it, though there are pistons on the server, just not anywhere near regions.

    Code:
    [SIZE=12px][FONT=monospace][COLOR=rgb(24, 24, 24)][LIST=1][*]2011-07-11 13:15:51 [SEVERE] Could not pass event PLAYER_INTERACT to BananaRegion
    [*]java.lang.ClassCastException: org.bukkit.craftbukkit.block.CraftBlock cannot be cast to com.ubempire.region.block.Block
    [*]        at com.ubempire.region.events.eventHandler.onPlayerInteract(eventHandler.java:22)
    [*]        at org.bukkit.plugin.java.JavaPluginLoader$10.execute(JavaPluginLoader.java:307)
    [*]        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    [*]        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:321)
    [*]        at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:168)
    [*]        at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.java:210)
    [*]        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:567)
    [*]        at net.minecraft.server.Packet15Place.a(SourceFile:57)
    [*]        at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    [*]        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:84)
    [*]        at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    [*]        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
    [*]        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    [*]        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    [*]2011-07-11 13:15:51 [SEVERE] Could not pass event BLOCK_PLACE to BananaRegion
    [*]java.lang.ClassCastException: org.bukkit.craftbukkit.block.CraftBlock cannot be cast to com.ubempire.region.block.Block
    [*]        at com.ubempire.region.events.blockHandler.onBlockPlace(blockHandler.java:88)
    [*]        at org.bukkit.plugin.java.JavaPluginLoader$27.execute(JavaPluginLoader.java:427)
    [*]        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    [*]        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:321)
    [*]        at org.bukkit.craftbukkit.event.CraftEventFactory.callBlockPlaceEvent(CraftEventFactory.java:90)
    [*]        at org.bukkit.craftbukkit.event.CraftEventFactory.callBlockPlaceEvent(CraftEventFactory.java:74)
    [*]        at net.minecraft.server.ItemBlock.a(ItemBlock.java:81)
    [*]        at net.minecraft.server.ItemStack.placeItem(ItemStack.java:56)
    [*]        at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.java:223)
    [*]        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:567)
    [*]        at net.minecraft.server.Packet15Place.a(SourceFile:57)
    [*]        at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    [*]        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:84)
    [*]        at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    [*]        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
    [*]        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    [*]        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    [*]2011-07-11 13:15:51 [SEVERE] Could not pass event BLOCK_PHYSICS to BananaRegion
    [/LIST][/COLOR][/FONT][/SIZE]
    
    
    You can find the entire log file here --> http://pastebin.com/dfMpGjFz

    Using default config as well
     
  6. there is a glitch i made a region and i startet building when i placed a block nothing happened as it should but when i destroy a block i get money

    This exactly same thing happened to me and i dont know what the hell happens

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 17, 2016
  7. Offline

    codename_B

    Hi, I have an idea what causes this and I'm going to look into it :)
     
  8. Offline

    CruzBishop

    Off the top of my head, it looks like CraftBlock is being changed to the wrong Block class (shouldn't it be org.bukkit.Block or net.minecraft.Block? Can't remember what it is)

    Sorry, just read your changelog. org.bukkit.craftbukkit.block.CraftBlock can't be cast to your custom Block class
     
  9. Offline

    codename_B

    Hi, thanks for your help - I'm instead creating a new instance of my custom Block class in order to check block.isprotected(); This seems to be working just fine ^^

    @EveryoneElse - redownload! Fixed!
     
  10. Offline

    ryguy222

    Ok well the errors are gone, however if I am the owner of a region whenever I place blocks or attempt to destroy them they dissapear. Even if I am the owner >_<

    It seems like if you become the owner or renter, nothing really changes except the text on the signs. Also no error messages in console during this.

    The blocks I try to place just end up back in my inventory.
     
  11. Offline

    codename_B

    Thanks for the report - I recently changed to an api for doing this - it looks like the api is (fairly) broken - expect an update within the next 1/2 hour.

    @ryguy222 - please redownload and tell me if that version works.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 17, 2016
  12. Offline

    ryguy222

    Getting a whole ton of errors now >_< the console is almost a blur it's goin so fast lol

    [SEVERE] Could not pass event BLOCK_PHYSICS to BananaRegion
    [SEVERE] Could not pass event PLAYER_INTERACT to BananaRegion
     
  13. Offline

    codename_B

    Bollocks :S

    @ryguy222 - thanks for the report - should be fixed now! (Redownload)

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 17, 2016
  14. Offline

    Wazeq

    So people will just basicually pay a price to no one and then they own the regin for a week? Why doesnt the rent goes to the player that actually rents it out?

    Region*

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 17, 2016
  15. Offline

    codename_B

    What's to stop a player claiming the entire map? This is for servers to have a way for players to use their in-game money to purchase complete piece of mind that there is 0% chance of their creations being griefed.
     
  16. Offline

    Wazeq

    hmmm, didnt thought of that xD, nice then i know, awesome plugin, plz hurry with permissions^^
     
  17. Offline

    Kalais

    @codename_B
    I started putting signs on my hundreds of plots and started getting this message spamming.

    Code:
    16:52:37 [INFO] 14 regions read.
    16:52:37 [SEVERE] java.lang.NullPointerException
    16:52:37 [SEVERE]       at org.yaml.snakeyaml.emitter.Emitter.expectNode(Emitter
    .java:399)
    16:52:37 [SEVERE]       at org.yaml.snakeyaml.emitter.Emitter.access$1600(Emitte
    r.java:64)
    16:52:37 [SEVERE]       at org.yaml.snakeyaml.emitter.Emitter$ExpectDocumentRoot
    .expect(Emitter.java:373)
    16:52:37 [SEVERE]       at org.yaml.snakeyaml.emitter.Emitter.emit(Emitter.java:
    216)
    16:52:37 [SEVERE]       at org.yaml.snakeyaml.serializer.Serializer.serializeNod
    e(Serializer.java:206)
    16:52:37 [SEVERE]       at org.yaml.snakeyaml.serializer.Serializer.serialize(Se
    rializer.java:114)
    16:52:37 [SEVERE]       at org.yaml.snakeyaml.representer.BaseRepresenter.repres
    ent(BaseRepresenter.java:68)
    16:52:37 [SEVERE]       at org.yaml.snakeyaml.Yaml.dumpAll(Yaml.java:221)
    16:52:37 [SEVERE]       at org.yaml.snakeyaml.Yaml.dump(Yaml.java:205)
    16:52:37 [SEVERE]       at org.bukkit.util.config.Configuration.save(Configurati
    on.java:158)
    16:52:37 [SEVERE]       at com.ubempire.region.tools.RegionReader.processRead(Re
    gionReader.java:170)
    16:52:37 [SEVERE]       at com.ubempire.region.tools.RegionReader.read(RegionRea
    der.java:54)
    16:52:37 [SEVERE]       at com.ubempire.region.Region.runTask(Region.java:58)
    16:52:37 [SEVERE]       at com.ubempire.region.Region$1.run(Region.java:206)
    16:52:37 [SEVERE]       at org.bukkit.craftbukkit.scheduler.CraftWorker.run(Craf
    tWorker.java:34)
    16:52:37 [SEVERE]       at java.lang.Thread.run(Unknown Source)
    >
     
  18. Offline

    codename_B

    Oh wierd that - let me look into it for you kay?
     
  19. Offline

    Kalais

    Thanks.
     
  20. Offline

    Holylon

    @codename_B Is it now possible that u can remove this annoying message every 50 seconds in the console? I really REALLY want to use your plugin, but thats kinda... annoying :D

    Another thing: You are working on permissions, right? So will it be possible that USER can make regions, for which they get the money if someone rents it? And, if possible, buy a price cause they "sell" land.. that were AWESOME!
     
  21. Offline

    codename_B

    @Holylon - have you downloaded the latest update? It should stop the console spam (ie only checks the sign list when new chunks are loaded/unloaded containing bananaregion signs OR signs are rented/unrented.

    Please redownload and see if this fixes your spam.

    As for a user being able to define AND buy an area of land - I have yet to figure out how to stop someone from just claiming a whole server :S
     
  22. Offline

    Holylon

    @codename_B Maybe that when someone claimes a region, he has to pay for this, for example 5 per block he claimed... like he buys this, and then he can rent it to others... u understand what i mean? And for that, it must be configurable how high the price per block is. And maybe (for permissions) grant admins the possibility to claim 4 free.

    For my problem: I got version 2.6, downloaded yesterday or so... and it didn't work. Even if I got no regions, it spams this:
    Code:
    13:29:31 [INFO] reading regions...
    13:29:31 [INFO] 0 regions read.
    13:29:31 [INFO] Saved: true
    
     
  23. Offline

    codename_B

    The thing is, region claiming is done 100% on the fly - there is no database. To support something like that, I'd have to switch to a database plugin. If you want configurable claimable by player regions, why not use worldguard? This is supposed to do something similar but without the database.

    Also, how often does it spam "reading regions..." ? It should only say it once.
     
  24. Offline

    Holylon

    Every 50 seconds, i get the same message... I don't use worldguard, because I must claim all regions if i do not want that everyone can do that, so if I leave it to the players, they can do something similar what is your problem... they could protect the whole world :S

    I like your plugin cause i search something for RENTING a region... there is nothing similar here :/

    Must there be a database for the thing that we can set the price for claiming a region before we can sell it to others? It would be nice for cities of other players, they can set there regions for which they can charge money... it would be wonderful *_*

    Or you do a second plugin like that, only with the advantage of a database... I think for both there are supporters, one side lightweight with no database, the other one more configurable with a database...

    Sorry 4 my english, I am german :)
     
  25. Offline

    Kalais

    A database would allow more customization. ;)
     
  26. Offline

    codename_B

    How about a fork of this plugin with the data storage changed from a hashmap to mysql then?
    It's not something I'm planning on doing, but I've made it easy to change :) just need to find someone who is good at Java->Mysql
     
  27. Offline

    Kalais

    H2 or Sqlite
     
  28. Offline

    codename_B

    Neither of which I know how to use.
     
  29. Ok so i downloaded your plugin which is in the description and when i open the .zip file their is no .jar so i cant put it in the plugins folder
     
  30. Offline

    codename_B

    http://tetragaming.com/codename_B/plugins/BananaRegion.jar
    There is no zip link in the description, there is only a jar link.
     
Thread Status:
Not open for further replies.

Share This Page