[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


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

    Wiki Links
    Wiki Home
    Installation Instructions

    Plugin Requirements
    • iCoLand v2.46 was tested against Craftbukkit build #740
    • iConomy 5.0
    • Permissions 2.7.2
    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


    Can use this plugin with EssentialEco?
  3. Offline


    thank you for implementing the claim-full-height feature that fast!!! :) It just works fine for me. I only have one small problem with destroying blocks (lightstone blocks) on unclaimed land. When I destroy such a block, it still drops one lightstone dust, which I can collect and then reappeares. I can do this as often as I want ;)
  4. Offline


    v2.19 bump
    - added bank/tax account for money to dump into

    i'm slightly durnk/intoxicated, so be careful with that one, minimal testing done ( old versions in the link in the OP, if u want to go back )
    in v2.19

    interesting, i'll take a look at it 2morrow

    what's essentialeco?? seeing as I havn't heard of it, I highly doubt it will work with it
  5. Offline


    Its a minimal economy plugin for users with Essentials. It comes as part of the Essentials Suite, but i also doubt it will work.

    Also Great plugin! I'll be doing some testing with this and if all goes well i'm replacing Towny with this. Too much fail and aids on towny's part (4 times the files have corrupted)
  6. Offline


    - 'icoland.nolimit' doesn't seem to work. Always get the limit error of 1000 blocks. Have multiply it with 128 to use it for full height? ;) ... until it gets fixed naturally :p

    Beside those small issues it's perfectly working! After a small test an idea came to my mind, about a simple expansion command.

    It's because when you're mining in your area you don't know where it ends. When you reach a border you could simply use the command "/icl expand [ID] [number of blocks]". It will then expand the are in each direction (N,O,S,W). This simply allows you to expand your realm, without joining different areas until you hit another area. The tax wil naturally rise and you have to pay for the new blocks+for the addons you have in your main area.

    - Easy to use
    - Areas remain cubloid
    - Easy to calculate the new price

    1. You are standing in Area1 and type "/icl expand 1 1" (expanding Area 1 by 1 block in each direction)
    2. Price calculation: Price for new blocks+addons you already own in Area 1 = Price for Area Expansion
    3. To buy it you could use "/icl buy land as always" or if it interferes with the buying of land "/icl buy expansion"
    = Area 1 is expanded by 1 and new tax rate gets calculated accordingly

    What would you say? ;)

    edit: Ah, I see Ash88 suggested sth. like that (/icl select outset 1 --- expands your selection cube range by 1 in all directions (n,e,s,w,u,d)) But we don't need up+down expansion with claim full-height ;)

    edit2: Ok, about the problem with the glowstone dust. It's because I'm using mcMMO and it's double drop chance for blocks is causing this.

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


    When I give a player the permissions stated, they are still not aloud to access the commands. Why?

    CB: 621
    MC: 1.4
    Runs on Command Line Linux
  8. Offline


    Then I would suggest making it hook into towny so it recognizes property bought by people in towny and is recognized by that plugin. Because this plugin is a great deal more specific, or so it seems, then Towny's buy/sell system(Which operates off of entire chunks. Which is just too much in my town, which has pre-existing infrastructure).

    It would be excellent if that could be a thing in the future!

    Also your download link is broken.
  9. Offline


    need more information.....

    I like the expansion idea, I just havn't gotten around to it. I think I also want to make a confirmation screen type thing. That way a player can agree to buying a land, or expanding a land, or selling a land, or buying/selling addons, before they hit the command.

    And yeah, I've been thinking a simple expansion/selection tool modifier should be easy enough to implement.

    Change the limit to a higher number?

    I purposely did not have the limits change meaning from 3 dimensional space to 2 dimensional space. When using full-height as default, just multiply all of your limits by 128 - those values still represent the 3-dimensional volume, not the 2-dimensional size. I did this because it keeps the code cleaner and easier and simpler, which is always preferable.

    sucks about the mcmmo part though too... I'm not sure what's the best way to handle this - maybe ask the mcmmo dev to look into not having events like that occur if they are getting cancelled earlier in the hook cycle. I believe you can check if an event has been cancelled and not perform your action ( or uncancel the event.... )

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

    reginald taylo

    ok when i tried to install it i did the jar and everything downloaded and when i tested it in the server it says its an unknown command. help?
  11. Offline


    is their a way to edit a purchased cuboid to add more people to it as owners? (ie so they can build)
  12. Offline


    yeah use /icl edit

    more information needed.....

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


    Just a suggestion... You should make there two options for building / destroying blocks outside of claimed territories. I mean, in the config.yml make it so that under Unclaimed-Land:
    Can-Destroy: true
    Can-Build: false
    That way, people can still collect items from unclaimed land. I think that would be a great addition to this already great mod!
  14. Offline


    when i do /reload, the H2 db lock aint released properly and it crashes the server.
    iCoLand is the only plugin i have that uses H2 db

  15. Offline


    hello i haven't sifted through all 8 pages but I just installed this on a test server I have. My goal with this mod is to make it so people have to pay for the land they want to modify to prevent wild expansions which result in territory collisions. Is it possible to prevent building AND block destruction/digging. Some people on my live server like to strip mine for diamonds and though this isn't a problem in theory it becomes a problem while they expand by hundreds of blocks in a single game session so after a couple days they have an entire region mined out and more times than not collides with other people's territory robbing them of any diamonds they could possibly mine. So again i hope to be able to use this mod to make it so you have to build up funds using other mods installed on the server then once wealthy enough buy a plot of land to mine out for additional funds but prevent people from mining out land without owning it. Hope this makes sense... Oh and I set all the unclaimed land options to false but when I test it as admin I can still place blocks where ever without purchasing... i have not plugged in nodes into permissions and i am apart of the admin group and in the past with other mods to test their functionality I didn't have to plug the nodes in to test. might this be the issue?
  16. Offline


    if ur in the admin group with * permissions, then you will have a lot of admin functionality that bypasses normal limits ( like permission checking, or having any cost associated with anything )

    please try to read through the wiki documentation and the /icl help <topics>
  17. Offline


    sry for second post, i don't even need to reload, i get this

    i'm running bukkit 670 and the neves iConomy (4.6.5 i think)
  18. Offline


    i have a total uncommon question / request... while this alows me for players to not edit the world, i came to the conclusion that i need a modification of this plugin:
    players can be stuck in holes which are 2 or more blocks deep. secondly they cant explore a cave. so my request would be another parameter:

    this would allow players to plant torches and ladders (only at not claimed area) which will be removed after a time. so they can get out of holes and explore caves.
  19. Offline


    updated the plugin, lots of fixes:
    * fixed console commands
    * fixed console commands
    * fix bad tax rates
    * added /icl select <landID>
    * added new perm "icoland.notax" - doesn't pay taxes
    * added better /icl info - for taxes ( shows next tax time ) - also for inactive ( shows time till purge )
    * added bank tax account that taxes/profit/money from sales/tax go into ( configurable )
    * added "active" flag to lands - for when a land can't pay it's taxes, it gets set inactive, so the user can still buy back their land before it expires completely ( configurable expire time )
    * implemented non-active lands don't have features enabled
    * added means to buy back inactive land
    * added inactive purging

    that is an interesting idea, I may look into that

    I found a connection leak ( I wasn't properly closing one ), and that may be the fix for this problem. I was able to ues /reload now without a problem

    Can you try iCoLand v2.23 ?
  20. Offline


    Thanks for the quick update
    I will test it out now
  21. Offline


    I updated and got it working, sorry for not including the error. I did the post fast and was wondering if you had a quick fix..which you did..updateing =/
  22. Offline


    Alright. Something's wrong with this plugin. It's not the second time it's caused something to go wrong with my server. The original version, worked for a long while. Then suddenly, started to cause lag so horrible my user's had 2 minute chat delay. I removed the .jar, it worked fine. I tried an update and that fixed the issue. Now there's a new one, i will copy paste what one of my members sent to me.

    "I caught wind of your mentioning issues with land ownership but I think, for lack of a better word, that things might have messed up more so than simply lag. Checking my list today, approximately five minutes ago (5.14pm, central) it seemed that my ICL list had cleared out all but four of my holdings.

    It cleared out the majority of my lands, including lands protected when it was originally introduced and replaced everything with simply one or two random ones."
  23. Offline


    I think I had a similar issue on my server. But, it's actually working as intended. Basically I think the problem you are facing is having high taxes/short tax interval, or a combo of the both. And as people aren't on the server 24/7 - their land is being deleted because they don't have enough money for taxes ( the plugin auto-sells the property to pay for the taxes ). I could probably diagnose if this is the issue if you could give me a couple ideas of your config: what is your tax rate set to, what is your tax interval set to, what is your price per block set to, what is the average size ( volume ) of the properties that disappeared, and what is the average amount of cash in a person's bank account on your server?

    On another note, in the latest version ( v2.23 ) I've fixed some of these issues ( if these are the issues are having ), by first of all introducing a new permission node "icoland.notax" - this prevents a player being charged taxes on his land ( possibly more admin/mod perm ). The 2nd thing I've done is introduce an "active" state to a Land. And basically what this means, is when a player doesn't have enough money to pay for the tax, their Land becomes inactive. When a land is inactive, the cuboid/selection still remains but none of the protections/addons work. There is a configurable ( in config.yml ) amount of time a land can be inactive before it gets deleted completely. And when inactive the Land will be marked as such in /icl list and in /icl info. You can buy back an inactive land by just paying the tax on it - which re-activates the land.
  24. Offline


    thank you for the response i figured out what was wrong, now to get a bit more information cause i think i am now experiencing what you mentioned here where if i am in admin group with permissions '*' it wont have a price check/cost for a land mass.... is there a way to get around this because i would like to be able to play with my comutniy and have to earn plots by participating in events for coin. If i were to add the individual commands for your mod to the permissions for admin while having '*' will it then apply cost to the group and or will it break permissions for admin grp?

    bukkit 670
    permissions v2.6
    iConomy 4.6.5
  25. Offline


    update to v2.24
    -fixed a bug/issue with when land was being sold/marked inactive versus money exchanging when being marked inactive.

    You need to make sure you are selecting the proper y-plane. If you select 2 corners that are on the same y-level, you will need to be in that y-level to have the announce work. What is a better idea is to just select 2 corners on different y planes, to make a "cuboid". This is likely your problem.

    I havn't thought of a good way to implement this. As for right now, being an admin ( having '*' permissions ) means you will have icoland.notax and icoland.nocost, which means you wont be paying for stuff. I still need to think of a good way to do this. sorry
  26. Offline


    Thank you very much for your quick response, i will copy/paste my config below. That sounds like it could be the issue alright!

        All-Land-Full-Height: false
        noboom: true
        noenter: true
        heal: true
        nospawn: true
        announce: true
        noflow: true
        nofire: false
        Heal-Interval: 3
        Mob-Removal-Interval: 2
        Tax-Interval-Minutes: 0
        Announce-Check-Interval-ms: 1000
        Max-Land-Volume: 1271307747
        Max-Lands-Claimable: 1055
        Min-Land-Volume: 10
        Max-Total-Blocks-Claimable: 1415620963
        Can-Boom: true
        Can-Build: true
        Can-Burn: true
        iConomy-Tax-Account-Name: iCoLand
        TaxRate: 5.0
        SalesTaxPercent: 20.0
        debugSQL: false
        debug: false
        noboom: 0.0055
        noenter: 0.0055
        raw: 0.0035
        heal: 0.0055
        nospawn: 0.0055
        announce: 0.0055
        noflow: 0.0055
        nofire: 0.0055
  27. Offline


    hrm... when you have the tax-interval set to 0, it shouldn't run any of the tax code at all.... interesting... what version were you using when you were having these problems?

    I've actually found the way to do this. You use a "negative" permission node in your config file.

    So let's say for your Admins group, you want them to have '*' permissions, except for the two cost related iCoLand perm nodes ( nocost/notax ). Then you would do something like this:
            default: false
                prefix: ''
                suffix: ''
                build: true
                - '*'
                - '-icoland.notax'
                - '-icoland.nocost'
    or if you want it for most admins to have the perm, but specifically a few who don't, you can do it on the user level as well:
            group: Admins
                - '-icoland.notax'
                - '-icoland.nocost'
    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: May 13, 2016
  28. Offline


    I don't think it's the latest, but definitely last 2 or 3 versions. I had to delete the jar since it crashed my server again today. Since i removed it there has been no lag or crashes, do you think the new version would solve this problem?

  29. Offline


    it's possible, I'd be interested in knowing, I havn't had any issues on my server at all. Even when I run this thing from my netbook ( an Atom proc ), I don't have any issues.... What kind of specs is your server running? Are there any errors when it crashes? After how long was it running.

    I fixed a leaking connection issue in one of the last versions, so that may be the problem. But on my server, I ran with that version for a day or so, without any issues, so I'm not completely sure. Give it a try? This plugin is a bit new, and hopefully these are just some kinks that get worked out.
  30. Offline


    It's hosted with gonetworks 4gb ram, 100mbit connection port, cpu speed should be fine, everything seems great spec wise with them. I will try the new version tomorrow more than likely when i am home and can make sure nothing goes wrong. It's a great plugin other than the problems i described and i hope you continue to develope it. I will let you know if i get any issues with the new version tomorrow :)
  31. Offline


    don't you mean 2.26 ? or should i dl the older version?

    also while i'm at it,
    what should i set to what value, if i want to get full refund when selling land/addons?
    and i'm looking forward to MySQL support ;)

Share This Page