[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

    Nielscorn

    Where do i do this quick fix? can't i do it in the config or something? i have A LOT of people that have bought land and basicly my server logs are overflowing with those errors... Like everyones does it so it fucking sucks :/...
    i can't go around all the lands to do it and basicly i can't see what lands there are with the /icl command unless i'm on the land itself... can't you make something like /icl list? see all the lands and then like /icl *numberland* info? with all the info you would get like you do /icl info on the land itself?

    So yeah question: how do i easily fix all the bad entries without having to go across all the lands trying to find all the spots with the bad entries :/?
     
  3. Offline

    par0noid

    I don't know why but icoLand seems to crash my server.

    No player can log in after 12-18 hours uptime.

    ServerLog:

    Code:
    2011-04-17 05:21:52 [SEVERE] java.lang.NullPointerException
    2011-04-17 05:21:52 [SEVERE]     at org.bukkit.craftbukkit.inventory.CraftItemStack.getMaxStackSize(CraftItemStack.java:124)
    2011-04-17 05:21:52 [SEVERE]     at org.bukkit.craftbukkit.inventory.CraftInventory.firstPartial(CraftInventory.java:207)
    2011-04-17 05:21:52 [SEVERE]     at org.bukkit.craftbukkit.inventory.CraftInventory.addItem(CraftInventory.java:227)
    2011-04-17 05:21:52 [SEVERE]     at me.slaps.iCoLand.TaskTempBlockRemoval.run(TaskTempBlockRemoval.java:27)
    2011-04-17 05:21:52 [SEVERE]     at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:122)
    2011-04-17 05:21:52 [SEVERE]     at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:356)
    2011-04-17 05:21:52 [SEVERE]     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
    2011-04-17 05:21:52 [SEVERE]     at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    2011-04-17 05:21:52 [SEVERE] Unexpected exception
    java.lang.NullPointerException
        at org.bukkit.craftbukkit.inventory.CraftItemStack.getMaxStackSize(CraftItemStack.java:124)
        at org.bukkit.craftbukkit.inventory.CraftInventory.firstPartial(CraftInventory.java:207)
        at org.bukkit.craftbukkit.inventory.CraftInventory.addItem(CraftInventory.java:227)
        at me.slaps.iCoLand.TaskTempBlockRemoval.run(TaskTempBlockRemoval.java:27)
        at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:122)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:356)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    2011-04-17 05:22:41 [INFO] Read timed out
    2011-04-17 05:23:09 [INFO] Connection reset
    2011-04-17 05:23:59 [INFO] Read timed out
    2011-04-17 05:24:47 [INFO] Read timed out
    2011-04-17 05:25:44 [INFO] Read timed out
    2011-04-17 05:26:05 [INFO] Read timed out
    2011-04-17 05:26:18 [INFO] Read timed out
    2011-04-17 05:26:40 [INFO] Read timed out
    I'm not sure if this is a icoland thing but theres one exception in iCoLand.
    This appears every time when no one can log in.

    -par0noid
     
  4. Offline

    Thyraxxx

    yeahI have the same issue, everytime I reload my server I get an error and my server crash because of this plugin....
     
  5. Offline

    BlackSnow

    Same thing here.
    Also, quick question. I have the addon noenter on my land, and i cant figure out the cmd to allow specific users on my land (note:enter-but not build or destroy).
     
  6. Offline

    par0noid

    announce is also not working for me, 4 crashes within 10 hours .... players on my server are complaning like hell :D

    checked code in line 27, crash occures when a player places a block on a icoLand protected area, line 27 should give the item back to the player:

    Code:
    playerInv.addItem(new ItemStack(target.getTypeId(), 1));
    Don't know why it's not working.
    I'll try to load the sourcefiles and disable this to bridge the time to a icoland update

    This solved my problem, opened my config and changed this:

    Code:
    Claimed-Land:
        Default-No-Spawn-Mobs: Spider,Zombie,Skeleton,Creeper,Slime,Ghast
        Temp-Items-Delay: 300
        Temp-Items-Allowed: 65,50
    to:


    Code:
    Claimed-Land:
        Default-No-Spawn-Mobs:
        Temp-Items-Delay: 300
        Temp-Items-Allowed:
    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 13, 2016
  7. Offline

    Magik

    updated to v2.35
    - fixed some /reload crash bugs
    - fixed temporary item placement crashes
    - added fixperms command

    i don't plan on supporting BOSEconomy... the plugin IS called iCoLand as in iConomyLand

    I've added a way to fix it in the latest version, I don't know how many lands you have, so this may lag out the server when you do it, but type: /icl fixperms ( it needs to icoland.admin.fixperms permission )

    fixed this in the latest version, basically what was happening was it was trying to add an item back to the players inventory, when that item had already been destroyed in the world ( it was trying to add an ItemID# of 0 )

    NoEnter perms are tied with build/destroy perms, I could probably look into seperating this.... but if every addon has configuration... where do I put all of this info? In /icl info? That's already getting kind of cluttered....

    What I would probably do, would have some sort of NoEnter zone just at the entrance to the protected build/destroy zone. That way, no one not on the perm list of the build/destroy zone can make a new entrance, and anyone not in the perm list on the noenter zone will not be able to get past the entrance.

    For example, making a 5x5x5 cube bank room for yourself. I would make a 5x5x5 zone with only 1 doorway/entrance. This zone would have no addons, just the regular zone with build/destroy perms, I only put myself on the perm list. Then at the entrance, create a zone ( at least the min-size - might be helpful to lower this value ), and buy the NoEnter perm there. Now you can put a list in this zone of all the people you want to be able to access, but not build/destroy in the bank zone. Make sense?
     
  8. Offline

    Matt Johnstone

    Ok ill look around to see if there is one, thanks for replying!
     
  9. Offline

    BlackSnow

    Thanks for the reply. I got it working just like you said, i didnt know how to edit the land's perms for a specific person to enter. I thought that /icl edit LANDID perms USER:f/t was only for building, not the addons.
    This solved our issue.
    The players on my server and I THANK YOU ! Awesome plugin, been using it since the org.name.
    Keep up the good work !
     
  10. Offline

    beatcomet

    when I buy a land, the amount of money I got stays the same...
    even when im trying to do it when im logging in as operator
     
  11. Offline

    par0noid

    thats what i thought :) thanks ♥ :)
     
  12. Offline

    Thyraxxx

    well I updated to the latest version , with bukkit 677 and still have this error after every reload

    18:20:20 [WARNING] Can't keep up! Did the system time change, or is the server overloaded?
    18:20:20 [SEVERE] java.lang.NullPointerException
    18:20:20 [SEVERE] at me.slaps.iCoLand.TaskLandMobKill.run(TaskLandMobKill.java:41)
    18:20:20 [SEVERE] at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:122)
    18:20:20 [SEVERE] at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:356)
    18:20:20 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
    18:20:20 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    18:20:20 [SEVERE] Unexpected exception
    java.lang.NullPointerException
    at me.slaps.iCoLand.TaskLandMobKill.run(TaskLandMobKill.java:41)
    at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:122)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:356)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)

    its kinda frustating cus it crash everytime...
     
  13. Offline

    Magik

    quite odd, I can't replicate this myself on any of my test machines.... can you give me the exact steps I need to replicate this on my end?
     
  14. Offline

    Thyraxxx

    whar do you mean by exact step ? its hapening maybe 75% of the time when I reload my server. It seems to have trouble in the console when I edit perms for a bough land also, but cant find it in the console
     
  15. Offline

    YukonAppleGeek

    Suggestion: You should add a option in NoEnter to only allow/block groups in permissions and maybe even only allowed people too. For example only builders can go into the supply room. It could be command or a node like
    icoland.land.allow.(land id) or icoland.land.deny.(land id) node might be better unless it is to hard :p .
     
  16. Offline

    blindsarcasm

    No errors, but the world looks like im lagging on my own server, which is hosted on my computer designed for hosting which I'm not playing on. On 677
     
  17. Offline

    ruben

    Can you please tell me why people can't open doors? It should be like this, but, I made a public spawn, no one can build there, but I want them to be able to open a door...
     
  18. Offline

    LanToaster

    I have an Odd Error since version 2.34.

    It almost everytime Crashes my Server with an Error. I Updated now to version 2.36 and Bukkit 284, and now iam Getting this Error:
    2011-04-19 17:57:06 [SEVERE] java.sql.SQLException: Login timeout 2011-04-19 17:57:06 [SEVERE] at org.h2.jdbcx.JdbcConnectionPool.getConnection(JdbcConnectionPool.java:205) 2011-04-19 17:57:06 [SEVERE] at me.slaps.iCoLand.LandDBH2.getConnection(LandDBH2.java:114) 2011-04-19 17:57:06 [SEVERE] at me.slaps.iCoLand.LandDBH2.getLandIds(LandDBH2.java:632) 2011-04-19 17:57:06 [SEVERE] at me.slaps.iCoLand.LandManager.getLandIds(LandManager.java:93) 2011-04-19 17:57:06 [SEVERE] at me.slaps.iCoLand.TaskLandMobKill.run(TaskLandMobKill.java:41) 2011-04-19 17:57:06 [SEVERE] at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:128) 2011-04-19 17:57:06 [SEVERE] at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:356) 2011-04-19 17:57:06 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283) 2011-04-19 17:57:06 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(SourceFile:375) 2011-04-19 17:57:06 [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:356) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283) at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)

    I tried to Rollback to an earlier version. But with those Get another Error:

    2011-04-19 17:59:12 [SEVERE] org.h2.jdbc.JdbcSQLException: Column "DATETAXED" not found; SQL statement: SELECT id, owner, dateCreated, dateTaxed, name, perms, addons, minX, minY, minZ, maxX, maxY, maxZ, world, active FROM lands WHERE id = ? [42122-153] 2011-04-19 17:59:12 [SEVERE] at org.h2.message.DbException.getJdbcSQLException(DbException.java:327) 2011-04-19 17:59:12 [SEVERE] at org.h2.message.DbException.get(DbException.java:167) 2011-04-19 17:59:12 [SEVERE] at org.h2.message.DbException.get(DbException.java:144) 2011-04-19 17:59:12 [SEVERE] at org.h2.expression.ExpressionColumn.optimize(ExpressionColumn.java:134) 2011-04-19 17:59:12 [SEVERE] at org.h2.command.dml.Select.prepare(Select.java:791) 2011-04-19 17:59:12 [SEVERE] at org.h2.command.Parser.prepare(Parser.java:202) 2011-04-19 17:59:12 [SEVERE] at org.h2.command.Parser.prepareCommand(Parser.java:214) 2011-04-19 17:59:12 [SEVERE] at org.h2.engine.Session.prepareLocal(Session.java:426) 2011-04-19 17:59:12 [SEVERE] at org.h2.engine.Session.prepareCommand(Session.java:374) 2011-04-19 17:59:12 [SEVERE] at org.h2.jdbc.JdbcConnection.prepareCommand(JdbcConnection.java:1100) 2011-04-19 17:59:12 [SEVERE] at org.h2.jdbc.JdbcPreparedStatement.<init>(JdbcPreparedStatement.java:71) 2011-04-19 17:59:12 [SEVERE] at org.h2.jdbc.JdbcConnection.prepareStatement(JdbcConnection.java:243) 2011-04-19 17:59:12 [SEVERE] at me.slaps.iCoLand.LandDBH2.getLandById(LandDBH2.java:713) 2011-04-19 17:59:12 [SEVERE] at me.slaps.iCoLand.LandManager.getLandById(LandManager.java:106) 2011-04-19 17:59:12 [SEVERE] at me.slaps.iCoLand.MobKillTask.run(MobKillTask.java:20) 2011-04-19 17:59:12 [SEVERE] at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:128) 2011-04-19 17:59:12 [SEVERE] at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:356) 2011-04-19 17:59:12 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283) 2011-04-19 17:59:12 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(SourceFile:375) 2011-04-19 17:59:12 [WARNING] Task of 'iCoLand' generated an exception java.lang.NullPointerException at me.slaps.iCoLand.LandDBH2.getLandById(LandDBH2.java:725) at me.slaps.iCoLand.LandManager.getLandById(LandManager.java:106) at me.slaps.iCoLand.MobKillTask.run(MobKillTask.java:20) at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:128) at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:356) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283) at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)

    Hope you can Help me there.
     
  19. Offline

    Thyraxxx

    hey, just had a new error while reloading

    18:04:28 [WARNING] Task of 'iCoLand' generated an exception
    java.lang.NullPointerException
    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:356)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    18:04:28 [WARNING] Task of 'iCoLand' generated an exception
    java.lang.NullPointerException
    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:356)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    using build 684, not sure if this is the reason tho
     
  20. Offline

    Magik

    ## 2.38-2.35
    * possible NPE fix for mob kill task during /reload
    * added /icl adminlist ( icoland.admin.adminlist perm )
    * fixed a /icl select fullheight intersection bug
    * added a perm fixing command /icl fixperms ( icoland.admin.fixperms perm )
    * fixed temporary item task removal NPE bug when trying to remove an item that was already removed
    * fixed tasks not being cancelled on /reload


    can you guys try v2.38?

    also, sorry, but earlier versions of the plugin are incompatible due to table structure changes
     
  21. Offline

    tjdrago

    does this require permissions?
     
  22. Offline

    LanToaster

    Just Updated and works for now.

    Thanks. :)
     
  23. Offline

    beebsproduction

    hi, i have a problem.
    i changed the configuration file: 0.10 per block, noboom=5, nofire=5.
    I reloaded the plugin, the cost per block is 0.10, but the noboom and the nofire didn't change... Can you help me ?

    (Sorry for my script, i'm french).
     
  24. Offline

    Blazednlovinit

    great plugin, i have a couple of questions. are the protectinos pure cuboids? like can i protect an area and then protect a bigger area around it to allow for different permissions in one part of the large protected area? or better yet, a way to sell land you own by selecting two points within a protected area and selling that and creating the same basic result.
     
  25. Offline

    Magik

    did you check the config again after? Did it reset there? Can you try setting noboom and nofire to "5.0" instead of "5" ?
    Also, what version are you using?
    And are there any errors in the console when you load the plugin?


    not right now no... I do plan ( don't expect this soon though... ) to implement sub-zoning and selling of zones too, I just don't have the time to do it now - work for the next 1.5 months is going to be busy, lots of tradeshows to prepare for and attend, and I am also working on a web development job that is going to be due in about 3 weeks... So yeah... you know priorities and all, I gotta pay the bills first, this is just a hobby
     
  26. Offline

    Blazednlovinit

    no worries mate, looking forward to implimentations like these :)
     
  27. Offline

    Androx

    This dont work for me, iam OP and get the message "No access for that..."
    I have:
    - iConomy 4.6.5
    - Permissions 2.7
    - Craftbukkit build #709
     
  28. Offline

    beebsproduction

    No the config didn't reset, because the price per normal block had been changed do 0.1 like i wanted... i use the latest version.
     
  29. Offline

    Tealk

    Hi its possible that a IConomy accound become the money?
     
  30. Offline

    Magik

    the plugin doesn't care if you are op, it requires the permissions nodes listed int he original post

    i mean did you check the config file for the OTHER addons ( noboom and whatever else u changed ) - and did they go back to the default values?

    And you didn't answer me if you changed them to "5.0" instead of "5" if that fixes it..... I'm almost sure any # without a decimal point will break it, so use 5.0 instead of 5

    also you did not answer the question of what version you are using - I have not made a version called "latest", I am asking you for the version #, not "latest", give me a #.....

    it already does this, check the config under Tax-Settings, iConomy-Tax-Account-Name
     
  31. Offline

    Tealk

    oh ok thanks
     

Share This Page