[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

    I did something similar on my test server to test the various permissions. I made an imaginary player named TestMayor who i could assign mayor ownership too so i could test regular resident permissions without being an admin or mayor.

    Theres a few things you gotta do

    Add them to the residents.txt in the root of the data folder.
    Then copy another player.txt file in the data/resident directory and rename it to your character.txt, also you can put them in the town via this file
    Then open the data/town folder, find your town and add your character name to the residents list

    I dont see why this wouldnt work...

    /town set plotprice X

    Its a town wide cost you cant set up individual plot costs. Thats one thing i would like to see if i can change but will require some work.

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

    Dylan Helling

    Ok thankyou very much
     
  4. Offline

    FuzzeWuzze

    If anybody is having issues with build/switch/etc, please turn debug=true, perform the action that isnt working and c/p the console output ...i tested a ton of different combinations and every time i could build when i should and couldnt when i shouldnt.
     
  5. Offline

    coolbling

    Please Help
    I need help every time I move it says:
    Could not create permissions cache for the world (world2 btw world 2 is the name of my world
    Also it says:
    Not registered, but already registered when trying to register.
    I tried taking all of my plugins out and just that one leaving it in but nothing works
    I have permissions,iconomy,and essentials
    Please Help
     
  6. Offline

    jcrom95

    I had to re generate a new world for mine to work
     
  7. Offline

    FuzzeWuzze

    Did you read the thing that causes this? Its generally because you didnt setup permissions right, you have to rename the config file it gives you.
     
  8. Offline

    coolbling

    I tried that it didn't work.

    Which permissions file because i have renamed my permissions file to world 2 (my world).

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

    IAMWIN

    what are the permissions plz?
     
  10. Offline

    Zane B.

    hey, can you change the /resident commands to something else? They interfere with the Plugin, Residence's commands, and I really want both plug-ins

    I dont remember where i got em,
    (try original post)
    but heres the permissions i put for my Default group
    lol i liked how u edited your post to be nice.
    - 'towny.town.claim'
    - 'towny.town.new'
    - 'towny.publicspawntp'

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

    jcrom95

    hey fuzzeWuzze, how do i make pvp aloud in the wilderness and not in towns? and how do i edit it so people can build in the wilderness
     
  12. Offline

    IAMWIN

    are there any more?
     
  13. Offline

    Zane B.

    yea, i think i just left out the admin one. hold on lemme see if i can find/

    • 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.
    It says do not give them towny.wild*, it screws things up


    Put these in the main post too Fuzze!

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

    IAMWIN

    ok well do u have the full list? cus i am adding for admins also, or can u give source if thers more?
     
  15. Offline

    Zane B.

  16. Offline

    IAMWIN

    ok thanks alot man
    u should help me out on my server, i just deleted my world and starting another from scratch so its probably going to be hard
    and if u want to then add me on skype if u got it my skype is kcboozer
     
  17. Offline

    maxsteele

    I added towny.admin.* to my mod group, and they still can't build in the wilderness.
    I'll try turning on debug and see if I can get you any useful information.
    EDIT:
    Ok, I got some debug info. First, I'll show you the permissions I have set for my Mod group:
    Code:
        Mod:
            default: false
            info:
                prefix: '&e[&2Mod&e] '
                suffix: ''
                build: true
            inheritance:
                - VIP15
            permissions:
                - 'general.teleport'
                - 'general.teleport.here'
                - 'general.items'
                - 'vanish.vanish'
                - 'worldguard.god'
                - '/heal'
                - 'bb.admin.info'
                - 'towny.admin.*'
    And here is andrewsauce32 getting added to this group:
    Code:
        andrewsauce32:
            group: Mod
            permissions:
    
    All of the other permissions I give him there work. I then asked him to try placing a block in the wilderness, and here is what the Towny debug had to say:
    Code:
    2011-04-30 23:16:29 [INFO] [Towny] Debug: Perm Check: Does andrewsauce32 have the node 'towny.wild.block.4.build'?
    2011-04-30 23:16:29 [INFO] [Towny] Debug:     Does not have permission.
    2011-04-30 23:16:29 [INFO] [Towny] Debug: onBlockPlacedEvent took 0ms (andrewsauce32, true)
    2011-04-30 23:16:30 [INFO] [Towny] Debug: onPlayerItemEvent took 0ms
    2011-04-30 23:16:30 [INFO] [Towny] Debug: Perm Check: Does andrewsauce32 have the node 'towny.wild.block.4.build'?
    2011-04-30 23:16:30 [INFO] [Towny] Debug:     Does not have permission.
    2011-04-30 23:16:30 [INFO] [Towny] Debug: onBlockPlacedEvent took 0ms (andrewsauce32, true)
    2011-04-30 23:16:30 [INFO] [Towny] Debug: onPlayerItemEvent took 0ms
    2011-04-30 23:16:30 [INFO] [Towny] Debug: Perm Check: Does andrewsauce32 have the node 'towny.wild.block.4.build'?
    2011-04-30 23:16:30 [INFO] [Towny] Debug:     Does not have permission.
    2011-04-30 23:16:30 [INFO] [Towny] Debug: onBlockPlacedEvent took 1ms (andrewsauce32, true)
    2011-04-30 23:16:30 [INFO] [Towny] Debug: onPlayerItemEvent took 0ms
    2011-04-30 23:16:30 [INFO] [Towny] Debug: Perm Check: Does andrewsauce32 have the node 'towny.wild.block.4.build'?
    2011-04-30 23:16:30 [INFO] [Towny] Debug:     Does not have permission.
    2011-04-30 23:16:30 [INFO] [Towny] Debug: onBlockPlacedEvent took 0ms (andrewsauce32, true)
    2011-04-30 23:16:30 [INFO] [Towny] Debug: onPlayerItemEvent took 0ms
    2011-04-30 23:16:30 [INFO] [Towny] Debug: Perm Check: Does andrewsauce32 have the node 'towny.wild.block.4.build'?
    2011-04-30 23:16:30 [INFO] [Towny] Debug:     Does not have permission.
    2011-04-30 23:16:30 [INFO] [Towny] Debug: onBlockPlacedEvent took 1ms (andrewsauce32, true)
    2011-04-30 23:16:30 [INFO] [Towny] Debug: onPlayerItemEvent took 0ms
    2011-04-30 23:16:30 [INFO] [Towny] Debug: Perm Check: Does andrewsauce32 have the node 'towny.wild.block.4.build'?
    2011-04-30 23:16:30 [INFO] [Towny] Debug:     Does not have permission
    It says the same thing when I give that Mod group Towny.wild.*
    EDIT:
    I got it to work for andrew, but I had to put him in the Admin group, which gets '*', and I had to op him in the regular Minecraft server. If I op him while he's in the Mod group, he still can't do anything in the Wild. He must be in the Admin group as well as being opped. That seems to tell me that towny.wild.* or towny.admin.* isn't quite right for the permissions...
    EDIT EDIT EDIT
    I restarted the server after I opped andrew, and that's what seemed to work to allow permissions for building in the wild. Maybe Towny permissions aren't working for towny.wild or towny.admin unless the person is opped? I know other permissions are working, because I have a VIP group that are the ones who can be mayors, and I gave them the towny.town.claim , which works fine for them.
     
  18. Offline

    irobot

    can some one help me:

    i install towny and all is well until i start up run.bat whitch shows no notice that towny is even there HELP??? [740]

    PLEASE
     
  19. Offline

    Hregrin

    Thanks! It worked by adding them to towns/mytown.txt! I don't understand why it wouldn't work by simply adding them in residents.txt and in residents/theirnames.txt, though...

    Well, it works, that's the more important! Thanks for all the good work, BTW ;)
     
  20. Offline

    FuzzeWuzze

    Interesting, i will check this tommorrow. Can you also post your config?

    Care to be a bit more specific? This really doesnt tell me much. You put towny.jar in your plugins directory, and run your .bat file which i assume starts bukkit....it should show towny loading in your console.

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

    irobot

    i did all that just the console doesnt load it

    i got it to work i made a town BUT what does it mean by: not enough available town blocks to claim

    how DO i set the bounderies for my town?

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

    coolbling

    I have configured permissions right.
    The config file says world 2.
    I just don't now what to do anymore.
    Please Help Me
     
  23. Offline

    DiddiZ

    Is there a way to get the source code?
     
  24. Offline

    NEO

  25. Offline

    coolbling

    Can You help me.
    When i try to move in my world it says
    Unable to cache permissions blah blah blah...
    Not registered when trying to register.
    I don't know what to do.
    Please Help
     
  26. Offline

    DiddiZ

  27. Offline

    NEO

    @coolbling , unfortunately im not the dev for towny nor have i played around with it enough to be providing people support for there issues. Sorry.

    @DiddiZ , Unfortunately it is. Nothing on fuzze's github :(
     
  28. Offline

    coolbling

    NEO by the way can you add me to the server, I applied.
     
  29. Offline

    maxsteele

    Code:
    allow_outposts=true
    allow_resident_plots=true
    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=false
    database_load=flatfile
    database_save=flatfile
    day_interval=86400000
    death_price=0
    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= Township
    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=true
    health_regen_speed=30000
    inactive_after_time=2592000000
    item_use_ids=259,325,326,327
    last_run_version=0.63
    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,Slime,Creeper
    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 VIP to be mayor with '/t set mayor' if you're 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 [EMAIL]login.@&6[/EMAIL][Towny] &bYou've successfully [EMAIL]registered!@&6[/EMAIL][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=true
    npc_prefix=[NPC]
    price_claim_townblock=0
    price_death=0.0
    price_death_wartime=0.0
    price_nation_neutrality=0
    price_nation_upkeep=0
    price_new_nation=0
    price_new_town=0
    price_outpost=0
    price_town_spawn_travel=0
    price_town_upkeep=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=16
    town_creation_admin_only=true
    town_limit=3000
    town_mob_damage=false
    town_respawn=true
    unclaimed_plot_name=Unowned
    unclaimed_zone_build=false
    unclaimed_zone_destroy=true
    unclaimed_zone_ignore=3,6,13,37,38,39,40,50,54,58,61,65,69,70,72,75,76,77,81
    unclaimed_zone_item_use=true
    unclaimed_zone_name=Wilderness
    unclaimed_zone_switch=true
    using_essentials=false
    using_iconomy=false
    using_permissions=false
    using_questioner=false
    wartime_base_spoils=100
    wartime_death_price=200
    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
    wartime_warning_delay=30
     
  30. Offline

    FuzzeWuzze

    Ill say how it works for my server to see if that clarifies anything

    On my server i have two worlds using multiverse, the first one is in the world folder, the 2nd one is in the rp folder.
    In my plugins/permissions folder i have two yml files, world.yml and rp.yml.

    Is your 2nd world folder really called world 2 with a space in it? I dont think thats allowed and is likely the issue...

    Lol not to be a dick, but did you even read the config file?
    using_permissions=false

    Your not even using Permissions with Towny. Turn that on and the issue goes away.
    You might also want to turn on iConomy and essentials if your using those...

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

    Braden1996

    Every time i upload the .jar file and start my server the mod just is not detected. I type /towny and the command does not exist any help?
     
Thread Status:
Not open for further replies.

Share This Page