[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

    Jear

    hey, Running:
    CB:602
    iConomy: 4.63
    iconomyLand: 1.06

    it throws this error:
    Code:
    27 [SEVERE] null loading iConomyLand vv1.06 (Is it up to date?)
    java.lang.NullPointerException
            at me.slaps.iConomyLand.iConomyLandPluginListener.tryEnablePlugins(iCono
    myLandPluginListener.java:60)
            at me.slaps.iConomyLand.iConomyLand.onEnable(iConomyLand.java:99)
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:118)
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader
    .java:511)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManage
    r.java:216)
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:93)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:71)
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:204)
            at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:191)
            at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:131)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:246)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    
    suggestions?

    EDIT- I found an earlier error associated with a misspelling in permissions. it initializes properly now
     
  3. Offline

    Magik

    what version of Permissions?

    show me your permission file

    I believe I know the solution to this problem and when I have time I will update it to fix it.

    Basically the jist of it, is that different countries/locales use a comma "," to seperate the decimal portion from the regular. When I use DecimalFormat's format() function it formats a string that represents that value in your locale's distinction. In this case a "," for you. This causes problems with Double's valueOf funciton - as it expects a decimal point, not a comma there and throws the error.

    Like I said I have a bugfix, I just havn't implemented it yet. Basically I want to move all of my code that uses double's to BigDecimals that have finite precision.

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

    laerbn

    If you can get a maximum volume of land allowed claimed and a limit to the number of regions claimed I would love you, as otherwise it just allows players to claim infinitely large areas of land, no? And then that creates just as much griefing as not, haha. Either way I'll use this though, thanks a ton.
     
  5. Offline

    CyborgOne

    yea, I know the numberFormatException ;)
    develop myself with java but no plugins or sth like that. ... not yet ;)

    You think, I can change the Language-Settings of my server or anything like this to fix the problem localy?
     
  6. Offline

    Chuckster

    whenever i try to do an icl command it says an inernal error has occured and a bunch of junk appears on the server log
     
  7. Offline

    grizzlymann

    How is this coming along for 1.4? I would really love to try this out :)
     
  8. Offline

    Magik

    I can try to include that when I bump this up to 1.4/CB#612
    Fix for this is in 1.08 - can you give that a try?

    I'm going to be moving to CB#612/1.4 soon, so it looks like you may be a bit further behind than that. But you can change the locale settings on the command line when you call java. Somethign like this:
    Code:
    java -Duser.language=en -Duser.region=US craftbukkit.jar

    probably today or tommorow

    just checked, and without modification, this plugin works with CB#617

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

    EpicCyndaquil

    Could you add a way to select an entire chunk?

    And does your current selection method select the land from sky to bedrock, or just the area between the corners?
     
  10. Offline

    Magik

    just the area between the corners

    and right now, no there is no way to select an entire chunk, I will think about it....

    can't help you much with what you've described, please be as detailed as possible. Please pastebin the server.log from boot to fail

    added it, in v1.09

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

    EpicCyndaquil

  12. Offline

    Magik

    i meant my plugin doesnt support it

    plugin updated:

    renamed .jar file to iCoLand.jar ( directory changes as well )

    implemented Healing addon ( configurable healing interval in config.yml - it's in seconds )

    added NoSpawn addon ( won't allow mobs to spawn in the zone ) - still need to add a mob removal timer so it clears the zone of all mobs as well.

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

    Codisimus

    i believe i already mentioned this but each of the admins on my server have huge cities, i want them to be able to grief proof these large areas without them spending their money or allowed blocks. and perhaps even be able to sell plots of land inside of it. would this be possible at sum point? all or any of these features.
     
  14. Offline

    Arkian123

    I Really dont understand this Plugin. Its sounds cool, but i cant english very good (iam german) and dont know how i can sell land.
    I type ,,/icl select´´. Then i click on the corners, and there stay ,,Land selected!´´. But how i can sell it?
    When i type ,,/icl buy land´´, there stays ,,An internal error occured while attempting to perform this command"
    How can i do this?! Please, i want to use this Addon, its veeeery awesome for me.
    Thanks for Helping.

    EDIT: Oh, and yes, i have Essentials and Essentials Group Manager. I think it works like permissionns.
     
  15. Offline

    Magik

    I can make it so certain permission nodes wouldn't have a cost to buy land/addons.

    But I can't guarantee that they will be able to sell plots of land inside of it. I plan on doing this, but I need to figure out how the system will work first. And I make no promises on when I will implement it....

    Sounds like you are having an error. You are using the plugin correctly, but it seems to be running into an error.

    Can you try again with the specified versions of other plugins listed in the original post? ( iConomy/Permissions )

    I do not officially support anything other than Permissions, as I just don't have the time to test all the thousands of different combinations possible. Please try the plugin again with the versions I call for in the original post.
     
  16. Offline

    Arkian123

    So i must install permissions?

    I think, it works too with Essentials. I only don't know is how i can SELL this land. What must i type? And after i've selected a land, where i can get the land-id?
     
  17. Offline

    peas

    hello

    just installed this mod and updated permissions/iconomy

    I can't figure how to give all users ability to buy land, or to figure out a monetary balance, could ya help?
     
  18. Offline

    Magik

    plugin updated:
    -added mob spawn removal timer/task to remove mobs in zones with NoSpawn addon
    -added new permission node: "icoland.nocost" - all land/addons are free

    just added the first feature, I still have to think about the sub-zoning. It's something I've wanted to implement, but I just have to figure out the mechanics of it all and there are still some other tasks I want to complete before then.

    even though the commands are all listed up at the top here... i'll still give you a quick tutorial.

    But that isn't the problem, you do have an error occurring for some reason, and I"m guessing it's some sort of not following directions, or not having compatible plugins, or incorrect config...

    -But you do this:
    /icl select
    - then you left click 1 block to set 1 corner, then left click another block to set 2nd corner
    - it should say something like: "Unclaimed Land" and some stats ( dimensions + volume + price )
    - then you type:
    /icl buy land
    - it should say something along the lines of "Bought land for X"
    - then type:
    /icl info
    - it should give some stats/info on the land u just bought, with the ID# at the top
    - you can also type:
    /icl list
    - and that will show you a lits of all the lands you own
    - now you can type:
    /icl sell land 1
    - and that will sell land ID#1, it should say "Sold Land ID#1 for X"

    What permission nodes are you setting? And what does this mean "to figure out a monetary balance" ?
     
  19. Offline

    peas

    I mean how do players see how much money they have? and where do i put the commands you listed in first post?
     
  20. Offline

    Magik

    this plugin requires iConomy and Permissions ( 2 other plugins ). You use iconomy's commands to see how much money you have: /money
    and Permissions' config file needs to be set up to use the permission nodes I've outlined above. Each one of those permission nodes needs to be set for each group or individual person for that group/person to be able to use what the permission describes.
     
  21. Offline

    peas

    ahhh, I tried to stick the permissions into your icoland folder :x


    more:

    groups:
    Default:
    default: true
    info:
    prefix:
    suffix:
    build: true
    inheritance:
    permissions:
    - 'general.spawn'
    'icoland.list',
    'icoland.select',
    'icoland.edit',
    'icoland.info',
    'icoland.buy',
    'icoland.sell',


    ^liek that?

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

    Magik

    yeah that looks like it should work, did you try it? probably needs some spacing though to be proper yml
     
  23. Offline

    peas

    i took the commands out of the icoland file, then put them in the permissions file...get 'internal error' when i try


    Code:
    groups:
        Default:
            default: true
            info:
                prefix:
                suffix:
                build: true
            inheritance:
            permissions:
                - 'general.spawn'
    - 'icoland.list',
    - 'icoland.select',
    - 'icoland.edit',
    - 'icoland.info',
    - 'icoland.buy',
    - 'icoland.sell',
        Moderator:
            default: false
            info:
                prefix:
                suffix:
                build: true
            inheritance:
                - Default
            permissions:
                - 'general.time'
                - 'general.teleport'
                - 'general.teleport.here'
                - 'general.player-info'
                - 'bb.admin'
                - 'general.items'
        Admins:
            default: false
            info:
                prefix:
                suffix:
                build: true
            inheritance:
                - Moderator
            permissions:
                - '*'
                - '/region'
                - '/god'
                - '/heal'
                - '/locate'
    users:
        cheezian:
            group: Admins
            permissions:
        pease:
            group: Admins
            permissions:
                - '/worldedit'
                
     
  24. Offline

    Magik

    line up those - 'icoland.buy'
    lines with the other lines above it, and make sure there are no tabs, only spaces, and remove the commas at the ends of those lines too
     
  25. Offline

    peas

    okay now it works, but we're back to square one... no permission for regular users

    Code:
    #   Single Asterisk denotes all commands:
    #
    #       - '*'
    ##
    groups:
        Default:
            default: true
            info:
                prefix:
                suffix:
                build: true
            inheritance:
            permissions:
                - 'general.spawn'
                - 'icoland.list'
                - 'icoland.select'
                - 'icoland.edit'
                - 'icoland.info'
                - 'icoland.buy'
                - 'icoland.sell'
        Moderator:
            default: false
            info:
                prefix:
                suffix:
                build: true
            inheritance:
                - Default
            permissions:
                - 'general.time'
                - 'general.teleport'
                - 'general.teleport.here'
                - 'general.player-info'
                - 'bb.admin'
                - 'general.items'
        Admins:
            default: false
            info:
                prefix:
                suffix:
                build: true
            inheritance:
                - Moderator
            permissions:
                - '*'
                - '/region'
                - '/god'
                - '/heal'
                - '/locate'
    users:
        cheezian:
            group: Admins
            permissions:
        pease:
            group: Admins
            permissions:
                - '/worldedit'
                
    wut do D:

    wait no, think i fixed it

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

    Magik

    plugin updated to v1.14
    -added NoFire, NoBoom, NoFlow addons
    -tweaked how info is displayed in /icl info and /icl list

    no idea, it works perfectly fine for me with that config file - as a non-admin I was able to use /icl list and everything

    can you post/pastebin the server logs from when you start the server to when a default user tries to use /icl list and can't do anything?
     
  27. Offline

    4cobyj

    how do i set price of selction and how do i find land id and how do i namei really NEED help with this
     
  28. Offline

    peas

    config in icoland folder

    you can change all monetary values of blocks/addons

    /icl list

    shows your owned land ID numbers

    updated...now this

    WTF

    its crashing the server :<

    Code:
    20:45:26 [SEVERE] Unexpected exception
    java.lang.IllegalArgumentException: Health must be between 0 and 200
            at org.bukkit.craftbukkit.entity.CraftLivingEntity.setHealth(CraftLivingEntity.java:38)
            at me.slaps.iCoLand.HealTask.run(HealTask.java:13)
            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)
    
    i think the heal addon is healing me past full hearts...been taking damage with no response for hearts for a long time. also updated and got mad crap, do i delete old folder and jar first?

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

    Magik

    hrm... i am just blindly increasing health value lol.... i didn't think that would be a problem lol

    updated to a new version now, fixed the healing bug hopefully to cap you at 20 hearts

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

    peas

    sweet thankyou <3
     
  31. Offline

    WhosDaMan

    Just an idea for admins plotting out land for purchase later in the game:
    1) Possibly you can use signs with a number value on them...

    + = 1 block
    -x = 1 sign with a value on it (x representing the value, IE -1)

    -0+++++-1
    ++++++++
    ++++++++
    -3+++++-2

    The signs would mark the boundaries of the land, looking like this

    -0-------------1
    |++++++ |
    |++++++ |
    -3-------------2

    The blocks under the designated plot of land would turn into red wool, making the land hard to miss
    Of course this can be an easy way to farm red wool, but after the land has been plotted out the wool is protected until someone buys the house, and the wool disappears, leaving a 1 block deep hole where the player can build his house/shop/etc

    Sideview of plot after purchase where + equals 1 block, - equals empty space

    +---------------- + <---- 1 block deep hole after purchase appears
    +++++++++

    Id totally get this plugin with these ideas, for my friends and i are building a large minecraft city and may make ourselves jobs and buy businesses and stuff, so iconomy/icoland will be a big part of the finished product.
    Also, maybe you can even make it so you can buy pre-built buildings!

    I love your plugin's concept and good luck!
     

Share This Page