[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

    Bikespot

    Code:
    2011-06-12 18:00:38 [INFO] [Towny] Database: [Load] flatfile [Save] flatfile
    2011-06-12 18:00:38 [SEVERE] Error occurred while enabling Towny v0.6 (Is it up to date?): com/nijikokun/bukkit/Permissions/Permissions
    java.lang.NoClassDefFoundError: com/nijikokun/bukkit/Permissions/Permissions
        at ca.xshade.bukkit.towny.Towny.checkPlugins(Towny.java:148)
        at ca.xshade.bukkit.towny.Towny.onEnable(Towny.java:116)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:125)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:750)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:253)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:134)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:112)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:232)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:219)
        at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:146)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.ClassNotFoundException: com.nijikokun.bukkit.Permissions.Permissions
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:36)
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:24)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
    I get this error in server logs. Im having problems when trying to use some commands. I can use /towny , but i cant use the admin one or create new. It just says unknown command.
     
  3. Offline

    looklee

    2011-06-13 17:11:46 [SEVERE] Could not pass event PLAYER_CHAT to Towny
    java.lang.StringIndexOutOfBoundsException: String index out of range: -1
    at java.lang.String.substring(String.java:1949)
    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:689)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:677)
    at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:32)
    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)


    this picture is using my server
    please tell me what happen error
     

    Attached Files:

    • 135.png
      135.png
      File size:
      202.7 KB
      Views:
      2
  4. Offline

    themammoth

    What does "/town set public off/on" do?
     
  5. Offline

    Michaelsd

    Whats the command to make it so you can claim more plots?
    I used to know it but I forgot RAWR...
     
  6. Offline

    yuckfoooo

    Town set public on/off hides the home chunk location. For example, a public town would say it's home block is on -3,24. When public is off, it won't tell you that. It's useful to hide towns in the mountains and what not :D

    Kind of pointless if you have inter-town /town spawn turned on though.

    Uh, it's something to do with bonus. It's in the town commands for admin, do /townyadmin ? and it will say something about bonus.

    If there is, it would be through the use of NPC's as named Player entities. I don't think it's possible to create a town without a mayor ATM, or it's just not documented.

    I don't know how the citizens mod works but if you can use commands on the NPCs it should work for Towny, just a guess though.

    Probably some sort of chat plugin conflicting with Towny (iChat, essentials, any coloring chat plugin or prefix/suffix changer might conflict)

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

    transient

    Has anyone been able to get HeroChat and Towny working together? I'd like to use the Nation prefix but still have chat channels, like [g] [Nation] [Player]: [Message]

    Thanks for any help you can provide!
     
  8. Offline

    Silarn

    The least you can do is read the page that you are posting on about your issues. Because I see a certain error message posted again with a solution located in the very same window.
     
  9. Offline

    SwearWord

    Allows people from other towns to use /t spawn townname to teleport into your town.
     
  10. Offline

    yuckfoooo

    Really? I thought it just disabled ./town [townname] from showing the homeblock (which it does)

    Glad to know it does that too, though.
     
  11. Offline

    link2110

    I know this has probably been asked about a million times, but @FuzzeWuzze are you planning to add features/recode this sometime soonish/in the future? I'd like to use this as a core plugin for a server i'm developing in addition to some i'm already running, but the way it is now, doesn't suit my needs. The idea is there, but the execution that Shade did is not as good imo. Great job on keeping it updated though!
     
  12. Offline

    Fyndler

    Anyone know why it says You dont have permission to build here ?

    Default:
    default: true
    info:
    prefix: '[&7Member]'
    suffix: ''
    build: true
    inheritance:
    permissions:
    - 'mcmmo.skills.*'
    - 'mcmmo.ability.*'
    - 'mcmmo.commands.whois'
    - 'towny.wild.*'
    - 'towny.town.claim'

    Can still build tought
     
  13. Offline

    transient

    @Fyndler Try the first post under the bugs section.
     
  14. Offline

    Fyndler

    Ah i see, only thing is that if i dont allow my player to build outside towns they will get a hard time doing anything until they get accepted into a town :/
     
  15. Offline

    transient

    @Fyndler 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
     
  16. Offline

    Fyndler

    Yeah i got that, but changing them to true instead does the same as give them permsson right ?
     
  17. Offline

    transient

    Yes, so remove the permission, change them all to true.

    Do a /tw and make sure wildperms has Build Destroy ItemUse and Switch in green
     
  18. Offline

    Fyndler

    Thanks
     
  19. Offline

    transient

    I'm not in game but it's something like /tw set wildperm Build

    Of course replace build with whatever you want. To remove, /tw set wildperm -Build

    Multiples are separated by commas.
     
  20. Offline

    Spooner

    So I've I got a player who's name is __GJ__ and whenever he joins town says "This user is not registered" and he can't do anything with Towny. Any ideas?
     
  21. Offline

    transient

    I believe it has to do with this line in your config:

    name_check_regex=^[a-zA-Z0-9]+[a-zA-Z0-9._-]*$
     
  22. Offline

    prom3th3an

    Id like to make a "default" town that anyone can join without being invited, is there a way to do this?
     
    GehennaGirl likes this.
  23. Offline

    MojoManagement

    any plans for another updates and fixes?
     
  24. Offline

    Pim1234

    what's wrong with permissions 3?
     
  25. Offline

    amunro

    Ok I have just encountered the strangest bug, and its happened twice now. The server crashed, and for some reason, one (only one) of the towns randomly deleted all the data from the town. The town still exists, but the residents are all gone, and so is the plotted land.

    Old town text file:


    Code:
    residents=Tenpenny,WilliamCornelius,pacman2221,Levy,Riko,teddie123,Pure1minur1576,375258,Krawman,shanemaxell,luxorboy,Player,Turbonic,God,Superman,SOFAR,mateo2891,payette123,j0k3r,lottrodjr,thguybhindu,lolqt,ewoods973,Quixoni
    mayor=Tenpenny
    nation=Norham
    assistants=WilliamCornelius,Hustyrust,
    townBoard=Welcome to our nation!
    protectionStatus=denyAll
    bonusBlocks=0
    taxes=50
    plotPrice=0
    plotTax=100
    pvp=false
    mobs=false
    public=true
    townBlocks=world:16,228;17,228;17,227;17,226;16,226;15,226;15,227;15,228;16,227;16,229;15,229;17,229;18,229;18,228;18,227;19,227;19,228;20,228;21,228;21,227;21,229;20,227;22,227;22,228;22,229;20,229;14,228;19,229;19,226;23,227;23,226;22,226;22,225;23,225;18,230;17,230;21,226;20,226;24,226;24,227;17,222;18,222;19,222;20,222;21,222;22,222;23,222;24,222;25,222;26,222;27,222;28,222;29,222;17,223;18,223;19,223;20,223;21,223;22,223;23,223;24,223;25,223;26,223;27,223;28,223;29,223;17,224;18,224;19,224;20,224;21,224;22,224;23,224;24,224;25,224;26,224;27,224;28,224;29,224;17,225;18,225;19,225;20,225;21,225;24,225;25,225;26,225;27,225;28,225;29,225;18,226;25,226;26,226;27,226;28,226;29,226;25,227;26,227;27,227;28,227;29,227;23,228;24,228;25,228;26,228;27,228;28,228;29,228;23,229;24,229;25,229;26,229;27,229;28,229;29,229;19,230;20,230;21,230;22,230;23,230;24,230;25,230;26,230;27,230;28,230;29,230;17,231;18,231;19,231;20,231;21,231;22,231;23,231;24,231;25,231;26,231;27,231;28,231;29,231;17,232;18,232;19,232;20,232;21,232;22,232;23,232;24,232;25,232;26,232;27,232;28,232;29,232;17,233;18,233;19,233;20,233;21,233;22,233;23,233;24,233;25,233;26,233;27,233;28,233;29,233;17,234;18,234;19,234;20,234;21,234;22,234;23,234;24,234;25,234;26,234;27,234;28,234;29,234;15,230;16,230;14,226;14,227;14,229;19,221;13,226;30,225;14,224;15,224;16,224;14,225;15,225;16,225;13,229;13,230;13,231;13,232;11,231;12,231;14,231;15,231;11,232;12,232;14,232;15,232;11,233;12,233;13,233;14,233;15,233;11,234;12,234;13,234;14,234;15,234;11,235;12,235;13,235;14,235;15,235;15,236;16,231;16,232;16,234;16,235;16,236;16,237;17,237;16,238;16,239;|
    homeBlock=world,21,228
    
    and it replaces it with this:

    Code:
    residents=
    nation=Norham
    assistants=
    townBoard=null
    protectionStatus=residentBuild,residentDestroy,residentSwitch,residentItemUse,allyBuild,allyDestroy,allySwitch,allyItemUse
    bonusBlocks=0
    taxes=0
    plotPrice=0
    plotTax=0
    pvp=false
    mobs=false
    public=true
    townBlocks=
    
    any suggestions? It just seems to wipe randomly. I am currently crawling through my 20mb log to find out what the hell happened, I will update with more info when I get it.
     
  26. Offline

    FuzzeWuzze

    I think its because the log file is open when the server crashes, its just a side effect of everything being in flat files which i hope to get away from in the next few weeks as the database stuff starts working...

    A bigger problem IMO is fixing your server so that it doesnt crash, which may involve setting up some sort of script to gracefully shut down the server once or twice a day at a certain time. Even on my server i have it setup to restart at Midnight every night using McMyAdmin, it only takes 5 seconds.
     
    AS1LV3RN1NJA likes this.
  27. Offline

    amunro

    Ok thanks :)

    The server is set to restart every 5hours, and for some reason it crashes from time to time. Something to do with it saying GC out of memory, even though i have about 300mb or ram left. Anyway thanks for the reply.
     
  28. Offline

    Orcem12

    Is this plugin working for 860 (I know I see the [818] :p) or is it just me?
     
  29. Offline

    fatmarley

    I have had issues with Towny recently, where when a person quits a city and joins another city ..sometimes.. either their resident file or even the old town file does not delete their name from the list. So when the server restarts, towny borkes cause of the name being in two places.

    I backup regularly so it hasn't been disastrous, but it has stopped me from using something like McMyAdmin.
     
  30. Works OK for me.
     
  31. Offline

    nspthegreat

    Is towny multiworld compatible???
     
Thread Status:
Not open for further replies.

Share This Page