[INACTIVE][SEC/ECON] iCoLand v2.46 - buy/protect land with iConomy [740]

Discussion in 'Inactive/Unsupported Plugins' started by Magik, Mar 25, 2011.

  1. Offline

    Magik

    iCoLand v2.46
    Download/Source Links
    GitHub Source
    iColand v2.46 Jar
    older versions

    Wiki Links
    Wiki Home
    Installation Instructions
    Commands
    Addons
    Permissions
    Changelog

    Plugin Requirements
    • iCoLand v2.46 was tested against Craftbukkit build #740
    • iConomy 5.0
    • Permissions 2.7.2
    Intro
    So I wanted a plugin on my server that allows for self-service protection. But I didn't want to make these areas infinitely creatable, and I hate the idea of admins/mods having to zone out areas for people. So that's where the birth of this idea came from. This mod allows for self-service protection areas, and they are limited by the fact that they must "buy" these areas with iConomy currency. This will greatly reduce the amount of griefing issues I will have to deal with on my server as I will start telling people that this is the only valid form of protection and griefing is a fact of life that is unavoidable if you don't protect your land.

    iCoLand allows you to buy/sell areas of land ( cuboids ) for self-service protection. You select areas of land using the "/icl select" tool, then you can buy the land with "/icl buy land". This makes the land protected so no others can place or destroy blocks in there. There will be addons you can buy that will add extra features to the land you've bought. Such as announcing the zone name when you enter or leave it, having a location heal a player over time, blocking people from entering the zone completely.

    The basic premise of the plugin is that each block in the world is worth some default value (configurable). In the future, there will be the ability to make areas of land worth more. Probably a center point that is highest price modification, with a radius of effect that drops down to 0 at the edge of the circle. Addons also are a per-block pricing scheme.

    Updates and more to come, keep posted.

    Much thanks goes to Nijikokun for the great iConomy, as well as some helper functions I may have stole of his through HaloInverse's DynamicMarket plugin. Thanks to you too Halo! And thanks to TheYeti for maintaining Permissions until Bukkit solves that can of worms. As well as the Bukkti devs for making all of this possible. Also to TomyLobo for his OfflinePlayer class ( to access Permission nodes of offline players ).
     
  2. Offline

    NateBody

    dunno if this was already reported ... but it seems with a NoBoom addon ... if u build directly on the border of your purchased land ... a creeper may still blow up your blocks/walls :(
     
  3. Offline

    Magik

    yeah I've seen this happen before, let me see what I can do
     
    NateBody likes this.
  4. Offline

    Thyraxxx

    using build 714 and permission 2.7

    12:57:20 [SEVERE] Could not load 'plugins/iCoLand.jar' in folder 'plugins': Permissions
    org.bukkit.plugin.UnknownDependencyException: Permissions
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:123)
    at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:160)
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:108)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:85)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:217)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:204)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:144)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:259)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
     
  5. Offline

    Magik

    updated to v2.39
    -added better explosion prevention when TNT/creeper exploded outside of a zone, but affected blocks in the zone
    -I've tested against #714, and it works, but it seems thyraxxx here may be having issues?

    that's quite odd, I've been developing against 714 right now, and I don't have any issues like that? Can you try v2.39?
     
  6. Offline

    Thyraxxx

    nvm every thing is fine with 240
     
  7. Offline

    beebsproduction

    ok i found the problem, with the v2.40.
    The prices are "multiplied" by 42 ingame. exemple: if in config i write noboom: 1000.0; ingame it will be 42000. if i write in the config file nofire: 10; it will be 420 ingame :)
    Can you help me ?
     
  8. Offline

    casso

    feature request: Can you make an option to block the placement of torches in unclaimed land (but still allow building if turned on)? I use handheld torches for exploring - it would keep the landscape clean and give more incentive to own you your turf.
    Good idea? :)
     
  9. Offline

    NateBody

    It's working as intended now, Great Job!!!!
     
  10. Offline

    uspata

    Do you have any ETA on the MySQL support?
    I had to stop using the plugin since I don't know how to manipulate postgresql files.
     
  11. Offline

    Magik

    it's an H2 file, but I can look into it, it shouldn't be that hard to implement it.
    Was by chance the volume of the land 42?
    I could do that yeah, let me think of a way to to implement it
     
  12. Offline

    beebsproduction

    i did a test, the noboom is 1000.0 in config file, and in game the noboom cost with the land id 3 is 30000; with land id 4 is 9000; with land id 5 is 6000.
    Can you explain that :eek: ?
     
  13. Offline

    uspata

    If you need a tester for MySQL i am more than happy to help you :)
     
  14. Offline

    Ratchet

    how compatible is this with WorldGuard? for example if I have a worldguard region over an entire city, but I want players to be able to buy plots in the city and build, will this work with it or?
     
  15. Offline

    Tealk

    can you explain your config file please?
    for example what does this mean?
    Delete-Unpaid-Zone-Minutes: 1440
    TaxRate: 5.0

    do you have to pay a certain amount every timeintervall, so that it wont be deleted

    //Edit
    would it also be possible to pay only for the surface of an area but still get the protection for the hole volume (maybe from the clouds to the void or a set numer of blocks up and down).
    eg if i buy a 4x4x10 volume but only pay the 4x4 part
     
  16. Offline

    NateBody

    Hey just wondering about the permission "icoland.misc.canbuild" only when Prevent-Build-Without-Perm: true in the config)

    Under the Unclaimed-Land category it says "Can-Build: false" in the config but i still cant build even with this permission...what i do wrong??

    EDIT: I figured it out. The correct permission is in fact "icoland.canbuild" oops!

    EDIT 2: Can you implement a configuration/permission that determines the amount of purchasable/claimable land per group? Also ... do taxes get paid by themselves? Is there a way to manually pay them?

    Thanks!
     
  17. Offline

    solid

    I think it would be nice, if admins can make custom messages, that players becomes from this plugin. example "This Land is buyed, you can't build/enter/fire etc." instead "You can't do this"
     
  18. Offline

    Damien711

    Im running build 714 and not working for me the /icl commands seem to not display anything does towny or other plugins contradict it?
     
  19. Offline

    Taverne

    Hey, i keep getting this error when i try to import the old lands.yml into iCoLand using the "/icl importdb" command (tried ingame and from console). :S

    Show Spoiler

    19:24:24 [WARNING] [iCoLand] Found 31 lands to protect ( loaded from file )
    19:24:24 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'icl'
    in plugin iCoLand vv2.40
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:85
    )
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:2
    55)
    at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.
    java:675)
    at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:638)

    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:632)
    at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:32)
    at net.minecraft.server.NetworkManager.a(NetworkManager.java:195)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:74)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:370)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    Caused by: java.lang.IllegalArgumentException: null string
    at java.sql.Timestamp.valueOf(Unknown Source)
    at me.slaps.iCoLand.LandDBH2.importDB(LandDBH2.java:1175)
    at me.slaps.iCoLand.LandManager.importDB(LandManager.java:196)
    at me.slaps.iCoLand.iCoLandCommandListener.onCommand(iCoLandCommandListe
    ner.java:318)
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
    ... 12 more


    Craftbukkit Version 733; iCoLand 2,40 an got the h2.jar in the /lib folder... Setting and buying new lands works but, i can't import the old areas :S
     
  20. Offline

    arctanis

    This mod keeps getting better and better! Thank you again for taking the time to develop this mod magik! With your addition of temp items in owned lands I was wondering if it could be something you could deploy for unowned land. I have people on the server that keep getting stuck because I've set no build no break no boom on unowned land and it would be unbelievably helpful if they could use temp items like ladders and the like to go explore and see if they like a land mass because it has a cave system or the like. Would it be possible to add this to the mod. Beyond that the things on your to do list would be awesome as well but the mod as is is great, with the maybe minor tweak to add temp items in unowned would be sweet!
    Thank you again for all your hard work and perhaps some donation info would be cool too ;) if your into that kinda thing. I must say that I have talked with mod devs before and you have always been very responsive and positive! GREAT JOB!

    With the tax rate set owners must pay to keep their land. If owner hasn't paid for the land by the 1440 mins it will be removed from their possession. If you don't want to have people pay taxes or an fee to keep their land then you can set the tax to 0.0 and they will still get a message saying that taxes came due BUT it wont tax them so they don't have to pay anything. They will get taxed even if they aren't on so if they go on vacation or what have you they can come back to not owning their land depending on how much they had in their bank account.

    You have to pay per block in the land id. So if your land selected has 20 blocks then you will pay 20 * 1000.0 = 20,000.

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

    Ross Gosling

    It says " no access for that..." when ever i command /icl select so i cant get anything to work, please help =P
     
  22. Offline

    beebsproduction

    Thanks a lot !!!!!!!!!!!! i <3 u !!!!!!
     
  23. Offline

    arctanis

    you need to set up permissions. use the node found in the wiki. use the link at the top of the page to find the wiki. You will also need to make sure you have permissions installed or else I think only admin will be able to do anything.
     
  24. Offline

    Ross Gosling

    I've already fixed it but thanks away
     
  25. Offline

    Coolred303

    Everyone if this updates without iconomy we could still use it. All you need is EssentialsEco (now comes with Essentials.jar) and FayConomy which makes it compatible to use iconomy addon plugins with EssentialsEco. So please update this magik. The FayConomy says it is a mock of the iConomy api. He also mentioned that the main plugins is iConomy so he wont get in trouble for doing this. Please update!! Thanks :D
     
  26. Offline

    Aeron

    Don't want to go through all the post, but I wanted to ask, weather players can buy land anywhere in the map or admins can set up lots of lands, where players can buy, everywhere else players cant buy land, if admin hasn't specified another spot with land for sale? (Referring to this topic's 2nd post from me: http://forums.bukkit.org/threads/land-for-sale.2049/#post-24119 )

    Doesn't matter weather players need to click on a sign (though that's a good idea/suggestion), all I am interested, is in the fact, that players can't roam around all around the map buying plots randomly throughout the whole map, but only on admin specified places.
     
    NateBody likes this.
  27. Offline

    arctanis

    Hey magik I think i found a bug. I'm running CB733 and icoland v2.40. My people noticed their livestock weren't spawning after I updated to 2.40 (they weren't spawning prior either but that was to be expected prior to the default nospawn list.) I started testing the mod on my test server and to make sure nothing from a previous version of icoland was to blame I replaced the older .jar as well as deleted the icoland folder with the config and DBs. I then let the server populate the folder again and checked the config to make sure it showed the default no spawn list and that it did not include wolves. When I purchased a land mass filled with farm animals it left them on the land after buying the land mass and then the nospawn addon. I then tested to see if it would wipe out wolves... found a pack of the furry buggers and bought the land they were sitting on and then added the nospawn.... POOF! suckers were gone :'( R.I.P. pups. It would appear nospawn is killing off the dogs.... It would also appear if you keep your old DBs prior to the no spawn default list it will still kill all mobs. Or maybe I'm just not doing something right when updating the .jar? I can deal with not being able to keep the old DBs altho it is a bummer. I would however hope the dogs can somehow be spared from the nospawn removal unless specifically added to the nospawn list.
     
  28. Offline

    iBstoneyDave

    Getting this error spammed in console, and it boots everyone out of the server and they can't log back in:
    Code:
    2011-04-29 12:09:2512:09:25 [SEVERE] java.sql.SQLException: Login timeout
    
    2011-04-29 12:09:25 [SEVERE] java.sql.SQLException: Login timeout
    2011-04-29 12:09:25 [SEVERE]     at org.h2.jdbcx.JdbcConnectionPool.getConnection(JdbcConnectionPool.java:205)
    2011-04-29 12:09:25 [SEVERE]     at me.slaps.iCoLand.LandDBH2.getConnection(LandDBH2.java:114)
    2011-04-29 12:09:25 [SEVERE]     at me.slaps.iCoLand.LandDBH2.getLandIds(LandDBH2.java:632)
    2011-04-29 12:09:25 [SEVERE]     at me.slaps.iCoLand.LandManager.getLandIds(LandManager.java:93)
    2011-04-29 12:09:25 [SEVERE]     at me.slaps.iCoLand.TaskLandMobKill.run(TaskLandMobKill.java:41)
    2011-04-29 12:09:25 [SEVERE]     at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:128)
    2011-04-29 12:09:25 [SEVERE]     at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:358)
    2011-04-29 12:09:25 [SEVERE]     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
    2011-04-29 12:09:25 [SEVERE]     at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    2011-04-29 12:09:25 [WARNING] Task of 'iCoLand' generated an exception
    java.lang.NullPointerException
        at me.slaps.iCoLand.LandDBH2.getLandIds(LandDBH2.java:633)
        at me.slaps.iCoLand.LandManager.getLandIds(LandManager.java:93)
        at me.slaps.iCoLand.TaskLandMobKill.run(TaskLandMobKill.java:41)
        at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:128)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:358)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
     
  29. Offline

    mze9412

    How do I configure how much a block costs? Can't find it in the config :(
     
  30. Offline

    beebsproduction

    Price-Per-Block:
    noboom: 50.0
    noenter: 100.0
    raw: 0.04
    heal: 0.03
    nospawn: 0.03
    announce: 2.0
    nopvp: 10.0
    noflow: 10.0
    nofire: 10.0

    i don't understand why, but the announce addon bug, when i change his price in the config, all announce don't appear anymore, and that's the same when i buy 1 new... :eek:

    I found the problem, this is when i turn an addon into "false" (i don't know which one). by the way, this feature doesn't work, if I turn noboom to "false" in the config file, it doesn't disapear ingame :)

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

    mze9412

Share This Page