[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

    Clancy Dawson

    It seems that the Permission Cache error is also caused when the world name had multiple words, mine was CBlock World for example, so I had to rename it and all related settings in plugins :S. Worth it though, towny is freakin' amazing, thank you so much Fuzze for taking up towny :)
     
  3. Offline

    littleleeroy

    Thanks also im so glad that Towny is working now :) i have no problems which is close to a first :p anyway, i know you prob dont want to but if you could it would be really helpful. can you add ignore blocks to the town permissions, not just the wilderness please :) :)
     
  4. Offline

    Kobra1984

    New install iConomy 5.0
    New install Towny 0.65
    In game type /balance I get Balance $0.0
    and ingame type /money get Money $30.00
     
  5. Offline

    andrewkm

    are you using essentials as well ?
     
  6. Offline

    Kobra1984

    Yes
     
  7. Offline

    cheepz

    Hey fuzze, is it possible to add a permissions node or a "minus" permission node so that Mayors and Assistant Mayor, can't invite my "Guest" Group into their towns?

    I hope that makes sense, my grammar is usually terrible. :p
     
  8. Offline

    FuzzeWuzze

    Balance isnt an iConomy command, its an Essentials command. Your seeing your "Essentials Economy" money ...which serves no purpose in towny.

    Yet another instance of Essentials having way too many commands in one plugin..
     
  9. Offline

    Kobra1984

    oh ok I feel stupid
     
  10. Offline

    cpalms

    Would it be possible to make this plugin work with BOSEconomy?
    http://forums.bukkit.org/threads/econ-boseconomy-v0-6-2-simple-server-economy-714.4874/

    BOSEcon doesn't use databases, therefore causes no lag, unlike iConomy. iConomy causes huge amount of lag on my server due to the response time between the server and the mySQL database. Similarly, any plugin based off of iConomy lags the server too when making transactions (i.e. claiming land, using town commands, etc.). The same goes for shops and other iConomy-required plugins.

    So is it possible to hook Towny into BOSEconomy?

    I really like Towny and iConomy but they just cause too much lag. Plus Factions kinda sucks when compared to Towny. :(
     
  11. Offline

    Unjust

    Ehh I still have a problem with the towny using money from the iconomy database. I'm using H2 and I have no errors in the start up or when trying to make one.
     
  12. Offline

    pydrex

    @FuzzeWuzze Id like to request a flag for "Flint and steal" allow or disallow under /town set flag Please
     
  13. Offline

    silentdojo

    /me Imagines how much more performance this plugin would gain from ditching flatfiles...

    Other than not having any type of database support this plugin works pretty good.
    @fuzzy Thanks so much for keeping up with this plugin. I know how hard it must be to run a server and update this huge plugin.
     
  14. Offline

    IAMWIN

    o fuzze not sure if u have said anythng to people yet but it can get messed up if u use worldguard and to just use some other plugins to replace worldguard :D
     
  15. Offline

    FuzzeWuzze

    Why use MySQL? Just use the H2 database it works fast, i havent ever experienced this lag you mention. Or are we talking about gigantic servers with 32+ people on at once and thousands of users?
    I routinely have over 10+ on my server and never have any real lag issues related to iConomy as far as i know.

    Care to be a bit more specific?

    Its a goal of mine to add this functionality, it will likely use H2 database and maybe MySQL. But the scope of such a project is pretty large, i already mapped out how i think the Tables need to look and what links what its just a matter of getting enough time to implement it. Probably sometime late June...

    As always feel free to PM me ideas for Towny...
     
  16. Offline

    IAMWIN

    hey whats with these errors?
    Code:
    2011-05-06 20:15:38 [INFO] [Towny] Loading Error: Exception while reading world file world
    2011-05-06 20:15:38 [SEVERE] ca.xshade.bukkit.towny.NotRegisteredException: rebels is not registered.
    2011-05-06 20:15:38 [SEVERE]     at ca.xshade.bukkit.towny.object.TownyUniverse.getTown(TownyUniverse.java:531)
    2011-05-06 20:15:38 [SEVERE]     at ca.xshade.bukkit.towny.db.TownyFlatFileSource.loadWorld(TownyFlatFileSource.java:517)
    2011-05-06 20:15:38 [SEVERE]     at ca.xshade.bukkit.towny.db.TownyDataSource.loadWorlds(TownyDataSource.java:158)
    2011-05-06 20:15:38 [SEVERE]     at ca.xshade.bukkit.towny.db.TownyDataSource.loadAll(TownyDataSource.java:75)
    2011-05-06 20:15:38 [SEVERE]     at ca.xshade.bukkit.towny.object.TownyUniverse.loadDatabase(TownyUniverse.java:579)
    2011-05-06 20:15:38 [SEVERE]     at ca.xshade.bukkit.towny.Towny.onEnable(Towny.java:92)
    2011-05-06 20:15:38 [SEVERE]     at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:127)
    2011-05-06 20:15:38 [SEVERE]     at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:632)
    2011-05-06 20:15:38 [SEVERE]     at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:218)
    2011-05-06 20:15:38 [SEVERE]     at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:116)
    2011-05-06 20:15:38 [SEVERE]     at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:94)
    2011-05-06 20:15:38 [SEVERE]     at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:217)
    2011-05-06 20:15:38 [SEVERE]     at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:204)
    2011-05-06 20:15:38 [SEVERE]     at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:144)
    2011-05-06 20:15:38 [SEVERE]     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:259)
    2011-05-06 20:15:38 [SEVERE]     at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
     
  17. Offline

    CptTwinklez

    This has been eating up a lot of my servers RAM, and causing it to crash frequently. Is there any way to stop this, without upgrading RAM?
     
  18. Offline

    JoshuaaLow

    Why is it that the consolde displays unknown command when i type /town?But it shows the general towny help when i type /towny?
     
  19. Offline

    NeoGriim

    I may have found the issue with town spawn. I was having the issue after changing the config and it appears that if you're using essentials and have that set to true it breaks /town spawn. I took it off and not it works fine.
     
  20. Offline

    Liger_XT5

    You are doing something wrong. I run 40+/- plugins on my server and there is barely a ram use difference between all on and all off.
     
  21. Offline

    FuzzeWuzze

    ^^ This, if your server is running less than 1gb then maybe i can see it being an issue but honestly you cant expect to really use any sizeable plugins if your using less than 1gb of RAM
     
  22. Offline

    Liger_XT5

    I'm running with 768mb set and milkadmin says:
    Free Memory: 49
    MB Used Memory: 75
    MB Total Memory: 125
    MB Max Memory: 647
    MB
     
  23. Offline

    FuzzeWuzze

    Are you using 2.2 of Essentials and the latest version of the Towny code? I fixed this some time ago, im running Essentials and it works fine. Granted the actual point of essentials(delayed tp, tp cost) arent turned on right now so theres no real point lol...
     
  24. Offline

    NeoGriim

    Yeah, everything seems to be updated... I may be behind on a build or two of essentials. It doesn't matter though, I have iconomy for money and all the other plugins on, doesn't seem to effect towny to have essentials not detected. I just thought that the information might help you cause I saw you were having issues with /town spawn.
     
  25. Offline

    Schreckschraube

    Hey - great Plugin!
    Its working perfect but after some time the users can destroy and build everywhere - on other plots and the home plot too. In the config are all default permissions off and for the town too. If I restart the server the permissions are okay, but after some time the can build and destroy everywhere again.

    Please help me :(
     
  26. Offline

    Unjust

    It's hard to be more specific but, here I go. Towny is not using the money from the Iconomy database and letting people use towny for free. I'm using H2. I have NO ERRORS :( when starting up the server and/or using towny and iconomy together EX: Setting up a town or claiming land. It's hard for me to give you extra info because there isn't really anymore.

    Basically Towny is not taking away money from a iconomy account this happened before iconomy 5 so I don't think it has anything to do with it.

    Ex: Unjust buys a town *set up to be 500* but he only has 30 but can set it up anyways. Without any deduction whatsoever.

    Both Iconomy and Towny work Iconomy also works with another plugin but, not Towny.
     
  27. Offline

    Dysalot

    Have the same issue, but my iConomy is set up with mySQL. Also mcMMO broke, due to this update.
     
  28. Offline

    FuzzeWuzze

    Did you turn on Towny to use iConomy in the config file?
    Did you update to H2 from SQLite? If so check your iConomy config and ensure that your database is set to H2SQL. I had mine set to Sqlite still for a long time and a lot of stuff sorta worked...
    I know the Economy stuff works, a bunch of people are using it and i tested it several times.
     
  29. Offline

    leetgamer

    The OP is confusing me, it shows that it's on 0.65 but I see nothing past 0.63

    Edit: nvm found it..
     
  30. Offline

    Unjust

    TY. I would have never guess that the Iconomy was set to false :DDD

    Thanks a ton FuzzWuzze. :D
     
  31. Offline

    leetgamer

    I have a question. My server runs several maps, and I want to limit Towny commands to only one of them using permissions, but I can't for the life of me see how. Is this possible?

    EDIT ONCE AGAIN: My other admin figured it out. Now I'm just making myself look dumb.
     
Thread Status:
Not open for further replies.

Share This Page