[SEC/FUN/INFO] Towny v0.68 Fuzze Edition [818]

Discussion in 'Inactive/Unsupported Plugins' started by FuzzeWuzze, Apr 10, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    FuzzeWuzze

    Towny_FuzzeEdition:
    Version: v0.68

    Moderator Edit: Please direct your attention here for an updated version. This thread is now closed due to people spamming random things about how its not working.

    So this has been asked for many times so i decided to finally make this thread.
    This is related to Shade's brilliant Plugin Towny

    Since Shade has been MIA for a while now, and we dont know if hes coming back i've been trying to keep Towny afloat as best i can in hopes he does come back as i dont really have the RL schedule to much of anything other than maintain it to be usable.

    I hope in June once i have more free time if Shade still isnt back :'( to actually do a formal Github Fork and continue the project. So until then, dont bother asking for new features, as time allows the only thing i'll try to do is fix large glaring bugs that effect the mod. This is a very large plugin and Shade has spent a lot of time on it, so even when/if i do fork it will take some time to get fully up to speed on everything. For now i just have a basic understanding of how everything is interacting and enough debug skills to track down most bugs ;)

    How it works/Features
    -See Original Towny Page for Instructions on how to setup and Permissions.
    http://towny.xshade.ca/

    Read this page to learn what everything in the config does!
    http://towny.xshade.ca/configuration/config-values

    READ ME BEFORE POSTING BUGS OR ISSUES
    KNOWN "ISSUES" AND FIXES
    When reporting bugs, please use /townyadmin set debugmode on. Then perform the action and post or send me the log from your server. This will assist me in being able to fix the issue 10 faster, just simply saying "People can do X in my town when they shouldnt be able too" doesnt really help me at all and is impossible to replicate.
    • Permission cache errors
      • You didnt install Permissions properly, it creates a RENAMEME.yml file or something of the like when first started. This must be renamed to match your world name(for most people world.yml). Also you CANNOT have spaces in your world name. Test World is not an acceptable folder name, TestWorld is. Both towny and permissions dont like the Permissions YML file to have spaces.
    • /town top money causes exception
      • Your iConomy database is likely setup to still use sqlite. Ensure that your iConomy config file is setup to use database Type: H2SQL. A lot of people had issues with the sqlite to H2 conversion, if you still experience this error with it set properly your db may be corrupt. Back up your iConomy db and configs, then delete them all and allow iConomy to recreate them and see if it still happens. If it doesnt, your going to have to manually regrant people cash somehow as your iConomy database was corrupt.
    Permissions
    • towny.admin: User is able to use /townyadmin, as well as the ability to build/destroy anywhere. User can also able to make towns or nations when set to admin only.
    • towny.town.new :User is able to create a town (only is use when TOWN_CREATION_ADMIN_ONLY is on)
    • towny.town.claim : User is able to expand his town with /town claim
    • towny.nation.new :User is able to create a nation (only is use when NATION_CREATION_ADMIN_ONLY is on)
    • towny.wild.*: User is able to build/destroy in wild regardless if the config says no.
    • towny.wild.build
    • towny.wild.destroy
    • towny.wild.switch
    • towny.wild.item_use
    • towny.wild.block.[block id] : User is able to edit [block id] in the wild.
    • towny.spawntp :Use /town spawn when allow_town_spawn=false
    • towny.publicspawntp : Use "/town spawn [town]" (teleport to other towns) when allow_town_spawn_travel=false.
    GitHub
    https://github.com/fuzzewuzze/Towny

    IMPORTANT INFORMATION-READ ME BEFORE UPDATING PAST .63
    All versions .64 and after will require iConomy 5.0 and higher. When making this initial transition it is HEAVILY advised that you back up your h2 and MySQL database's. I tested as well as i could with various functionality within Towny and it seemed to be working as expected. Also note that a ton of plugins that use iConomy are still broken, so unless they ALL work i wouldnt suggest updating. You've been warned. Dont cry if something bad happens and you dont have a backup of your iConomy database ...
    • PLUGINS COMPILED/TESTED AGAINST(Recommended Versions)
      • Essentials 2.2
      • Permissions 2.7.4(DO NOT USE 3.X!)
      • iConomy 5.01
    • (JAR ONLY) Latest Build(.68) HERE
    IMPORTANT INFORMATION-READ ME BEFORE UPDATING PAST .63
    • V.61
    TODO:


    • Fix /towny top money from crashing towny
    • Investigate potential issues with build/destroy permissions.
    BUGS:

    • /town spawn will not charge players
    • DO NOT GIVE PLAYERS TOWNY.WILD.* permissions. Give players permissions by editing your config file by editing these. If players have wild permissions they can do funny business to get permission to build in other peoples towns.
      unclaimed_zone_build=false
      unclaimed_zone_destroy=false
      unclaimed_zone_item_use=false
      unclaimed_zone_switch=true
    • Some people are reporting a lot of [SEVERE] warnings related to Player_Item and Player_Move, i believe these are being triggered by other mods. If you are having this issue please list your other plugins.
    Changelog:

    Version .68
    • Compiled for CB818 (Minecraft 1.6.6)
    • Disabled town renaming (finally)
    • Do not use Permissions 3.0.x with Towny yet, there are still some MAJOR issues with the rework they are doing and a ton of people are nerd raging on their thread. I couldnt even get it to create my config or default files they were always blank, and i guess a ton of other people are having the same issues. Still didnt work when following instructions on how to make the file yourself. Because 2.7.4 works perfectly fine with CB818 im not in a rush to upgrade until they figure out their issues. Sorry if this causes plugin conflicts if some require Permissions 3.x but i doubt it will as not many mods are moving to it in its badly broken state. Because Towny is so heavily dependent on a lot of Permissions nodes being read properly i decided to stick with 2.7.4 for now. Ill work on a 3.x permissions build as soon as i feel its functioning properly.
    Version .66
    • Compiled for CB766
    • Players no longer need to /town set spawn, when a player does /town spawn they automatically go back to their town. Need to figure out how to re-implement the essentials teleport timer cooldown they changed their API
    Version .64
    • Updated to use iConomy 5.0+, BACKUP YOUR DATABASE FILES BEFORE UPGRADING.
    Version .63
    • Really fixed /town spawn!
    Version .62
    • First Official Release by Fuzze!
    • Fixed /town spawn INVESTIGATING
    • Fixed /towny map
    • Verified all permissions are working properly. I ran it on my test server and tested resident build/destroy/switch and outsider build/destroy/switch by using /town set perm and turning them on and off and trying them out. ALL the permissions acted as they should. This should put to rest a lot of bugs people are having with people building. This doesnt mean Towny is using the default_town_build=false config lines properly for new towns, thats next. It does mean if your mayor sets the options manually it works.
    Version .061R6
    • Disabled /towny top money for towns/nations until able to fix bug related to null iConomy accounts, I have a feeling its related to iConomy databases that were SQLite and transitioned to H2 like my own. It *should* work fine for Residents, so far i havent seen null resident returns.
    Version 0.61R5


    • Updated to work with CB670
     
  2. Offline

    Taien

    Our server has lost seven towns in the last week to glitched Towny save files. One town that got deleted twice had over 60 members and then lost their entire member list and all their plots. Fixing the towns is a huge issue since I don't know their exact number of plots so I basically have to give the town a ton of money, as well as manually set a new home block in the town's data file and restart the server before they can re-claim their plots. We've used Towny for months, and many large towns have been built up, so this will be a huge blow to us if we have to remove this plugin.
     
  3. Offline

    LlmDl

    Everyone is posting about towns getting deleted, players getting deleted from towns.

    I have been using towny for months and I only ever get this sort of thing when my server crashes and there has been a new town created/new members added to a town since the last stop and start of a server.

    Basically, if your server crashes towny doesn't use the latest data, it goes into its backups and uses the latest available, overwriting the data folder. If you're not stopping and starting your server regularly, towny's last backup can be very old and not have all the latest towns or members of towns.

    My server only crashes once in a blue moon and I take it offline while I map the server, usually daily. If your server crashes, get a plugin to schedule stop and starts automatically, this will ensure regular backups so that towns and their members are restore-able if the worst case scenario does happen.

    Taien: why don't you go into the /backup folder, your towns' should have backups containing the townblocks and what not. That is hardly a reason to give up towny altogether.

    edit: I'm in the towny IRC on espernet, if anyone has questions.
     
  4. Offline

    JDD

    @FuzzeWuzze

    1. Issue report, I have a player who has a name _Name_ <-- Towny says this anme is invalid.
    2. Request is it possible to setup server controlled (npc) cities that are not subject to the block restrictions and fee's but still have all the other features of towny, and if not would it be possible for you to add this feature. Thank you in advance sir.

    JD
     
  5. Offline

    ledhead900

    Another reason I would have prefferd Persistant data format like Mysql or H2 sooner rather then later.
     
  6. Offline

    FuzzeWuzze

    Essentials in general is a very dangerous plugin, they have so much stuff packed into those mods that they can really screw with a lot of other plugin functionality.
     
  7. Offline

    LlmDl

    Hi Fuzze, here's a convo I had with one of the authors of WorldGuard,
    (sorry for the chatlog)

    [16:19] <LlmDl> I have a question about whether something is possible in bukkit yet, and I'd need it answered by someone well-versed in bukkit,
    [16:20] <LlmDl> so I came here obviously
    [16:20] <wizjany> go on
    [16:21] <LlmDl> Does bukkit have the ability to pass along who activated tnt, whether by redstone or normal means. This concerns TNT cannons, fired at areas that are protected by a mod
    [16:22] <LlmDl> Can a plugin author write something that says: TNT lands inside protected area of Bob. Jim set off the tnt with redstone outside the protected area. Check to see if Jim has permission to destory Bob's land. Jim does not. Server cancels tnt blast
    [16:24] <LlmDl> I what do you think wizjany?
    [16:24] <LlmDl> *-I
    [16:28] <wizjany> uh
    [16:28] <wizjany> normal means yes
    [16:28] <wizjany> redstone no
    [16:28] <wizjany> so
    [16:28] <wizjany> cannons no
    [16:28] <wizjany> it's not possible to tell who fired it without VERY hacky stuff
    [16:28] <LlmDl> yeah
    [16:29] <LlmDl> I had to nerf TNT with worldguard
    [16:29] <LlmDl> cause Towny can't protect blocks from TNT cannons
    [16:29] <LlmDl> I don
    [16:29] <LlmDl> 't think any protection mods can? Correct me if I'm wrong on that.
    [16:31] <LlmDl> wizjany: are you a part of the bukkit team or a pal of sk89q?
    [16:31] <wizjany> uhm
    [16:32] <wizjany> not part of bukkit team
    [16:32] <wizjany> and sk is my arch nemesis
    [16:32] <wizjany> as for blocking tnt cannons
    [16:32] <wizjany> that is something that was probably just never written for worldguard
    [16:32] <wizjany> it should be possible
    [16:33] <LlmDl> So the towny author could potentially write this in?
    [16:33] <wizjany> should be able to
    [16:33] <wizjany> let me check
    [16:33] <wizjany> yes
    [16:33] <wizjany> there's two events
    [16:34] <wizjany> one for when the tnt is primed
    [16:34] <wizjany> one for when it explodes
    [16:34] <wizjany> all that needs to be done is cancel the actual explosion if it lands in a protected area
    [16:34] <wizjany> brb writing for worldguard
    [16:34] <LlmDl> hah nice
    [16:34] <LlmDl> that's really good to here
    [16:41] <wizjany> waitasecond
    [16:41] <wizjany> WG should already protect against tnt
    [16:41] <wizjany> even if it is shot from outside the region
    [16:41] <LlmDl> okay

    Can you please implement this in Towny? TNT is great for mining and I and my server's population miss it.
     
  8. Offline

    Damian Mason

    Hey guys I just finished a program that maps Towny territories. It's sloppily coded but works, but if there's any interest I can clean it up and make it distribution ready. Let me know.

    Sample (Scroll and Mouse-Over territories for owner): http://opencraft.tk/map/map.html
     
  9. Offline

    LlmDl

    I like that idea a lot, how does it work?
     
  10. Offline

    Colby Swandale

    I have also being getting a lot of issues as well with towny, such as towns being removed, towns losing blocks, players being kicked out of towns. I really do not want to remove towny as it such a great plugin but i am about to be at the point of insanity soon. i have essentials turned on my server but when i state using_essentials=true in towny's config file towny itself just becomes mega screwed up forcing me to take it back to false :/
     
  11. Offline

    LlmDl

    Change to something other than Essentials. The plugin has everything and the kitchen sink, not really limited to 'just the essentials'.
     
  12. Offline

    thedjshow

    When i do /town set perm off ,allys can still build and destroy and i'v tryed /town set perm allys off still not working..
     
  13. Offline

    LlmDl

    Try /t set perm allies off
     
  14. Offline

    Taien

    That's a huge undertaking for a server that has run on it for a long time. Unless you can recommend things to replace each part of the program...? I <3 GroupManager :(

    So is Essentials the cause somehow of the town datafiles being corrupted? If so, can't the creator just make a fix?

    The first part I completely understand, although that's not what they're talking about. It does happen when the server crashes, but it isn't a result of the files not being updated. Somehow, the entire block section of the town is deleted, or corrupted somehow, or the player list can have the same effect. When you go into the file after it has become corrupted, there is nothing in the lines for townBlocks, etc.

    That being said, I hadn't looked in the backup folder before :p Should be very helpful. Thanks.

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

    Necrodoom

    taien: essentials has nothing to do with it

    EDIT: its not essentialsprotect and towny conflict. its a wrongly setup groupmananger config, giving build: false to players, so essentialsprotect anti build feature kicks in, as far as it seems.

    snipped out most of original post
     
  16. Offline

    Goast334

    Hey, my users und admins can't set wather or lava out of bukkits
    pls help me!

    This is my config file of towny:

    allow_outposts=false
    allow_resident_plots=false
    allow_town_spawn=false
    allow_town_spawn_travel=false
    commands_nation=/nation,/n,/nat
    commands_nation_chat=/nc
    commands_plot=/plot
    commands_resident=/resident,/r,/res,/p,/player
    commands_town=/town,/t
    commands_town_chat=/tc
    commands_towny=/towny
    commands_towny_admin=/townyadmin,/ta
    commands_world=/townyworld,/tw
    daily_backups=true
    daily_taxes=true
    database_load=flatfile
    database_save=flatfile
    day_interval=86400000
    debug_mode=false
    default_capital_postfix= City
    default_capital_prefix=Capital:
    default_king_postfix=
    default_king_prefix=King
    default_max_town_blocks=64
    default_mayor_postfix=
    default_mayor_prefix=Mayor
    default_nation_postfix= Nation
    default_nation_prefix=
    default_resident_perm_ally_build=false
    default_resident_perm_ally_destroy=false
    default_resident_perm_ally_itemuse=false
    default_resident_perm_ally_switch=false
    default_resident_perm_friend_build=true
    default_resident_perm_friend_destroy=true
    default_resident_perm_friend_itemuse=true
    default_resident_perm_friend_switch=true
    default_resident_perm_outsider_build=false
    default_resident_perm_outsider_destroy=false
    default_resident_perm_outsider_itemuse=false
    default_resident_perm_outsider_switch=false
    default_town_name=
    default_town_perm_ally_build=true
    default_town_perm_ally_destroy=true
    default_town_perm_ally_itemuse=true
    default_town_perm_ally_switch=true
    default_town_perm_outsider_build=false
    default_town_perm_outsider_destroy=false
    default_town_perm_outsider_itemuse=false
    default_town_perm_outsider_switch=false
    default_town_perm_resident_build=true
    default_town_perm_resident_destroy=true
    default_town_perm_resident_itemuse=true
    default_town_perm_resident_switch=true
    default_town_postfix= Town
    default_town_prefix=
    delete_old_residents=false
    deleted_after_time=5184000000
    dev_mode=false
    first_run=false
    flatfile_backup=zip
    force_pvp_on=false
    friendly_fire=false
    health_regen=false
    health_regen_speed=3000
    inactive_after_time=86400000
    item_use_ids=341, 351, 349, 332
    last_run_version=0.67
    line_not_perm_to_new_nation=&6[Towny] &bOnly admins are allowed to create nations.
    line_not_perm_to_new_town=&6[Towny] &bOnly admins are allowed to create towns.
    logging=true
    max_plots_per_resident=100
    min_distance_from_town_homeblock=0
    mob_removal=true
    mob_removal_entities=Monster,WaterMob,Flying,Slime
    mob_removal_speed=5000
    modify_chat_name=true
    msg_buy_resident_plot=&6[Towny] &b%s bought %s's plot!
    msg_couldnt_pay_taxes=&6[Towny] &b%s couldn't pay taxes%s
    msg_del_nation=&6[Towny] &bThe nation %s was disbanded!
    msg_del_resident=&6[Towny] &b%s lost all his Towny data!
    msg_del_town=&6[Towny] &bThe town of %s fell into ruin!
    msg_join_nation=&6[Towny] &b%s joined the nation!
    msg_join_town=&6[Towny] &b%s joined town!
    msg_mayor_abandon=&6[Towny] &bYou would abandon your people? Choose another mayor with '/t set mayor' if your sure.
    msg_new_day=&6[Towny] &bA new day is here! Taxes and rent has been collected
    msg_new_king=&6[Towny] &b%s is now the king!
    msg_new_mayor=&6[Towny] &b%s is now the mayor!
    msg_new_nation=&6[Towny] &b%s created a new nation called %s
    msg_new_town=&6[Towny] &b%s created a new town called %s
    msg_plot_for_sale=&6[Towny] &b%s put the plot (%s) up for sale!
    msg_registration=&6[Towny] &bWelcome this is your first login.@&6[Towny] &bYou've successfully registered!@&6[Towny] &bTry the /towny command for more help.
    msg_war_eliminated=&6[Towny] &b%s was eliminated from the war.
    msg_war_forfeited=&6[Towny] &b%s forfeited.
    msg_war_join=&6[Towny] &b%s joined the fight!
    msg_war_lose_block=&6[Towny] &b(%s) belonging to %s has fallen.
    msg_war_score=&6[War] &b%s scored %d points!
    name_check_regex=^[a-zA-Z0-9]+[a-zA-Z0-9._-]*$
    name_filter_regex=[ /]
    name_remove_regex=[^a-zA-Z0-9._-]
    nation_creation_admin_only=false
    npc_prefix=[NPC]
    price_claim_townblock=20.0
    price_death=0.0
    price_death_wartime=200.0
    price_nation_neutrality=0.0
    price_nation_upkeep=100.0
    price_new_nation=10000.0
    price_new_town=500.0
    price_outpost=500.0
    price_town_spawn_travel=0.0
    price_town_upkeep=10.0
    pve_in_non_pvp_towns=true
    reset_log_on_boot=true
    save_on_load=false
    show_town_notifications=true
    switch_ids=64,69,70,71,72,77
    town_block_ratio=16
    town_block_size=16
    town_creation_admin_only=false
    town_limit=3000
    town_respawn=true
    unclaimed_plot_name=Unowned
    unclaimed_zone_build=true
    unclaimed_zone_destroy=true
    unclaimed_zone_ignore=14,15,16,21,50,56,65,66,73,74,89,20,9,10,8,11
    unclaimed_zone_item_use=true
    unclaimed_zone_name=Wilderness
    unclaimed_zone_switch=true
    using_essentials=true
    using_iconomy=true
    using_permissions=true
    using_questioner=false
    wartime_base_spoils=100.0
    wartime_home_block_hp=120
    wartime_min_height=60
    wartime_points_kill=1
    wartime_points_nation=100
    wartime_points_town=10
    wartime_points_townblock=1
    wartime_remove_on_monarch_death=false
    wartime_town_block_hp=60
    wartime_town_block_loss_price=100.0
    wartime_warning_delay=30

    pls help!
     
  17. Offline

    HiPPiE1337

    Worldedit causes the build issues if you dont configure it right.
     
  18. Offline

    realm174

    Ahhh yes!!I like that idea a lot!! Just out of curiosity, what language was this written in?
     
  19. Offline

    LlmDl


    The frequent stopping and starting will mean more backups to go back to when something does happen.
     
  20. Offline

    Fuzzwolf

    Could you make it so that each Town Block has upkeep instead of the town altogether? This would be nice for upkeep depending on Town Size.
     
  21. Offline

    ledhead900

    I would love to make a section in a town a section being just claim but when walking into the new section claim areas they display a different name then the town for example

    Townname-Sectionname

    would e displayed when moving from section to section. This a work around I would like since you cant leave a town with no mayor so I cantmake a new town close by on my own.
     
  22. Offline

    Noobscraft

    My towns keep getting delete I have a popular server please fix this is crazy!!
     
  23. Offline

    LlmDl

    On the last page I gave a pretty good summary about why this happens.
     
  24. Offline

    Taien

    I don't see what you're referring to. There's a post of a chat you did which doesn't really explain it and another post where you explain the backup thing a bit, but I still don't see a good explanation as to why towns are being deleted in the first place. I've had it happen during normal stops too - stop the server to update some settings or something, start it up again, and get errors saying "Could not read townblock data from Mirage.txt" or something like that, and a big java error block. To me it sounds like Towny is closing the stream to the text files before each line is completely written or something. The other day I lost all members of my town after the first six...which was really wierd. A partial deletion of members from a town (the town had over sixty and was left with only six). I was able to restore it from the backup zips but I still would really like to know what is causing this.

    And Llm, I'm not trying to be ungrateful...but could you resummarize a little more clearly if you know the reason?
     
  25. Offline

    Damian Mason


    Eh just threw it together in C#, maybe I'll copy it over to java for compatibility. Stupid thing is I'm running an Ubuntu server and wrote this for Windows.
     
  26. Offline

    LlmDl

    Hi Taien,

    The whole time I've used towny I've only ever lost information when the server has crashed. If you're experiencing this sort of thing you might have a conflicting plugin, a bad towny install even a bad hard-drive. If towny doesn't know that it wrote out the town files on the last close, it will go into backups. If your server hasn't stopped recently those backups could be old. Hope you figure out what's wrong.
     
  27. Offline

    amunro

    For some reason when the server restarts it wipes all the data from towny. Also, when we try /t claim, it says that you cannot afford it even when you have enough money

    Ok i think i fixed it. I reloaded the plugin with essentials '/reload' command and all the towns stayed. However i still have the economy issue where it says they cannot afford to claim new land. I put 5000 'rupies' (our ingame currency) into the test account and it still says 'you cannot afford $50'...

    Here is my config:

    Code:
    allow_outposts=true
    allow_resident_plots=true
    allow_town_spawn=true
    allow_town_spawn_travel=true
    commands_nation=/nation,/n,/nat
    commands_nation_chat=/nc
    commands_plot=/plot
    commands_resident=/resident,/r,/res,/p,/player
    commands_town=/town,/t
    commands_town_chat=/tc
    commands_towny=/towny
    commands_towny_admin=/townyadmin,/ta
    commands_world=/townyworld,/tw
    daily_backups=true
    daily_taxes=false
    database_load=flatfile
    database_save=flatfile
    day_interval=86400000
    debug_mode=false
    default_capital_postfix= City
    default_capital_prefix=Capital:
    default_king_postfix=
    default_king_prefix=King
    default_max_town_blocks=64
    default_mayor_postfix=
    default_mayor_prefix=Mayor
    default_nation_postfix= Nation
    default_nation_prefix=
    default_resident_perm_ally_build=false
    default_resident_perm_ally_destroy=false
    default_resident_perm_ally_itemuse=false
    default_resident_perm_ally_switch=false
    default_resident_perm_friend_build=true
    default_resident_perm_friend_destroy=true
    default_resident_perm_friend_itemuse=true
    default_resident_perm_friend_switch=true
    default_resident_perm_outsider_build=false
    default_resident_perm_outsider_destroy=false
    default_resident_perm_outsider_itemuse=false
    default_resident_perm_outsider_switch=false
    default_town_name=
    default_town_perm_ally_build=true
    default_town_perm_ally_destroy=true
    default_town_perm_ally_itemuse=true
    default_town_perm_ally_switch=true
    default_town_perm_outsider_build=false
    default_town_perm_outsider_destroy=false
    default_town_perm_outsider_itemuse=false
    default_town_perm_outsider_switch=false
    default_town_perm_resident_build=true
    default_town_perm_resident_destroy=true
    default_town_perm_resident_itemuse=true
    default_town_perm_resident_switch=true
    default_town_postfix= Town
    default_town_prefix=
    delete_old_residents=false
    deleted_after_time=5184000000
    dev_mode=false
    first_run=false
    flatfile_backup=zip
    force_pvp_on=false
    friendly_fire=false
    health_regen=true
    health_regen_speed=3000
    inactive_after_time=86400000
    item_use_ids=259,325,326,327
    last_run_version=0.67
    line_not_perm_to_new_nation=&6[Towny] &bOnly admins are allowed to create nations.
    line_not_perm_to_new_town=&6[Towny] &bOnly admins are allowed to create towns.
    logging=true
    max_plots_per_resident=100
    min_distance_from_town_homeblock=0
    mob_removal=true
    mob_removal_entities=Monster,WaterMob,Flying,Slime
    mob_removal_speed=5000
    modify_chat_name=true
    msg_buy_resident_plot=&6[Towny] &b%s bought %s's plot!
    msg_couldnt_pay_taxes=&6[Towny] &b%s couldn't pay taxes%s
    msg_del_nation=&6[Towny] &bThe nation %s was disbanded!
    msg_del_resident=&6[Towny] &b%s lost all his Towny data!
    msg_del_town=&6[Towny] &bThe town of %s fell into ruin!
    msg_join_nation=&6[Towny] &b%s joined the nation!
    msg_join_town=&6[Towny] &b%s joined town!
    msg_mayor_abandon=&6[Towny] &bYou would abandon your people? Choose another mayor with '/t set mayor' if your sure.
    msg_new_day=&6[Towny] &bA new day is here! Taxes and rent has been collected
    msg_new_king=&6[Towny] &b%s is now the king!
    msg_new_mayor=&6[Towny] &b%s is now the mayor!
    msg_new_nation=&6[Towny] &b%s created a new nation called %s
    msg_new_town=&6[Towny] &b%s created a new town called %s
    msg_plot_for_sale=&6[Towny] &b%s put the plot (%s) up for sale!
    msg_registration=&6[Towny] &bWelcome this is your first login.@&6[Towny] &bYou've successfully registered!@&6[Towny] &bTry the /towny command for more help.
    msg_war_eliminated=&6[Towny] &b%s was eliminated from the war.
    msg_war_forfeited=&6[Towny] &b%s forfeited.
    msg_war_join=&6[Towny] &b%s joined the fight!
    msg_war_lose_block=&6[Towny] &b(%s) belonging to %s has fallen.
    msg_war_score=&6[War] &b%s scored %d points!
    name_check_regex=^[a-zA-Z0-9]+[a-zA-Z0-9._-]*$
    name_filter_regex=[ /]
    name_remove_regex=[^a-zA-Z0-9._-]
    nation_creation_admin_only=false
    npc_prefix=[NPC]
    price_claim_townblock=50.0
    price_death=10.0
    price_death_wartime=200.0
    price_nation_neutrality=0.0
    price_nation_upkeep=100.0
    price_new_nation=1000.0
    price_new_town=250.0
    price_outpost=500.0
    price_town_spawn_travel=10.0
    price_town_upkeep=10.0
    pve_in_non_pvp_towns=true
    reset_log_on_boot=true
    save_on_load=false
    show_town_notifications=true
    switch_ids=64,69,70,71,72,77
    town_block_ratio=16
    town_block_size=16
    town_creation_admin_only=false
    town_limit=3000
    town_respawn=true
    unclaimed_plot_name=Unowned
    unclaimed_zone_build=true
    unclaimed_zone_destroy=true
    unclaimed_zone_ignore=14,15,16,21,50,56,65,66,73,74,89
    unclaimed_zone_item_use=true
    unclaimed_zone_name=Wilderness
    unclaimed_zone_switch=true
    using_essentials=true
    using_iconomy=true
    using_permissions=true
    using_questioner=false
    wartime_base_spoils=100.0
    wartime_home_block_hp=120
    wartime_min_height=60
    wartime_points_kill=1
    wartime_points_nation=100
    wartime_points_town=10
    wartime_points_townblock=1
    wartime_remove_on_monarch_death=false
    wartime_town_block_hp=60
    wartime_town_block_loss_price=100.0
    wartime_warning_delay=30
    
    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 13, 2016
  28. Offline

    dschertler

    Thank you so much Fuzzy! You are a God amongst plugin creators.
     
  29. Offline

    TheKingdomsMC

    We are having some difficulty in setting up the Max Towny Block limit with the .cvs file. Everything is configured right (we've checked at least 12 times now) yet it won't overwrite the default ratio setup. Is this a bug or is there something else we need to do?

    Configuration file:

    Code:
    allow_outposts=true
    allow_resident_plots=true
    allow_town_spawn=true
    allow_town_spawn_travel=false
    commands_nation=/nation,/n,/nat
    commands_nation_chat=/nc
    commands_plot=/plot
    commands_resident=/resident,/r,/res,/p,/player
    commands_town=/town,/t
    commands_town_chat=/tc
    commands_towny=/towny
    commands_towny_admin=/townyadmin,/ta
    commands_world=/townyworld,/tw
    daily_backups=true
    daily_taxes=true
    database_load=flatfile
    database_save=flatfile
    day_interval=86400000
    debug_mode=false
    default_capital_postfix= City
    default_capital_prefix=Capital:
    default_king_postfix=
    default_king_prefix=King
    default_max_town_blocks=150
    default_mayor_postfix=
    default_mayor_prefix=Mayor
    default_nation_postfix= Kingdom
    default_nation_prefix=
    default_resident_perm_ally_build=false
    default_resident_perm_ally_destroy=false
    default_resident_perm_ally_itemuse=false
    default_resident_perm_ally_switch=false
    default_resident_perm_friend_build=true
    default_resident_perm_friend_destroy=true
    default_resident_perm_friend_itemuse=true
    default_resident_perm_friend_switch=true
    default_resident_perm_outsider_build=false
    default_resident_perm_outsider_destroy=false
    default_resident_perm_outsider_itemuse=false
    default_resident_perm_outsider_switch=false
    default_town_name=
    default_town_perm_ally_build=true
    default_town_perm_ally_destroy=true
    default_town_perm_ally_itemuse=true
    default_town_perm_ally_switch=true
    default_town_perm_outsider_build=false
    default_town_perm_outsider_destroy=false
    default_town_perm_outsider_itemuse=false
    default_town_perm_outsider_switch=false
    default_town_perm_resident_build=true
    default_town_perm_resident_destroy=true
    default_town_perm_resident_itemuse=true
    default_town_perm_resident_switch=true
    default_town_postfix= Town
    default_town_prefix=
    delete_old_residents=false
    deleted_after_time=5184000000
    dev_mode=false
    first_run=false
    flatfile_backup=zip
    force_pvp_on=true
    friendly_fire=true
    health_regen=true
    health_regen_speed=30000
    inactive_after_time=86400000
    item_use_ids=259,325,326,327
    last_run_version=0.65
    line_not_perm_to_new_nation=&6[Towny] &bOnly admins are allowed to create nations.
    line_not_perm_to_new_town=&6[Towny] &bOnly admins are allowed to create towns.
    logging=true
    max_plots_per_resident=100
    min_distance_from_town_homeblock=0
    mob_removal=true
    mob_removal_entities=Monster,WaterMob,Flying,Slime
    mob_removal_speed=5000
    modify_chat_name=true
    msg_buy_resident_plot=&6[Towny] &b%s bought %s's plot!
    msg_couldnt_pay_taxes=&6[Towny] &b%s couldn't pay taxes%s
    msg_del_nation=&6[Towny] &bThe nation %s was disbanded!
    msg_del_resident=&6[Towny] &b%s lost all his Towny data!
    msg_del_town=&6[Towny] &bThe town of %s fell into ruin!
    msg_join_nation=&6[Towny] &b%s joined the nation!
    msg_join_town=&6[Towny] &b%s joined town!
    msg_mayor_abadon=&6[Towny] &bYou would abandon your people? Choose another mayor with '/t set mayor' if your sure.
    msg_mayor_abandon=&6[Towny] &bYou would abandon your people? Choose another mayor with '/t set mayor' if your sure.
    msg_new_day=&6[Towny] &bA new day is here! Taxes and rent has been collected
    msg_new_king=&6[Towny] &b%s is now the king!
    msg_new_mayor=&6[Towny] &b%s is now the mayor!
    msg_new_nation=&6[Towny] &b%s created a new nation called %s
    msg_new_town=&6[Towny] &b%s created a new town called %s
    msg_plot_for_sale=&6[Towny] &b%s put the plot (%s) up for sale!
    msg_registration=&6[Towny] &bWelcome this is your first login.@&6[Towny] &bYou've successfully registered!@&6[Towny] &bTry the /towny command for more help.
    msg_war_eliminated=&6[Towny] &b%s was eliminated from the war.
    msg_war_forfeited=&6[Towny] &b%s forfeited.
    msg_war_join=&6[Towny] &b%s joined the fight!
    msg_war_lose_block=&6[Towny] &b(%s) belonging to %s has fallen.
    msg_war_score=&6[War] &b%s scored %d points!
    name_check_regex=^[a-zA-Z0-9_]+[a-zA-Z0-9._-]*$
    name_filter_regex=[ /]
    name_remove_regex=[^a-zA-Z0-9._-]
    nation_creation_admin_only=false
    npc_prefix=[NPC]
    price_claim_townblock=30.0
    price_death=0.0
    price_death_wartime=10.0
    price_nation_neutrality=0
    price_nation_upkeep=12.0
    price_new_nation=7000.0
    price_new_town=2000.0
    price_outpost=500.0
    price_town_spawn_travel=1000.0
    price_town_upkeep=8.0
    pve_in_non_pvp_towns=true
    reset_log_on_boot=true
    save_on_load=false
    show_town_notifications=true
    switch_ids=64,69,70,71,72,77
    town_block_ratio=16
    town_block_size=16
    town_creation_admin_only=false
    town_limit=3000
    town_respawn=true
    unclaimed_plot_name=Unowned
    unclaimed_zone_build=true
    unclaimed_zone_destroy=true
    unclaimed_zone_ignore=14,15,16,21,50,56,65,66,73,74,89
    unclaimed_zone_item_use=true
    unclaimed_zone_name=Wilderness
    unclaimed_zone_switch=true
    using_essentials=true
    using_iconomy=true
    using_permissions=false
    using_questioner=false
    wartime_base_spoils=100.0
    wartime_home_block_hp=120
    wartime_min_height=60
    wartime_points_kill=1
    wartime_points_nation=100
    wartime_points_town=10
    wartime_points_townblock=1
    wartime_remove_on_monarch_death=false
    wartime_town_block_hp=60
    wartime_town_block_loss_price=100.0
    wartime_warning_delay=30
    
    The town-levels.cvs
    Code:
    0,, Ruin,Spirit ,,1
    1,, Hamlet,Owner,,16
    4,, Village,Mayor ,,64
    8,, Town,Lord ,,86
    12,, City,Lord ,,100
    
    The nation-levels.cvs
    Code:
    0,, Wilderness,, Lands,Leader , 
    1,Dominion of ,,, Center,King, 
    2,Lands of ,,, Center,King, 
    3,, Country,, Lands,King , 
    4,, Kingdom,, Lands,Emperor , 
    5,, Empire,, Lands,Emperor ,
    
    For some reason, when it is set up like this, the towns still have all of their blocks people still get increments of 16 towny blocks per new person. Any help is needed, many thanks from the Kingdoms MC server admin team.
     
  30. Offline

    LlmDl

    Completely stop your server and edit the files. /reload wont work.
     
  31. Offline

    amunro

    For some reason, we cannot claim more land for our towns!

    [​IMG]

    Here is my config for towny:

    Code:
    allow_outposts=true
    allow_resident_plots=true
    allow_town_spawn=true
    allow_town_spawn_travel=true
    commands_nation=/nation,/n,/nat
    commands_nation_chat=/nc
    commands_plot=/plot
    commands_resident=/resident,/r,/res,/p,/player
    commands_town=/town,/t
    commands_town_chat=/tc
    commands_towny=/towny
    commands_towny_admin=/townyadmin,/ta
    commands_world=/townyworld,/tw
    daily_backups=true
    daily_taxes=false
    database_load=flatfile
    database_save=flatfile
    day_interval=86400000
    debug_mode=false
    default_capital_postfix= City
    default_capital_prefix=Capital:
    default_king_postfix=
    default_king_prefix=King
    default_max_town_blocks=64
    default_mayor_postfix=
    default_mayor_prefix=Mayor
    default_nation_postfix= Nation
    default_nation_prefix=
    default_resident_perm_ally_build=false
    default_resident_perm_ally_destroy=false
    default_resident_perm_ally_itemuse=false
    default_resident_perm_ally_switch=false
    default_resident_perm_friend_build=true
    default_resident_perm_friend_destroy=true
    default_resident_perm_friend_itemuse=true
    default_resident_perm_friend_switch=true
    default_resident_perm_outsider_build=false
    default_resident_perm_outsider_destroy=false
    default_resident_perm_outsider_itemuse=false
    default_resident_perm_outsider_switch=false
    default_town_name=
    default_town_perm_ally_build=true
    default_town_perm_ally_destroy=true
    default_town_perm_ally_itemuse=true
    default_town_perm_ally_switch=true
    default_town_perm_outsider_build=false
    default_town_perm_outsider_destroy=false
    default_town_perm_outsider_itemuse=false
    default_town_perm_outsider_switch=false
    default_town_perm_resident_build=true
    default_town_perm_resident_destroy=true
    default_town_perm_resident_itemuse=true
    default_town_perm_resident_switch=true
    default_town_postfix= Town
    default_town_prefix=
    delete_old_residents=false
    deleted_after_time=5184000000
    dev_mode=false
    first_run=false
    flatfile_backup=zip
    force_pvp_on=false
    friendly_fire=false
    health_regen=true
    health_regen_speed=3000
    inactive_after_time=86400000
    item_use_ids=259,325,326,327
    last_run_version=0.67
    line_not_perm_to_new_nation=&6[Towny] &bOnly admins are allowed to create nations.
    line_not_perm_to_new_town=&6[Towny] &bOnly admins are allowed to create towns.
    logging=true
    max_plots_per_resident=100
    min_distance_from_town_homeblock=0
    mob_removal=true
    mob_removal_entities=Monster,WaterMob,Flying,Slime
    mob_removal_speed=5000
    modify_chat_name=true
    msg_buy_resident_plot=&6[Towny] &b%s bought %s's plot!
    msg_couldnt_pay_taxes=&6[Towny] &b%s couldn't pay taxes%s
    msg_del_nation=&6[Towny] &bThe nation %s was disbanded!
    msg_del_resident=&6[Towny] &b%s lost all his Towny data!
    msg_del_town=&6[Towny] &bThe town of %s fell into ruin!
    msg_join_nation=&6[Towny] &b%s joined the nation!
    msg_join_town=&6[Towny] &b%s joined town!
    msg_mayor_abandon=&6[Towny] &bYou would abandon your people? Choose another mayor with '/t set mayor' if your sure.
    msg_new_day=&6[Towny] &bA new day is here! Taxes and rent has been collected
    msg_new_king=&6[Towny] &b%s is now the king!
    msg_new_mayor=&6[Towny] &b%s is now the mayor!
    msg_new_nation=&6[Towny] &b%s created a new nation called %s
    msg_new_town=&6[Towny] &b%s created a new town called %s
    msg_plot_for_sale=&6[Towny] &b%s put the plot (%s) up for sale!
    msg_registration=&6[Towny] &bWelcome this is your first login.@&6[Towny] &bYou've successfully registered!@&6[Towny] &bTry the /towny command for more help.
    msg_war_eliminated=&6[Towny] &b%s was eliminated from the war.
    msg_war_forfeited=&6[Towny] &b%s forfeited.
    msg_war_join=&6[Towny] &b%s joined the fight!
    msg_war_lose_block=&6[Towny] &b(%s) belonging to %s has fallen.
    msg_war_score=&6[War] &b%s scored %d points!
    name_check_regex=^[a-zA-Z0-9]+[a-zA-Z0-9._-]*$
    name_filter_regex=[ /]
    name_remove_regex=[^a-zA-Z0-9._-]
    nation_creation_admin_only=false
    npc_prefix=[NPC]
    price_claim_townblock=50.0
    price_death=10.0
    price_death_wartime=200.0
    price_nation_neutrality=0.0
    price_nation_upkeep=100.0
    price_new_nation=1000.0
    price_new_town=250.0
    price_outpost=500.0
    price_town_spawn_travel=10.0
    price_town_upkeep=10.0
    pve_in_non_pvp_towns=true
    reset_log_on_boot=true
    save_on_load=false
    show_town_notifications=true
    switch_ids=64,69,70,71,72,77
    town_block_ratio=16
    town_block_size=16
    town_creation_admin_only=false
    town_limit=3000
    town_respawn=true
    unclaimed_plot_name=Unowned
    unclaimed_zone_build=true
    unclaimed_zone_destroy=true
    unclaimed_zone_ignore=14,15,16,21,50,56,65,66,73,74,89
    unclaimed_zone_item_use=true
    unclaimed_zone_name=Wilderness
    unclaimed_zone_switch=true
    using_essentials=true
    using_iconomy=true
    using_permissions=true
    using_questioner=false
    wartime_base_spoils=100.0
    wartime_home_block_hp=120
    wartime_min_height=60
    wartime_points_kill=1
    wartime_points_nation=100
    wartime_points_town=10
    wartime_points_townblock=1
    wartime_remove_on_monarch_death=false
    wartime_town_block_hp=60
    wartime_town_block_loss_price=100.0
    wartime_warning_delay=30
    
    and here is our config for iConomy:

    Code:
    # iConomy 5.0
    # %author     Nijikokun <nijikokun@gmail.com>
    # %license    GPLv2
    # %copyright  Copyright AniGaiku LLC (C) 2010-2011
    ##
    # Setup Notes
    #   - Default
    #     This node consists of all the 'default' data.
    #   - Formatting
    #     Allows you to control the output of how you will
    #     see the currency in-game with the major/minor features.
    #   - Banking
    #     Allows users to store money in a seperate location as
    #     well as transfer from bank to bank between users
    #     - Multiple
    #       Allows users to create multiple accounts with banks
    #     - Q & A
    #       Q: Why?
    #       A: Money on hand can be lost, money in banks should not
    #           be altered upon plugin specifictions in iConomy 5.0
    #   - Interest amount is done in seconds.
    #     - Online
    #       If only true, only one bank / account will recieve money for that player.
    #       If only false, it will go through each bank / account and deposit money.
    #     - Announce
    #       Sends message each time a player recieves money.
    #     - Amount
    #       - On
    #         Each time interest runs you can either deposit the money into a bank (Interest)
    #         or directly into a players holdings (Wage).
    #     - Interval
    #       - Seconds
    #         Basic Table:
    #           1 minute = 60 seconds
    #           1 hour = 1 minute * 60 = 3600 seconds
    #           1 day = 1 hour * 24 = 86400 seconds
    #           1 week = 1 day * 7 = 604800 seconds
    #   - Database
    #     - Type
    #       Can only be h2 or MySQL, no longer supports SQLite.
    #     - Settings
    #       If you choose h2, only the first two are needed, do not alter MySQL.
    #       - MySQL
    #         Do not use remote databases from free sites, please use either a
    #          remote database from a personal hosted VPS or DEDI or a local
    #          database. This will prevent any 'timeout' or 'invalid settings'
    #          or 'cannot connect to database' issues. Thank you :)!
    ##
    
    System:
        Default:
            Currency:
                Major: [ 'Rupie', 'Rupies' ]                # Major ([Major].Minor) 1.00 Dollar (With Seperate 1 Dollar)
                Minor: [ 'Coin', 'Coins' ]                    # Minor (Major.[Minor]) 0.23 Coins  (With Seperate 0 Dollars, 23 Coins)
            Account:
                Holdings: 300.0                            # Default holdings on hand upon join / creation.
            Bank:
                Name: iConomy                             # Default Bank Name
                Currency:
                    Major: [ 'Rupie', 'Rupies' ]
                    Minor: [ 'Coin', 'Coins' ]
                Account:
                    Fee: 100.0                             # Default cost to register an account
                    Holdings: 50.0                        # Default initial account holdings
        Formatting:
            Minor: false                                  # Example (true) 0.23 Coins and 1.23 Dollars (false) 0.23 Dollars and 1.23 Dollars
            Seperate: false                               # Example (true) 1 Dollar, 23 Coins (false) 1.23 Dollars (Only if Minor is true)
        Logging:
            Enabled: false                                # Logs transactions done inside iConomy only, other plugins must utilize the api. (Logs to SQL)
        Banking:
            Enabled: true
            Accounts:
                Multiple: false
        Interest:
            Enabled: false
            Online: true                                  # Only give to players who are online?
            Announce:
                Enabled: true
            Interval:
                Seconds: 60
            Amount:
                Cutoff: 0.0                               # Amount limit to be met until we stop giving interest. (0.0 for no limit)
                On: 'Players'                             # Banks or Players
                Percent: 0.0                              # Percent of holdings to give / take (Negative to take) (Overrides Min/Max)
                Maximum: 1                                # (Range) Maximum amount for random in between. (Make Max/Min equal for a flat-rate amount ie: 5/5)
                Minimum: 2                                # (Range) Minimum amount for random in between.
        Database:
            Type: 'MySQL'                                 # H2 or MySQL
            Settings:
              Name: 'minecraft'
              Table: 'iConomy'
              MySQL:
                  Username: 'root'
                  Password: '**********'
                  Hostname: 'localhost'
                  Port: 3306
     
Thread Status:
Not open for further replies.

Share This Page