[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

    Janb

    @FuzzeWuzze

    Heya, sorry if you're plagued by this questions but any plans to include Questioner in the nation process? The (relatively) recently patched version of Questioner works splendidly with your latest Towny, but it seems as though it was made only to work with town resident invites, and not nation town invites. I want to allow players to create nations on their own but at this point they're able to add any town without the town's say-so, set taxes high, and essentially steal from the town's coffers.
     
  3. Offline

    Dazmo

    @Fuzzewuzze, Sorry if youve answered this, but - How do you compile?
    Eclipse IDE complains about Questioner. do you just ignore it? remove the build path for it? etc. . .
    I would like to contribute fixes and features but so far it's been daunting - mostly because Eclipse is so sthoopid. I'm getting the hang of it though.
     
  4. Offline

    SwearWord

    Do a search for questioner and download it. Works fine for me.
     
  5. Offline

    Dazmo

    Super neat idea! My search-fu must be out sick today. Bukkit, (both forum and plugins), and Google searches both return nothing meaningful (except this thread) though. Searches performed on Github for Questioner are useless as well. Even the best search engine that ever existed, Webcrawler, hasn't helped me.
    EDIT: Found it. it was on Uranus. :)
     
  6. Offline

    LlmDl


    It's the only result if you use the 'search titles only' search in the top-right of every page?
     
  7. Offline

    Dazmo

    Eeeyup. Youd think it would at least be mentioned in the regular results here, or in the plugin list, or on google, or yahoo, or anywhere. I mean, you search iConomy, its the first result. Lwc is a few results down the page, under relevant, and possibly useful results. . .
    I search "questioner towny" on google I get "questions with tony blair". neat!
    anyways. . . if it werent for smearwords glittering advice Id still be stuck.
    Its way past my lunch time.
     
  8. Offline

    availer

    We're having a few issues.

    We want players who are part of a town NOT ABLE to build anything in the town. I have them all to false but they can still build and destroy etc.

    Players can build and destroy in the wilds.

    I'm running permissions 2.7.4

    We want world guard regions to overwrite towny so we can give people better plots to build in since townys plots are just one size. How can i make regions overwrite towny.


    Thanks.
     
  9. Offline

    Dazmo

    i entirely agree
    by "better" do you mean subdividing plots to different shapes? thats how it sounds but id just like to clarify.
     
  10. Offline

    LlmDl

    You want to be using worldguard then. There is a plugin that allows players to claim regions (plots) within other regions (towns.) Named regionclaim or something. If that's too much trouble just go with towny's townblocks. You can change from them from the default 16x16 if that's too small.

    Edit: Regarding your wanting outsiders not able to build in towns they do not belong to, you need to remove the towny.wild permissions from your players and allow wilderness building in config.properties instead. (This is in the OP.)
     
  11. Offline

    FuzzeWuzze

    Honestly all of my development time ive gotten has gone towards converting to H2 databases, i dont want to waste to much time fixing things because a lot of code will need to be re-written anyways and at this point im not sure what those bits are. Questioner broke a long time ago, someone said its working now? Very wierd lol, i tried messaging Shade to get the source because he never posted it on Github, but that was months ago and he never responded. I think hes a bit tired of Towny in general lol...
     
    LlmDl likes this.
  12. Offline

    fatmarley

    I have had a few citizens leave towns and join new ones and then the server has been reset to install something, or some such and then I get massive issues in towny.

    The town files dont match the players files. In the resident file, the player is registered for his old city, but in the town files he is registered to his new city.

    Any easy way to avoid this error? I know there is a townyadmin backup, but what about a save command?
     
  13. Offline

    Dazmo

    yeah i dont know about the source but the jar makes it compile into what looks identical to your plugin. i didnt look too close but it tested out ok on my minimalist test setup.
     
  14. Offline

    yuckfoooo

    I know you aren't really adding new features/doing requests but could you add town tax based on plots claimed? For example, instead of tax for a 1 plot town being base 100, it would be 100 + (x amount * plots claimed).

    The only reason for this is that some people on my server seem to claim as much land as humanly possible whether or not they're ever planning to build there. I'd implement it but it seems like you're still actively updating it :D

    If not, thanks anyways and keep up the great work!
     
  15. Offline

    Kevger

    please 3.x support ;)
     
  16. Offline

    FuzzeWuzze

    Yes thats the plan at some point.

    I think someone said it works with 3.x? I dont see why it wouldnt by default, Permissions 3.x didnt really do anything except split the permissions files into two seperate files..all the calls are identical as far as i can tell....

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 13, 2016
    Kingjarrad and AS1LV3RN1NJA like this.
  17. Offline

    BioRage

    Was war ever finished for Towny?
     
  18. Offline

    KaosXi

    would you consider adding weather support to towny so that you cant set the weather in your town to be something specific. so i could have a dreary town where it rains all the time or a happy town where its always sunny
     
  19. Could this also be done with upkeep? i.e. Upkeep + (x * areas claimed).
     
  20. Here's a list of the plugins we're using.

    BananaChunk
    Citizens
    Craftbook
    Essentials
    iConomy
    Jail
    LocalShops
    MineQuest
    Towny
    Voxelport
    WorldEdit & WorldGuard

    I suspect it might be MineQuest or WorldGuard, they seem the most obvious, but I guess it could be anything.
     
  21. Offline

    MrCamping

    Hi,
    I have this error when someone talk in chat. It doesn't happen if thay use a command in chat.
    Code:
    20:48:36 [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:683)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:671)
            at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:32)
            at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
            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:399)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:309)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    
    I tough it could be a problem with HeroChat, CraftIRC or Dynmap since they all use the chat, but I disabled those and I still have the error.

    I'm using CB 860 and Towny 0.68

    thanks
     
  22. Maybe because you explicitly say "DONT USE PERMISSIONS 3.X" in the mainPost. It is actually a Concern why I didnt test it yet. (but will probably tomorrow)
     
  23. Offline

    Silarn

    It's definitely a plugin conflict and the usual culprit is iChat. But I posted a version of 0.68 that corrects this problem by altering how the towny prefix/suffix is done. Here it is again. You can thank Fuzze for posting the current code on GitHub.
     
    MrCamping likes this.
  24. Offline

    MrCamping

    I don't use iChat and i've desactivated all my chat plugins.
    Your version seem to work perfectly.
    It also integrate well with HeroChat prefix and suffix

    Thx a lot for your help!
     
  25. Offline

    FuzzeWuzze

    As far as i know Weather is a server wide thing.
     
  26. Offline

    tcvs

    are there any other plans that you have for this plugin
     
  27. Offline

    yuckfoooo

    I can tell you now it's not iConomy, LocalShops, Towny, or WorldEdit&WorldGuard as they're running on my server. Hope that helps.
     
  28. Offline

    Asphodan

    Is there any way to have a Server town, that isn't linked to an admin?
     
  29. is there a chance you can add the abillity to be mayor of two towns?
     
  30. Offline

    sharkale

    @FuzzeWuzze this is what I using for my towny version of town spawn. essentials 3.x and permissions 3.1.5b
    Code:
            try {
                //User user = User.get(player);
                //user.teleportCooldown();
                //user.charge("tp");
    
                User user = essentials.getUser(player);
                Teleport tp = user.getTeleport();
                tp.cooldown(true);
    
                if ( !this.isTownyAdmin(player) ){
                    Holdings holding = iConomy.getAccount(player.getName()).getHoldings();
                    holding.subtract(TownySettings.getTownSpawnTravelPrice());
                }
    
                return true;
            } catch (Exception e) {
                sendErrorMsg(player, "Error: " + e.getMessage());
                return false;
            }
    
     
  31. How can i Manage as Admin two or more Towns?
     
Thread Status:
Not open for further replies.

Share This Page