[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

    NeonJ

    Nope. Permissions 2.7.2.
     
  3. Offline

    LlmDl

    You haven't told us which craftbukkit you use.
     
  4. Offline

    NeonJ

    b818 if I recall correctly.
     
  5. Offline

    LlmDl

    Towny 0.68 is meant for CB818, update.
     
  6. Offline

    FuzzeWuzze

    Just FYI for other people the way i solved this on my server was to give everyone towny.wild.* on my "non towny" world. This lets them do everything in that world, sure theres towny and everything is wilderness but because you never change areas it only pops up once when you log in...then when they go through the portal to my other world it uses that worlds permissions file which has restricted building.
     
  7. Offline

    Phantom Index

    BTW if i edit my settings to the ones you suggested on first post about people being able to destroy in towns... I want wilderness to be able to be edited by players while towns are protected, but looking at this I don't think that's possible right now?
     
  8. Offline

    Snaipe

    well, you could edit your world's setting file (in ./Towny/data/worlds ) and change the 'unclaimedZoneBuild' and
    'unclaimedZoneDestroy' to true, then configure your cities so as to deny player's modifications.
     
  9. Offline

    madflavius

    I'm sorry to waste time, but I've tried to fix this error without spamming this thread for about two weeks now off and on, and it has persisted through several versions of Towny and Bukkit updates. Chances are, it's a stupid error. I am running Bukkit Build 818 and Towny 0.68. Error log:

    Code:
    2011-06-07 07:21:47 [SEVERE] Could not pass event PLAYER_INTERACT to Towny
    java.lang.NullPointerException
        at ca.xshade.bukkit.towny.event.TownyPlayerListener.onPlayerInteract(TownyPlayerListener.java:124)
        at org.bukkit.plugin.java.JavaPluginLoader$9.execute(JavaPluginLoader.java:299)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:310)
        at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:162)
        at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:133)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:524)
        at net.minecraft.server.Packet15Place.a(SourceFile:57)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:217)
        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:401)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:311)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Active plugins are spoiler-tagged.

    Show Spoiler
    Appleseed, Bandages, Citizens, CommandSigns, creaturebox, dynmap, Gastronomic, GastronomicWater, General, HeroicDeath, iConomy, Lockette, MineCal, MineMail, Permissions, PorteCoulissante, RetractableBridge, Towny, Turnstile, VoxelAir, VoxelPort, VoxelSniper, WeatherGod, WorldEdit


    It seems that this error occurs with greater frequency as players move in and out of claimed town blocks, but this could be a false correlation--it's hard to pinpoint what action causes this to happen, as it seems to happen constantly. We are experiencing severe lag as a result, sometimes several seconds before blocks break after the player digs or mines.
     
  10. Offline

    Phantom Index

    What a weird way of doing it. The settings on the config don't effect the worlds? slightly confusing.

    And you mean deny all players to destroy towns? I'm lost

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

    rslink

    @Phantom Index
    Just change the two lines to:


    unclaimedZoneBuild: true
    unclaimedZoneDestroy: true

    you don't need to change the settings for towns.
     
  12. Offline

    noahk11

    Sugestion: Make towns definable by areas instead of chunks! It would make it SO much better!
     
  13. Offline

    Phantom Index

    All of them are true. even in the original config. What do i change xD?
     
  14. Offline

    rslink

    Could it be another plugin?
     
  15. Offline

    Phantom Index

    I don't understand the question. All I simply want to do is allow anyone to edit the Wilderness, but I do not want players who are not part of the town to be able to destroy the town.

    That bug where you destroy something in the Wilderness and then walk into a Town and destroy in it is really bad. I want to avoid it.
     
    RazorFlint likes this.
  16. Offline

    LlmDl

    If your config.properties already has the wilderness stuff set to true, remove the any towny wilderness perm you may have in your permissions file.
     
  17. Offline

    Phantom Index

  18. Offline

    Angela Elliott

    the fix that was posted for the player_chat error forces the towny prefix. this means mods and admins have lost their prefix, is this something that can be changed or made optional?
     
  19. Offline

    FuzzeWuzze

    This.

    Remove towny.wild.*
    Set all your permissions to true for your unowned plots, set all city_default permissions to false.

    This will only change future cities founded, if you want to set it for your existing town(s) you type /town set perm deny i believe it is, this will turn off every permission. Only mayors can build/destroy everywhere in the city, residents of the city can only modify their owned plots.

    Of course you may want to modify this a bit to turn on Resident switch/item use etc so they can open doors to the city.
     
  20. Offline

    Silarn

    @Angela Elliott
    You can redownload the .jar and try that version. I've had a version posted for the last day that would ensure that a new set display name would be incorporated into the Towny name. So I just changed the initialization on playerJoin to generate the starting name based on the current displayName. But no promises that this wont cause the Towny prefix/suffix to start multiplying.
     
  21. Offline

    Boris Rybalov

    where can I find the Config file within the Properties?

    like for download?

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

    hutchpe

    When will we be able to run towny on permissions 3.x
     
  23. Offline

    Chanito

    Hey guys, my players are getting a message saying: Is not registered so they cant create a town or join one, any ideas on why?
     
  24. Offline

    Ratchet

    this. only plugin out of 45+ i'm running that I need updated for it..
     
  25. Code:
    2011-06-08 19:50:29 [SEVERE] Could not pass event PLAYER_INTERACT to Towny
    java.lang.NullPointerException
        at ca.xshade.bukkit.towny.event.TownyPlayerListener.onPlayerInteract(TownyPlayerListener.java:150)
        at org.bukkit.plugin.java.JavaPluginLoader$9.execute(JavaPluginLoader.java:299)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:310)
        at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:162)
        at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:133)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:524)
        at net.minecraft.server.Packet15Place.a(SourceFile:57)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:217)
        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:401)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:311)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    My poor server log is being flooded with this! It doesn't seem to be having any detrimental effects on Towny, however it does make the log impossible to look through, as well as contributing towards a great deal of server lag.

    Towny v0.68
    CB 818
     
  26. Offline

    zonedabone

    I can't figure out how to enable renaming towns. There's no setting for it but whenever anyone tries it says renaming disabled.
     
  27. Offline

    LlmDl

    Renaming was disabled in .68

    You'll need top stop your server and edit the text files.
    Towns.txt
    The file in /data/towns/
    And each resident file in /data/residents/
     
  28. Offline

    dumptruckman

    I would like to suggest that if you ever change chests to be protected under towny perhaps make it optional. I think my server is more interesting because theft is possible and people come up with better and better ways to secure their chests.
     
  29. Offline

    SwearWord

    Yeah building vaults is important.
     
  30. Offline

    Shigan

    Is there any way to make it to where chests cannot be protected by a person placing a block on top of the chest inside of a Towny?

    I am sick and tired of my players doing that to avoid being raided.
     
  31. Offline

    hutchpe

    yeah same here I'm having problems with other plugins that could be fixed if I used 3.x
     
Thread Status:
Not open for further replies.

Share This Page