Towny

Current Forum Thread: Towny Advanced

 

 

Recent History

I am no longer the lead developer for the Towny plugin. Thanks to Fuzz for picking it up when I slipped off.

There are two forks from then on. Croxis the current lead programmer on a more experimental version that combines the features of Spout, event based API, and attempted to move the database to SQL . You can find his fork here, and the plugin download here. The old thread on the forums can be found here. Note: This fork has fallen out of development.

The other fork is done by ElgarL, called Towny Advanced. His version continues, and builds on where I left off and adds tons of new features and bugfixes. If you desire a more stable (usually) version, use his fork. The current source code can be found on GitHub here.

I’ve recently been helping ElgarL (and Llmdl) with Towny Advanced. Mostly small stuff.

What is Towny?

Towny is a plugin for a Bukkit modded Minecraft server. The plugin itself is a manager for a Resident-Town-Nation hierarchy, as well as a block permission manager for a grid-like protection system. Each town has a mayor, while a nation has a king. They both have their own assistants to help run their respective people. Players can also purchase land from the town, for a daily tax set by the mayor. The player can allow his friends from out of town to build on his land when even his very own town’s people can’t build if he so wishes.

The bases of protection follows under how the world is seperated into chunks. For those unaware, minecraft servers are broken up into 16x16x128 sections of blocks. The 128 being the height from the adimantium floor to the clouds in the sky. The protection ignores the height an focuses on the x and z planes. The default size for grid squares is 16×16, similar to the chunk size (no real reason). So claiming townblock (a grid square) allows that section of land to follow your town’s or the plot owner’s permissions.

Each town can claim up to a certain amount of townblocks, a set ratio or amount configured in the setting that is relative to the amount of players taking residence in that town. Residents themselves have no limit on how many they claim, however the daily tax (when using alongside iConomy) will take a bite out of their resources. The money is tunneled to the town’s bank account that only the mayor can withdraw from, except if the town belongs to a nation. Any town belonging to a nation is required to pay the nation a daily upkeep as well.

To the right you can see an example of 3 towns using the grid structure. Each cell represents 16×16 blocks (and 128 blocks high of course).

46 thoughts on “Towny

  1. guiloudrolet286 says:

    hello

  2. Thiesie says:

    Did Shade used to have a SAMP server? (San Andreas Multi Player)

  3. zackcon2 says:

    does this townt version work for anyone? when trying to expand and claim plots it just says do not have enough blocks when only claimed 1. also when use /town it just gives internal error.

  4. EeT_MeeL says:

    Fabulous plug-in. Can’t play with-out it.
    Is there any way to restrict potion use in towns? We have had a major problem with people using them to grief livestock.

  5. Dylan says:

    it says i cannot make a town because i cant afford it?? BUT IM ADMIN lol how do i start out with money?????

  6. Dragonlord849 says:

    if this is the real towny makers site (or not):
    were can i get the code the java codes?

  7. Dragonlord849 says:

    you have to give you money
    then you can make a town
    just use /money
    to see how much you have
    i dont know how to give money im not a admin
    but admins can change the price of a town

    • Shade says:

      Eh? /money is used by your economy plugin, not Towny.
      /money set town-blarg 6796 (What admins use probably)
      /money [view?] town-blarg (view just your town’s bank).

  8. drcherrybakewell says:

    what are the towny ranks and titles
    ive got:
    Settlement-Hermit
    Hamlet-Propreiter
    Village-Cheif
    Town-Mayor
    Borough-Maire
    Metroplis-Lord
    Can someone please tell me the remaing titles and names of town
    thx

  9. dschey says:

    config.yml …set price_new_town: ’0.0′ ….

  10. Infy says:

    Is there a future possibility of having spaces between the plots that belong to the town. This would allow paths between the plots allowing the towns to be more set out. I think an option in the config file that specifies how many blocks free between plots could work. I am no java scripter though, so I don’t know if it is even possible. Thanks anyway.

  11. Oscar says:

    Why can’t you implement a selection system as well, so you can pre-define cities. That would make it easier to set-up a city for members that don’t want to make their own.

    Options to add to that would be, disabling chunk claiming for a pre-defined city. Creating plots for rent within a town would also be a good feature since selling land to someone really doesn’t get much income.

  12. jakemontoya says:

    if u guys want to see this plugin in full action go to minecraft2u.com and look for the server ips when u get on one our servers you will probably see the towny plugin unless there a problems at the time

  13. Brandon says:

    The First Problem Is That In The Wildness People Cant Destroy Block But They Get The Item Anyway, And They Keep Doing It To the Same Block ????

    My Second Problem Is That People Cant Destroy In The Wildness ??

    Heres my groupmanager
    http://justpaste.it/tzp

    Towny
    http://justpaste.it/tzq

    • Groxlord27 says:

      You have to give them some permissions!
      Try giving whoever you want to build in the wild the “towny.wild.*” node.

  14. Noobslayer00 says:

    Why is towny still 1.1? when is it going to update?

  15. i dont know were else to post this i have been looking online for like 2 days now and i cant figure it out or find anything. im trying to get the towny plugin to work and i cant get anyone able to creat towns other than admins, when they type /town new name it says “that command is admin only” or somthing like that. is this the problem and if so what do i do? sorry my first sever so i dont know what to do and cant find anything about this anywhere else. if anyone can actually skype call me at acid9601 that can help setup this it would be GREATLY appreciated, can even prolly throw in some real money :p

    # these will be moved to permissions nodes at a later date
    permissions:
    town_creation_admin_only: ‘false’
    nation_creation_admin_only: ‘false’

    • oh and it also says when i try to invite someone to town “user is not permitted to join a town” for everyone. =( so confused

      • Shade says:

        /town create [name] [mayor] = admin command
        /town create [name] = player command (with you as mayor)

        town_creation_admin_only: ‘false’ = You must be an townyadmin to create a town. Set it to true if you want players to make towns (do the same with nations).

        There should be a permission node nowadays that players need to have to be applicable to join a town. Erm, according to the wiki it’s:

        towny.town.resident : User is able to join a town.

  16. Ben says:

    Hey, I am admin of the server Legendcraft, and i need to know how to set large regions where people can’t build

  17. m says:

    can i get a link to download Towny 1.1

  18. Kiwii says:

    Hey there. I had to downgrade my towny inorder it to work for my craft bukkit because the new one wont let me use some of my plugins.

    Everytime I install Towny, My players are not able to see what Im typing to them. Only OP can see my messages.

    What can I do?

  19. Ромав says:

    Кто знает как настроить плагин Towny помогите пожалуйста мой Skype belog81

  20. zchreemer says:

    THIIIS PLUGIN IS THE WROST PLUGIN EVER ! I HATE IT AND IT ARE SO HARD TO UNDERSTAND. IF YOU LOVE THIS PLUGIN YOU HAVE A PROBLEM !!!! I HATE IT REALLY REALLY REALLY MUCH !!

    Mod Edit: Don’t fucking spam this 1000x.

  21. Noob ^^ says:

    Noob ^^^/town remove if you know what i mean

  22. LuXzo says:

    Hello just wondering when you are updating towny from 1.2.5 to 1.3.1
    Thanks

  23. AnonymousBean says:

    Me gustaa ;d

  24. joshuayoung says:

    do both towns have to agree to war? or can i just attack someone and war be in affect

  25. Dylan says:

    How do you get money when you first start because I am trying to make a nation/town and it says I can’t afford to make this town.

  26. mike says:

    i need mayor command help!

  27. XxWisdomGamerxX says:

    Is this the plugin that you can do ‘/t add [User]‘ and ‘/t claim?’
    Because I’d like to add that plugin to my future server.

  28. littleman091 says:

    [Towny] Enabling Towny v0.82.1.0
    22:43:22 [INFO] ==================== Towny ========================
    22:43:22 [INFO] [Towny] Database: [Load] flatfile [Save] flatfile
    22:43:22 [INFO] [Towny] Bypassing CraftBukkit Version check.
    22:43:22 [INFO] [Towny] Using: BukkitPermissions, iConomy v5.01
    22:43:22 [INFO] [Towny] Time until a New Day: 13 hours, 16 minutes, 38 seconds
    22:43:22 [SEVERE] Error occurred while enabling Towny v0.82.1.0 (Is it up to dat
    e?)
    java.lang.NoSuchMethodError: org.bukkit.scheduler.BukkitScheduler.runTaskTimerAs
    ynchronously(Lorg/bukkit/plugin/Plugin;Ljava/lang/Runnable;JJ)Lorg/bukkit/schedu
    ler/BukkitTask;
    at com.palmergames.bukkit.util.BukkitTools.scheduleAsyncRepeatingTask(Un
    known Source)
    at com.palmergames.bukkit.towny.TownyTimerHandler.toggleDailyTimer(Unkno
    wn Source)
    at com.palmergames.bukkit.towny.Towny.load(Unknown Source)
    at com.palmergames.bukkit.towny.Towny.onEnable(Unknown Source)
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:215)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader
    .java:337)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManage
    r.java:386)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:264)
    at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:246
    )
    at net.minecraft.server.MinecraftServer.t(MinecraftServer.java:387)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:374)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:208)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:438)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)

    how do i fix this so towny will work on my server

  29. pidii says:

    so i just made a parkour in my town on a server that uses this plugin, but people always cheat with enderpearls :( is there a way i can toggle the use of enderpearls off on a plot? if not please make it possible, i don’t think it can hurt anyone…

  30. Flowers says:

    When people quit the town can you make it so mayors can unlock their chests/doors etc because it’s extremely annoying when residents leave the town without warning and leave all their locked stuff behind.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>