MCTowns
MCTowns is a powerful way to manage towns.
- Create Towns, assign them Territories, and let mayors divide them up into Plots on their own.
- WorldEdit backend means you can use WorldEdit CUI and all of your favorite WorldEdit commands to create regions of any size and shape
- WorldGuard backend means lightning-fast performance and rock-solid stability
- Mayors can restrict town membership to only people they invite, or open it up to anyone who can afford a plot
- Saves you time and reduces the workload on your moderators!
- Mayors can manage regions within Territories that have been assigned to them
- No need to ask a mod every time someone wants to join your town, or you need a new plot created.
Contact
- Send me a PM on BukkitDev. I will always respond to these.
- Post a comment here. I'll probably respond to this.
- Email [email protected]. I will always respond to these.
Basic Commands
- /mct -used for adding and deleting towns, querying basic info, etc
- /town -used to manage towns, including inviting players and adding territories
- /territory -used to manage territories, including adding plots
- /plot -used to manage plots, including adding players to plots
Metrics Collection
MCTowns tracks some stats about who uses it. They're primarily for me to feel good about myself when I see people are actually using what I make, or (in the case of bug reports) are so that I can improve the plugin so that I can continue to feel good about myself when I see people are using the plugin.
MCTowns uses MCStats. To learn what is collected and how to opt-out of collection, see the following official MCStats page:
http://mcstats.org/learn-more/
Note that as of v2.1.0, most bugs will be automatically reported for you. See the page on Automatic Bug Reporting for more information.
Donate with Bitcoins: 1PYEc82xEK1A3jCsYTAZ7mnS9t34Et9bYh
Everything on these pages and associated wikis is licensed under the GNU Free Documentation License
Project Logo courtesy of th3cleaner_mcserver.
@Everdras
Says we are not allowed to acces your blog. :(
Anyone interested in keeping a thumb on the pulse of MCTowns development can find my blog at this page.
Since I know I ramble a lot, I'll be sure to keep everything MCTowns related at the top of every blog post, and give you a nice tag to mark the end of MCTowns-related stuff and the start of what will probably be a mix of university-student angst, video game reviews, bad puns, and anything else that I feel like talking about.
I'll keep it SFW and I'll try to avoid swearing too much.
If you're brave and/or bored, things I'll probably blog about which are non-MCTowns related:
@jhs232
Dev build is up and has your fix in it.
@Everdras
ok, thank you
@jhs232
Found the issue. I'll put up a dev build with a fix later tonight or tomorrow.
@Everdras
The command i used was /territory flag use deny. Here it is:
2012-04-14 09:19:34 [SEVERE] null org.bukkit.command.CommandException: Unhandled exception executing command 'territory' in plugin MCTowns v0.8.9.1 at org.bukkit.command.PluginCommand.execute(PluginCommand.java:42) at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:166) at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:473) at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:821) at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:781) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:764) at net.minecraft.server.Packet3Chat.handle(Packet3Chat.java:34) at net.minecraft.server.NetworkManager.b(NetworkManager.java:229) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:113) at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78) at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:551) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:449) at net.minecraft.server.ThreadServerApplication.run(SourceFile:492) Caused by: java.lang.ArrayIndexOutOfBoundsException: 3 at me.everdras.mctowns.command.MCTCommand.getFlagArguments(MCTCommand.java:129) at me.everdras.mctowns.command.executors.TerritoryExecutor.onCommand(TerritoryExecutor.java:111) at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40) ... 12 more
@jhs232
Yes, please post it. And my server has been down recently, so I'm not certain. I can throw up a test server sometime this weekend to troubleshoot if your stack trace doesn't help.
But yes, please post the console output. It's extremely helpful.
@Everdras
So i should paste in the message sent to the console? Does flags work on your server?
@jhs232
Open a ticket and post the console output. The "an internal error..." message means an uncaught exception was thrown, so I need the stack trace that was printed to the console.
I have made a ticket with an enhancement that i'd like you to add to the next version. /jhs232
@Everdras
I also get error with /plot flag use deny
I have some problems changing worldguard flags for the territories, it says: "An internal error occured while attempting to perform this command." What i wanted to do was turn pvp off inside the territory. I wrote: /territory flag pvp deny
I got the default config for WorldGuard and MCTowns(except i have enabled economy). Can you help me ? /jhs232 And, yes i did set a territory active :) and worldguard, worldedit, vault, iconomy, and mctowns ARE up-to-date :)
@jhs232
Ah yeah. That's not really a bug, per-se.
Basically, when you click a sign, the plugin begins searching through all plots in the town, looking for a plot whose "sign location" variable matches that of the sign itself. When you use setpos to change the sign position, the old sign no longer has a matching plot. So, hitting it generates that error. It's safe to just trash that old sign. I'll probably either make that warning a little less scary or add in a note that if they used setpos then clicking old signs will make the error. Something to let people know "it's okay, just break down the sign."
As for the sign/lever/door thing, there's a WG flag for that.
will make it so that players who are not able to break blocks in the region also cannot use levers/doors/pressure plates/buttons/furnaces/etc in the region.
All WG flags are supported by MCTowns.
@Everdras
No, the signs i make after i have set the position works, though it still comes up with the error when i use the auto generated signs. The bug was caused because i used CraftBukkit 1.2.4, and mctowns 1.2.5, and when i updgraded to 1.2.4, i havent seen the sign-bug when i use the signs i make. Your plugin is AWESOME. Do add this in the next upgrade: Mayor can choose if people can interact with levers, doors, and such on ground they do not own (please include ALL items which can be interacted with).
@jhs232
Sorry, never hurts to be too careful. Sometimes issues are a result of people simply doing obvious things (manually building their signs, etc), and I spend hours combing over source code only to find out that the error was in between the user's chair and his keyboard.
I added an option to the /district add plot [plotname] command, when I release the next dev build you'll be able to add "-nosign" to the command and the sign won't automatically be built.
If you manage to reliably reproduce your "sign was an MCT sign but no plot was found" error, or notice which circumstances it seems to pop up in, open a ticket and describe the circumstances as best you can.
@Everdras
I did also use /plot sign setpos, i do know how this plugin works. The sign comes before i have set the position of the sign, the sign on the roof comes when the plot is made. I sometimes manage to reproduce the error, but when it happens is random, and it also happens to signs that worked before. I think it is because i use 1.2.4 CB, i will try with 1.2.5 CB. /Jhs232
@jhs232
Ah yeah, you should manually set the sign location with
/plot sign setpos
If it appears on the roof. The algorithm it uses to autocalculate the spot just starts in the sky and goes down until it finds the first non-air block.
To fix you initial problem, try this:
Make a new plot, set it up for sale, make the sign, and have someone try to buy it. If that works, just mess around with it until you reproduce your error. If you can reproduce it like this, please open a ticket and give me the steps you took as well as you can describe.
If you can't reproduce it... then I doubt I will be able to either =|.
@Everdras
/plot sign build. I use version 1.2.4 CB, and 1.2.5 mctowns, normally i used mctowns 1.2.4, but then i made an error in a plot and couldnt delete it, so i upgraded to 1.2.5. I cant remember having any sign errors with 1.2.4 mctowns. And a bug: sometimes signs are placed on the roof of your house if you put your plot forsale (a plot with a house), and the sign says its an mct sign, it says the plot is forsale for 10money.
@jhs232
Did you happen to put the sign up manually, or did you use /plot sign build?
Everdras, i get this when somebody tries to buy a plot by rightclicking the plots sign:
[Severe]Couldnt find a match for this plot!
[Severe]Sign was an MCT plot sign, but no matching plot was found.
Is this a bug or what? My plot name was in caps, and i am 100% sure i made the plot. I tested more than 10 times. It works fine when it says: /mct confirm to purchase. Please, if this is a bug, fix it VERY soon. If not, tell me how to make my plot signs working. /jhs232