[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

    MineralMC

    Not enough people know about this mod. Bump.

    Excellent for ECO-strict PVE servers that want to supplement BigBrother with a self-serve alternative. That's how I've been using it, at least. Good work, Magik.
     
  3. Offline

    DannyLAGZLOL

    nice work man, testing now
     
  4. Offline

    Magik

    bumped to version 1.02 - added much better in-game help menus describing permission tag structure, couple of bugfixes and code cleanup
     
  5. Offline

    Mr_Mellow

    Would i be able to let only certain people into my area? so like you could go /icl add [playername] . so now they are allowed in the area and all that stuff.
     
  6. Offline

    Goe

    You already can, if I'm not mistaken, using /icl edit <LANDID> perms <PERMTAGS>
    Code:
    /icl edit MyHouse perms Notch:t

    That should give Notch permission to build in your area named MyHouse, for example.
     
  7. Offline

    FrozenTwinki

    I'd like to have a request.

    I run a role-playing server where people buy house lots.

    Now can I make it so i can pre-mark the land, and have people buy that piece? That would be great!
     
  8. Offline

    Codisimus

    just wut ive always wanted! and now that iZone is inactive i will be switching to this soon

    EDIT: please add a feature so that admins can purchase land for free
     
  9. Offline

    Magik

    What Goe said is correct if you are talking about build/destroy permissions. Except that <LANDID> must be the ID# and not the name of a location.

    If you were looking for something to prevent players from walking/moving/entering a zone, then I have plans for one of the addons you can buy that would let you prevent people not on the access list from entering the zone.

    I would have to think about this. Right now the way I envision the plugin to be used is a "real estate" manager where any block in the world can be "bought". But this is not a bad idea.... I'll have to think about it a little bit, but maybe I could implement a different mode for the plugin where only an admin can mark off areas of land that can be bought. But then, how would people find these zones of land? How would they know they are for sale? How would buying/selling it even work? How would they know where one zone ends or begins? How would they know that 12 blocks to the west of their current location there is another place for sale? There are a lot of logistical things I would have to implement to get this done....

    The more I think about it, the way it is seems more elegant and open to me. Once I add some more features that would allow you to at least blacklist some land ( for example, no spawn claiming ), I see that as a better solution. People can buy however big of a plot of land they wish for their home.

    Maybe you are looking for something more like Towny?
    Glad to know. I hope you understand this is very still in development and new though - so it may have bugs, actually scratch that, it most definitely has bugs. If you can think of anything in my plugin that iZone has that mine doesn't, let me know, and I can try to see if it fits in with my vision for this plugin, or an alternative way to implement it and get the same end-goal.
     
  10. Offline

    Codisimus

    One thing iZone had was that you could make sum areas replenish health... but i proly wont update to this till 1.4, even if its not stable by then i only have a small server (total of 10-15 users)
     
  11. Offline

    Edras

    Can this plugin use World Guard? It can be very great!
     
  12. Offline

    Magik

    I actually had already planned for that as one of purchasable addons - a healing zone.
    what do you mean can it use world guard? do they have some sort of external API?
     
  13. Offline

    Codisimus

    Great! if i think of anything else ill let you know
     
  14. Offline

    FrozenTwinki

    Towny is a little to complicated for me. I do not need something that complex.

    We have a housing district, where I have flattened out land, replaced it with grass, and marked out areas with stone where houses are built. We have a set price for lots, 10k for a big lot and 3.5k for a small lot. We could just have signs that say the price.

    So if you could incorporate my idea, that would be WONDERFUL!

    Thanks for reading in this first place!
     
  15. Offline

    Magik

    implemented the noenter addon

    issues - if you create a zone that is noenter, and then someone without perms tries to enter it from above the zone, it's possible to get stuck in a teleport loop ( getting tp'd above the zone, then dropping into it, to be teleported again... )

    need to think of a way to combat this without adding excessive crap into the code....

    Currently, the code tracks where the last non-land position was, and tp's you there.... but there might be better solutions. Maybe I should make the code actually try to find a good block to put the player in? Somewhere near where they entered the zone preferably....

    Let me know if anyone has any issues, or has a possible solution to the above problem
     
  16. Offline

    MineralMC

    Magik, what about a teleport to border of zone plus a shift in the grid by 4 blocks or so? Just need the mod to make note of which block the user was on a step before entering the zone (maybe a 'border' prior to the zone for this?) and send them back in that direction.
     
  17. Offline

    sillyrosster

    I can't do /icl buy land. I select the land by /icl select and then selecting my corners. Then I go and stand on the land and do the buy command, but it gives me this error:
    Code:
    2011-03-29 20:32:06 [INFO] icl buy land
    2011-03-29 20:32:06 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'icl$
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:8$
            at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:$
            at net.minecraft.server.NetServerHandler.c(NetServerHandler.java:645)
            at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:608)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:602)
            at net.minecraft.server.Packet3Chat.a(SourceFile:24)
            at net.minecraft.server.NetworkManager.a(SourceFile:230)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:76)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:357)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:272)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    Caused by: java.lang.NoClassDefFoundError: com/nijiko/coelho/iConomy/iConomy
            at me.slaps.iConomyLand.iConomyLandCommandListener.buyLand(iConomyLandC$
            at me.slaps.iConomyLand.iConomyLandCommandListener.onCommand(iConomyLan$
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
            ... 12 more
    
     
  18. Offline

    Magik

    that's not a bad idea, I'm already tracking the last area they were in that wasn't a zone, so maybe I could calculate the vector from that, and add a couple blocks to tp them back to? The only problem I see with this, is if you are entering a noenter zone FROM a non-noenter zone... the way I have it now it would tp you back before entering any zone, but maybe I can keep the last non-blocked zone in memory.... But then again - this still doesn't deal with entering the zone directly from above - maybe the code will start searching 1-block in every NESW direction until it finds a suitable place when this occurs? I dunno... it doesn't seem very elegant...

    You are missing iConomy... I should really put some checks in and disable the plugin if requirements are not met.... or at least throw a severe log....
     
  19. Offline

    MineralMC

    What about calculating an 'exit' block on creation of a zone? It looks for the most suitable flat block 5 blocks outside the board and tags it as a teleport point. This allows it to check if the zone is inside another zone and select a more appropriate block if not.

    Since each zone is it's own instance, throwing players to the 'exit' block won't cause a TP loop, just a TP for each individual zone until the player reaches an area they're allowed to be in. You could even get the zone to calculate NESW (4) exit blocks and pick one depending on which exit the player entered the zone closest from, to stop players abusing it to teleport around structures.

    e.g.
    House is a zone, it has calculated 4 exit points. North, East, South, West. A player jumps from a tree onto the house - the point at which the player enters the zone is closest to the east exit, so they are teleported to that. If they were 2 blocks forward, they'd be in the north exit, so they'd be TP'd there instead.
     
  20. Offline

    sillyrosster

    I swear it was on there. I have two people that run the server (me and a friend), maybe he took it off. Thanks for the fast reply!
     
  21. Offline

    Edras

    World guard use region, is possible that your plugin can make someone buy a region of world guard ? (sorry for my bad english)
     
  22. Offline

    Pony

    2011-03-30 19:32:47 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'icl' in plugin iConomyLand vv1.04
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:80)
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:229)
    at net.minecraft.server.NetServerHandler.c(NetServerHandler.java:645)
    at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:608)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:602)
    at net.minecraft.server.Packet3Chat.a(SourceFile:24)
    at net.minecraft.server.NetworkManager.a(SourceFile:230)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:76)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:357)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:272)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    Caused by: java.lang.NumberFormatException: For input string: "1000,00"
    at sun.misc.FloatingDecimal.readJavaFormatString(Unknown Source)
    at java.lang.Double.valueOf(Unknown Source)
    at me.slaps.iConomyLand.iConomyLandCommandListener.buyLand(iConomyLandCommandListener.java:378)
    at me.slaps.iConomyLand.iConomyLandCommandListener.onCommand(iConomyLandCommandListener.java:177)
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
    ... 12 more
    I have latest iConomy, do you need more info?
     
  23. Offline

    Magik

    looks like you have an error in your config file wherever there is a "1000,00"? - use decimals instead of commas - that should be "1000.00"

    hrm... sorry I don't really see that happening, and I think that's a bit too far to stretch my plugin to make it fit/work.

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

    Pony

    Decimals are in iConomyLand config and in iConomy config.
    Addons-Enabled:
    noenter: true
    heal: true
    announce: true
    debug: false
    SalesTaxPercent: 80.0
    Addons-PricePerBlock:
    noenter: 100.0
    heal: 200.0
    announce: 50.0
    PricePerBlock-Raw: 50.0
     
  25. Offline

    gumball3000

    Can you make it like this: you have a large area of grass where an admin makes 10x10, 15x15 slots or whatever dimension he likes, then selects the area and gives it a name and a price. The he puts a sign in the center of it with the price and the name of the slot, for example: slot1 for 2000 coins. Then the user can use a command to buy slot1 and gain protection over it? Here is an example:
    example.png
     
  26. Offline

    CyborgOne

    Code:
    23:21:18 [SCHWERWIEGEND] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'icl' in plugin iConomyLand vv1.04
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:80)
            at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:229)
            at net.minecraft.server.NetServerHandler.c(NetServerHandler.java:645)
            at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:608)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:602)
            at net.minecraft.server.Packet3Chat.a(SourceFile:24)
            at net.minecraft.server.NetworkManager.a(SourceFile:230)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:76)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:357)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:272)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    Caused by: java.lang.NumberFormatException: For input string: "21557400,00"
            at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1224)
            at java.lang.Double.valueOf(Double.java:475)
            at me.slaps.iConomyLand.iConomyLandCommandListener.buyLand(iConomyLandCommandListener.java:378)
            at me.slaps.iConomyLand.iConomyLandCommandListener.onCommand(iConomyLandCommandListener.java:177)
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
            ... 12 more
    
    with CB 556, iConomy 4.4 and current iConomyLand 1.04


    ---
    edit:
    "21557400,00" is the Value which I have to pay for the Land I selected before!
     
  27. Offline

    sillyrosster

    Can you update it please?
     
  28. Offline

    Chuckster

    Im on a mac and i cant open the yml config file so is there another way to allow my character to have permissions? cause we have had some retards join our server destroying our stuff
     
  29. Offline

    Codisimus


    idk if your still having trouble with this but maybe if it teleports the player 10 times in ten seconds then it will teleport them to spawn? just an idea
     
  30. Offline

    Chuckster

    well at the begining i moved the spawn using MC edit and it moved the spawn protection zone, however MC edit no longer works on macs idk why so i downloaded a spawn mover plugin moved the spawn but it didnt move the protection zone and one of the admins decided that diamond towers was a good idea for the spawn resulting in an evil thief i caught and banned. Soooooo i really need this mod it works but i cant make myself have the permisions to make a zone
     

Share This Page