[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

    Antony

    I would also like Permissions 3.x support.
     
  3. Offline

    _knot_

    Can we have a config for nether town block size? I have a problem with the ratio 1:8 and people having their portals being claimed by other towns, etc.
    Something like this for the config:
    nether_world_name:world_nether
    nether_town_block_size:2
    town_block_size:16

    also how is that questioner support coming?
     
  4. Offline

    rotoreuter48

    It is only letting ops use it on mine. Any help?
    I am on servercraft.
     
  5. Hey everyone. I'm having a slight problem with Towny.
    I'm not sure if I have missed a config setting, apologies if i have but theres no confirmation to join a town currently on my server. Someone invites you and your in, no questions asked xD Anyway i can sort this.
    Sorry if I have missed something obvious, it is 4am xD
     
  6. Offline

    SwearWord

    @Fuzze

    Do you mind if I modify the plugin to prevent /t spawn unless you're in the wild? I know you've been busy and the majority of your focus is to get the basic features of Towny running without bugs so I was wondering if I could add this feature myself.
     
  7. Offline

    Stahlbrand

    No and Yes:
    Older versions /town spawn was broken anyways.
    Newer Versions /town spawn will take you to home town block.
    So, for the newest version change homeblock, your done.
    /town set homeblock

    Hope this helps
     
  8. Offline

    6y7t8h

    I LOVE YOU
     
  9. Offline

    ixpack

    Hi... Maybe a noobish question: How to set up towny to work with mysql? In config we have "flatfile" is it possible to make it work with mysql?
     
  10. Offline

    Holylon

    Got a problem myself... everytime a player chat, i got this error message in console... u know how annoying that is when u got spammed by an error... Here it is:
    Code:
    2011-06-02 11:36:33 [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)
    Maybe cause of a Chat Plugin... i got iChat and Essentials for it, some ideas?
     
  11. Offline

    Threezool

    Will it be possible to get /townyadmin war toggle on/off as a console command?

    Would like to set up a timed event every weekend where it turns on and then off before the next week starts again.
     
  12. Offline

    userdel_9192018

    Please someone help, im not good writing/reading english so can someone help with this problem...


    14:46:37 [SEVERE] Could not pass event PLAYER_MOVE to Towny
    java.lang.NullPointerException
    at ca.xshade.bukkit.towny.event.TownyPlayerListener.onPlayerMove(TownyPlayerListener.java:289)
    at org.bukkit.plugin.java.JavaPluginLoader$7.execute(JavaPluginLoader.java:285)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:310)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:139)
    at net.minecraft.server.Packet10Flying.a(SourceFile:126)
    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)


    also in game it says 'could not create permission cache for this world'
     
  13. Offline

    6y7t8h

    actually it still happens :( thanks for trying though :S
     
  14. Offline

    Psychoma

    hi
    thanks for you amazing job !
    i'm running a french server and i'd like to know if i'm allowed to translate some part of the files to french to help my users.
     
  15. Offline

    Craig1690

    Hey there i have a problem were people on my server who where mayors or lords no longer have there Tag

    Lord .....
    or Mayor ..... Any help ?
     
  16. Offline

    FuzzeWuzze

    Not yet, I have started learning how to use the Bukkit Persistance class to start implementing databases. The problem is that Towny has so much potential data to store, and uses it so heavily i need to make sure that i spend some time up front and get it set up right the first time.

    Also next week is Finals...so yea...
     
  17. Offline

    Phantom Index

    I look forward after your final.
     
  18. Offline

    Robertas279

    Okay hey again. Im still getting the same error Could not pass event PLAYER_CHAT on Towny !!! I am using iChat, but it seems its not compatible with it. As theres many people talking i cant play, my server crashes!!! If its not hard please find a solution this makes my crazy. Thank you.
     
  19. Offline

    Silarn

    Okay, since I don't see source code anywhere I went back to the older xshade versions and looked up the onPlayerChat function. After making sure that it was only Kings and Mayors that had prefixes/suffixes (fortunate, since otherwise you wouldn't be able to disable it in other worlds without towny), I did a quick edit that should fix the issue with "Could not pass event PLAYER_CHAT to Towny java.lang.StringIndexOutOfBoundsException: String index out of range: -1".

    Essentially I build a new DisplayName for kings/mayors, set the player DisplayName, and return. If the player is not a King or Mayor, it will simply skip the entire process. This should preserve any other formatting and work just fine even with only Towny installed.

    I couldn't really test it, but without current source I can't build it without figuring out how to decompile the class files.

    Code:
    public void onPlayerChat(PlayerChatEvent event) {
        Player player = event.getPlayer();
        if (TownySettings.isUsingChatPrefix())
            try {
                Resident resident = plugin.getTownyUniverse().getResident(player.getName());
                String colour, formatedName = ""
                if (resident.isKing())
                    colour = Colors.Gold;
                else if (resident.isMayor())
                    colour = Colors.LightBlue;
                else {
                    player.setDisplayName(player.getName());
                    return;
                }
                formatedName = (colour.equals(Colors.White) ? "" : colour)
                    + plugin.getTownyUniverse().getFormatter().getNamePrefix(resident)
                    + player.getName() + plugin.getTownyUniverse().getFormatter().getNamePostfix(resident)
                    + (colour.equals(Colors.White) ? "" : Colors.White);
                player.setDisplayName(formatedName);
            } catch (NotRegisteredException e) {
            }
    }
     
  20. Offline

    FuzzeWuzze

    Ill look into this, thanks.
     
  21. Offline

    6y7t8h

    can you also please look into the problem where town spawns are erased each server restart? :(
     
  22. Offline

    ixpack

    Thank you for the answer. I wish I could help but all I can do is PHP/mysql.
     
  23. Offline

    Craig1690

    Hey no one helped me :( why cant my lords or mayors see there prefix in game ??
     
  24. Offline

    FuzzeWuzze

    Honestly for issues like this im waiting until i do the database roll out. Theres millions of these tiny little bugs that could be fixed, but will get fixed just by virtue of the new code that will be required to get the database stuff up and running.

    Im hoping to have an initial version(atleast for my own testing purposes) in the next 2 weeks.
    Once i feel comfortable with it i'll likely ask for volunteer towny flatfile data so i can replicate a whole bunch of different peoples servers on my local machine test server and get settings, player counts, town counts, etc and make sure things work.

    First is just to get the database code figured out how it will all plug into whats already there
    Then figuring out how to easily convert the data from flatfiles to databases
    Then the long part of actually modifying everything to use the database calls instead of its loaded flatfile.
    Then testing
    Then release!

    Likely flat files will be disappearing once Sqlite/MySQL/H2 support comes into play. I also need to get around to using YML files for config like every other plugin.
     
  25. Offline

    SwearWord

    Pssst release the source. We don't need no fancy github.
     
  26. Offline

    ClankyMichael

    Code:
    2011-06-02 19:02:46 [SEVERE] Could not pass event PLAYER_CHAT to Towny
    java.lang.StringIndexOutOfBoundsException: String index out of range: -1
        at java.lang.String.substring(Unknown Source)
        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)
    2011-06-02 19:02:46 [INFO] [Builder§f] airerik: hello dan
    2011-06-02 19:02:49 [INFO] §9[PLAYER_COMMAND] Selenite: /give Selenite 4 64
    I get this error pretty much everytime someone types
     
  27. Offline

    LlmDl

    Can anyone duplicate this bug:

    Using Towny .68 when I type either: /t leave, /town leave I get the message [Towny] Not Registered.
    and it doesn't let me leave town. Is anyone else getting this?
     
  28. Offline

    Craig1690

    why is my lord and mayors prefix not working ?
     
  29. Offline

    Phantom Index

    Be best to have people help you out with making it run like that. However it will free up so much power on the server. This looks very promising.
     
  30. Offline

    Moe041991

    where can i hook towny into MySQL?
     
  31. Offline

    Zeus5966

Thread Status:
Not open for further replies.

Share This Page