[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

    FuzzeWuzze

    Already stated not updating for 803 because there's a new Minecraft out and it will require a new recompile in a day or two anyways.

    I may throw up a version of Towny using the UNSUPPORTED bukkit version for 1.6.4. Use at your own risk, and it likely wont be worth the effort for most people anyways as none of their other plugins will be updating until a Recommended build comes out.

    I assume you mean they are not able to build(not unable)? Again for issues like this turn on debug mode, reproduce the steps(have a player who should be able to build but cant try to place a block), this should trigger the code and print out the debug messages on what certain values are being set in the code and make debugging way easier... post the server log here or PM me.

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

    imperium

    Got any time set for 812 update?
     
  4. Offline

    Liger_XT5

    812 is not a recommended version nor is MC 1.6_4 very stable due reports of intense lag.
     
  5. Offline

    Damian Mason

    Just saying, I'm running 814 with this version of Towny, no problems.
     
  6. Offline

    Phantom Index

    Maybe add a banish player from town. That player can't walk into the town.

    I do hope Towny is rdy for permissions 3 when it's updated for a yet to be created recommended build for a yet to be created stable version of 1.6
     
  7. 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.


    Didn't get a response on this when I posted it and now it's buried 2 pages back so thought I would try again.

    Thanks

    JD
     
  8. Offline

    Tungsten

    I've read through the thread and checked the Towny site, but I may have missed it: can towny be configured so that players pay in blocks or items (eg: 64 gold bars to start a town)? If not is this a planned feature? If it isn't, I respectfully request it's consideration.
     
  9. Offline

    FuzzeWuzze

    There are Bank mods and Trading mods that allow players to buy/sell goods at a set price to get iConomy money.
    I don't feel adding this would really give much benefit for how long it would take when there's already easily setup solutions.

    You need to look up the Regex changes in order to let him in, im hoping to fix this when i transition to database files.
    Its technically possible now to do and set up other features. You can create a NPC1 file in your residents folder(dont add to residents.txt), and you can /townyadmin set mayor <Town> NPC and it should assign it to them. I have had various success though with the city disappearing claims disappearing....
     
  10. Offline

    JDD

    @FuzzeWuzze what if the npc's city were to have an admin set as the mayor, or some other form of an elevated real account?
     
  11. Offline

    FuzzeWuzze

    Well, either the NPC is the mayor of the city or they arent, im confused what your asking? But yes another alternative is to make some other player(like a banned player) Mayor...you can also do that with /townyadmin set mayor
     
  12. Offline

    JDD

    @FuzzeWuzze the idea is this, we are going to have 4 cities on our server that contain npc's/shops they are basically nuetrality zones, to an extent but we still want them to fall under towny government as on occasion these cities will be attackable to players as a server event. But being that there will be no true population there to pay upkeep or maintain the needed population:land ratio we want them to be exempt from these rule sets. NPC's will be in the city as shop keepers a few guards, things like that, and when the city is attackable the npc's will switch to an aggresive / hostile stance towards players entering the city. These cities are fairly large and will be prebuilt before the server is set to a live status. Hopefully that makes a bit more sense?
     
  13. Offline

    yup8

    @FuzzeWuzze , please answer
    is there like a default setting for a city to be in ?
     
  14. Offline

    Moe041991

    THanks Fuzze for keeping up this great plugin. Iam looking forward to a 1.0 version so i can put this as the basic plugin on my server :)
     
  15. Offline

    FuzzeWuzze

    I dont think so

    This should work already except that they will be taxed just like every other towns. You can give them bonus claims when setting it up to allow a town with just a NPC mayor to h ave as many blocks as you want.
    Just make sure to give their town bank like 5 million coin or something crazy that will last forever in your tax system.
     
  16. Offline

    HawtNips

    I am attempting to create a similar town, where the starter town is controlled by a non-player for the sake of allowing me to join another town and play like anyone else even though i am an admin. I created a resident file and tried to set the mayor to that resident but it continuously give me the message "[Towny] [NPC]1 is not registered"
     
  17. Offline

    vapid2323

    I have an admin town thats large about 1000 plots and when a user try to make a new tow they get an error that they are to close to another town.

    I thought it was based on the home block but I must be wrong, my admin city is at 0,0 and the new city he is trying to make is at 266,491

    I figure thats far enough away, are my settings wrong?

    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=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= 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=true
    deleted_after_time=2592000000
    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=604800000
    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=50
    mob_removal=true
    mob_removal_entities=Monster,WaterMob,Flying,Slime
    mob_removal_speed=5000
    modify_chat_name=false
    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=0.0
    price_death_wartime=200.0
    price_nation_neutrality=0.0
    price_nation_upkeep=400.0
    price_new_nation=16000.0
    price_new_town=8000.0
    price_outpost=1500.0
    price_town_spawn_travel=50.0
    price_town_upkeep=50.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=0
    town_block_size=20
    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=false
    using_iconomy=true
    using_permissions=true
    using_questioner=true
    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
    
     
  18. Offline

    HawtNips

    How were you able to make an Admin town? please share with me your config files or resident files if it will help.
     
  19. Offline

    RedValkyrie

    I have a bug. One town in the world keeps breaking. All the plots disappear, all the residents are removed, and sometimes the town crumbles into ruin. When you walk over a plot, it says ~Null, if someone previously owned it, and ~Wilderness if it was unowned. The money in the bank stays the same, and is sufficient to pay upkeep.

    Anyone else getting this error? Can anyone else help? I get no errors related to towny in the server log related to this, the only things I see are like below:


    2011-05-22 18:14:13 [INFO] town set name SnuggliesCuddlieslandofLove?
    2011-05-22 18:14:13 [SEVERE] Could not pass event PLAYER_COMMAND_PREPROCESS to Towny
    java.lang.NullPointerException
    at ca.xshade.bukkit.towny.object.TownyIConomyObject.getIConomyHolding(TownyIConomyObject.java:145)
    at ca.xshade.bukkit.towny.object.TownyIConomyObject.collect(TownyIConomyObject.java:40)
    at ca.xshade.bukkit.towny.object.TownyIConomyObject.pay(TownyIConomyObject.java:46)
    at ca.xshade.bukkit.towny.object.TownyUniverse.renameTown(TownyUniverse.java:285)
    at ca.xshade.bukkit.towny.event.TownyPlayerListener.townRename(TownyPlayerListener.java:2029)
    at ca.xshade.bukkit.towny.event.TownyPlayerListener.townSet(TownyPlayerListener.java:1878)
    at ca.xshade.bukkit.towny.event.TownyPlayerListener.parseTownCommand(TownyPlayerListener.java:982)
    at ca.xshade.bukkit.towny.event.TownyPlayerListener.onPlayerCommandPreprocess(TownyPlayerListener.java:411)
    at org.bukkit.plugin.java.JavaPluginLoader$5.execute(JavaPluginLoader.java:230)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:257)
    at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:669)
    at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:640)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:634)
    at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:32)
    at net.minecraft.server.NetworkManager.a(NetworkManager.java:195)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:74)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:370)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
     
  20. Offline

    vapid2323

    Uhh I posted the config in the last post...

    Just do:

    /townyadmin givebonus [town] [#plots]

    then you can got nuts and have a huge admin town even with no players.
     
  21. Offline

    HawtNips

    im still tied to the town as mayor though, how do I make the mayor an NPC?
     
  22. Offline

    vapid2323

    not sure about that one sorry
     
  23. Offline

    HawtNips

    then who is mayor of your admin town?
     
  24. Offline

    _knot_

    Hello! Amazing work on keeping Towny updated!
    For your next RB / 1.6 release can you please update to use Questioner again? I'm about to setup nations and enable war and I want it to remain somewhat balanced.
     
  25. Offline

    HawtNips

    Ok for some reason now I am able to set NPC1 as my mayor and it is exactly what I was looking for. I can't say how I managed to make it work but thanks for the help guys.
     
  26. Offline

    Robertas279

    Hey, loving your work. Thanks for keeping it alive. I got some problems witch i cant solve myself. Can you please explain what this means? I get spammed each time player writes sometthing.

    [SEVERE] Could not pass event PLAYER_CHAT to Towny
    java.lang.StringIndexOutOfBoundsException: String index out of range: -1
    at java.lang.String.substring(Unknown Source)
    at ca.xshade.bukkit.towny.event.TownyPlayerListener.onPlayerChat(TownyPlayerListener.java:96)
    at org.bukkit.plugin.java.JavaPluginLoader$6.execute(JavaPluginLoader.java:278)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:310)
    at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:677)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:665)
    at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:32)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:215)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:396)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:308)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
     
  27. Offline

    yup8

    so @FuzzeWuzze , how can i allow mayors with names that inculde & and /
     
  28. Offline

    semibreve42

    It has to do with the regex filter - I know it was discussed earlier on in this thread...

    (I haven't had to deal with it myself or I would just tell you)
     
  29. Offline

    yup8

    regex O.O?
     
  30. Offline

    hatstand

    In your towny config file, set 'name_check_regex' to ^[^\s]+$ ?
     
  31. Offline

    Silarn

    I'm wondering if the plugin could be slightly updated to use player.setDisplayName() as the method to show names in chat (such as "Mayor Silarn") rather than trying to directly alter the displayed name using substrings. As it is now, it conflicts with a few different chat plugins causing these titles to simply not appear or be overwritten.

    ---

    Just want to add that I'm also getting essentially identical PLAYER_CHAT errors as Robertas above. It doesn't cause any game-stopping problems. I think it simply has to do with chat plugin conflicts - which would probably be fixed by making the above change.
     
Thread Status:
Not open for further replies.

Share This Page