Contact
IRC: #mytown on espernet
Message me on minecraftforum.net
MyTown (MC 1.5.x - V1.5.1.15) (MC 1.6.x - V1.6.1.15) *Versions 1.5.1.14, 1.6.1.14, and later require Forge 9.11.1.953
MyTown is a land protection mod, originally by Alphaest. You can create new towns, add members, setup personalized plots, configure plot and town permissions, and much more. Features
Create towns - Don't be a loner, play with others to create a town, big or small!
Nations - Nations allow towns to be next to each other, as well as chat easily in the nation chat channel!
Town teleporting - Don't let your new recruits walk, let them teleport to get there quickly.
Protects against IC2, BC3, ArsMagica, Thaumcraft 3 and Thaumcraft 4, Railcraft, ComputerCraft Turtles, Mekanism, Modular Powersuites, Steves Carts, Traincraft, Tinkers Construct, Twilight Forest, and Redpower 2, The Lord of the Rings, The Mists Of RioV, Wither Skulls and explosions, Fireballs!
Permissions - Control what outsiders, friends, and nation members can do in the town or specific plots.
Autocomplete for all commands
Installation Guide
Download MyTown and place it in your mods folder
Download MyTownLib and place it in your mods folder
Install ForgePerms (see below)
Start the server to generate the config and database, then stop it
Mod Developers
Are you a mod developer? Do you want your mod to work with MyTown? Just use LivingAttackEvent and BlockEvent.BreakEvent to allow MyTown to protect against attacks and block breaks!
ForgePerms (MC 1.5.x - V1.5.1.6) (MC 1.6.x - V1.6.1.6)
Simple permission, chat, and economy management API for Forge based mods.
Features
Simple API for mod developers to use
Fallback permission system built-in
Supports Bukkit plugins through Vault and my custom plugin (See ForgePermsCBBridge)
Open Source!
If you are running a MCPC+ server, you should use a bukkit permission plugin (bPermissions, GroupManager, Permissions 3, PEX, etc) otherwise you may not be able to access commands. This is a limitation of MCPC+.
You can make your own rules like - has to have min 2 and max 5 blocks of air (for cave mobs) or water (for squids) above. Cannot spawn more than 10 in a 3 chunk radius area, etc etc.
ItemGrouper - Groups nearby similar floating items or experience orbs to lower the server load and networking when something goes wrong (like a quarry overflowing or someone doing extreme mining and not picking up).
Packet limiting - for those who have to play on a 3g mobile internet and still want to build advanced stuff. Disable duplicate packet sending or just send every 5th redpower pipe content update packet. Customizable filters, saved per user. Can turn on/off ingame.
Packet sniffer - Check what packets are sent to a specific player (or yourself) and on what amout (speed) to find the spam you may not need (like rp's tube item updates or extrabees unknown spam). (depends on packet limiter)
Entity and tile entity listing - Find at which location theres a high concentration of items on the ground or find some pesky machines by their java hash code or even just see how many sheeps there are on a map.
Entity removal - Remove any mobs or animals by many-many different filters.
Modpacks
All the mods/plugins above are open source and you can use them as you wish, including adding them to public and private modpacks. You can even hack them up and release your own version, literally whatever. I do ask, if you release your own version to credit me and Alphaest, as well as any improvements be submitted to my github.
Donations
I am going to get started on a 1.6.x build soon. Hopefully it wont be too hard to port it over. I wanted to get ForgePerms finished up and working first so I can port it all over as well. I will probably start on it tonight or tomorrow once I get my dev environment setup for 1.6.x
There isn't much I can do about that. When I changed it to directly use my ForgePerms mod as the permission api, I had probably removed a file it wants to patch. Nallar will have to update TickThreading for the beta of MyTown. I will take a look at the source for TickThreading on his repo and ill try doing a pull request to fix it if I can.
Edit: I just downloaded the latest version of TickThreading from Nallar's build server (http://nallar.me/buildservice/job/TickThreading-1.5.2/130/). I ran PATCHME.sh (since im on linux) and let it patched just fine and the server loads.
I have been searching for something to protect a public server running forge mods and its landed me here. I just wanted to ask a few questions I'm rather rusty to all this im used to the olden days of just craftbukkit. plugins and controls not mixing forge and bukkit together.
Looking at the perms and the command structure of this i assume this does not play nice with Essentials (bukkit) "/home, /setspawn etc... "
Does this protect from turtle mining lasers excavation wands etc? kinda why its landed me here as there's no bukkit plugin that can protect from these block break events.
I would assume it wouldn't agree with /home, /sethome, and a few others but I have not tried. It protects against IC2, BC3, Railcraft, PortalGun, ComputerCraft, Mekanism, Thaumcraft, ModularPowersuits, StevesCarts, and Redpower 2. Also most of Ars Magica since 1.5.1.1.
I would assume it wouldn't agree with /home, /sethome, and a few others but I have not tried. It protects against IC2, BC3, Railcraft, PortalGun, ComputerCraft, Mekanism, Thaumcraft, ModularPowersuits, StevesCarts, and Redpower 2. Also most of Ars Magica since 1.5.1.1.
Does this protection also extend to other Bukkit mods as well or do i need some kinda dual protection for bukkit plugins vs forge mods?
It works much like the Towny Advanced bukkit plugin users make towns and only the people that are part of the town are able to build and destroy unless given the ability to bypass.
For chat formatting, there is a config option to stop it, FormatChat. For /home and /spawn you can try removing their permission to use them (ee.lutsu.alpha.mc.mytown.commands.CmdHomes, ee.lutsu.alpha.mc.mytown.commands.CmdHome, ee.lutsu.alpha.mc.mytown.commands.CmdSetHome, ee.lutsu.alpha.mc.mytown.commands.CmdDelHome, ee.lutsu.alpha.mc.mytown.commands.CmdSpawn, ee.lutsu.alpha.mc.mytown.commands.CmdSetSpawn, mytown.adm.cmd, mytown.adm.cmd, mytown.ecmd.homes, mytown.ecmd.home, mytown.ecmd.delhome, mytown.ecmd.sethome, mytown.ecmd.spawn, etc.) I am sure I missed a few nodes there, but you get the idea. If that doesn't work, I will work on adding settings, probably not for 1.4.x since I don't have the source for it, but I can try to make a 1.4.x version if needed.
Please download the latest version of MyTown for both 1.5.x and 1.6.x. I had made a mistake with some of the permission nodes, some where set to mytown.adm instead of the correct node, I am sorry for any inconvenience this made.
Also, Trec93, just realized there is settings to disable individual commands in the config.
I have been searching for something to protect a public server running forge mods and its landed me here. I just wanted to ask a few questions I'm rather rusty to all this im used to the olden days of just craftbukkit. plugins and controls not mixing forge and bukkit together.
Looking at the perms and the command structure of this i assume this does not play nice with Essentials (bukkit) "/home, /setspawn etc... "
Does this protect from turtle mining lasers excavation wands etc? kinda why its landed me here as there's no bukkit plugin that can protect from these block break events.
Regards,
BruteMan
Essentails overides the setspawn and home commands. I disabled these commands in the mytown config
Thank you for the complement I do try to keep it updated as best as I can. And throw any suggestions you want at me! I already have a couple ideas, one is from another forum user, he suggested a way to create shop plots or similar where anyone can have one regardless of what town your in (good if the server has a place at the spawn for them all). I was also thinking about changing the plot system almost completely, if anyone has ever used the Bukkit Residence plugin and its subzone system I am thinking about doing that because if will be much more flexible than the current plot system I think.
What I was thinking for with the shop system was just to have it where an admin has to give the plot to a user, or have some simple way with the permission system. Mostly because I see it as more useful when the server owner creates a place at spawn just for shops. I think the current system should work fine with sign shop (but I have never tried).
The mods themselves, or maybe its mcpc+ cant quite remember, create whats called a FakePlayer ( [Forestry], [BuildCraft], etc.) and its up to the protection plugin to use those. Towny, Residence, I think worldguard and lwc use it as well.
Perms would stay the same, the only change would be how to do the plot system. Towns themselves (/t claim) would still be on a chunk selection, but the actual plot system would be like the subzone where you left click for point 1 and right click for point 2 and then do something like /t plot create and it will create a plot without an owner. Then, you can set its owner by doing /t plot setowner <username> or possibly by signs or similar.
Adding protections for MyTown is quite different and difficult because it doesn't use FakePlayers, it hooks directly into the classes for the different items and stops them that way. If you know java and want to look how the protections work, its in the github here https://github.com/legobear154/MyTown/tree/master/src/ee/lutsu/alpha/mc/mytown/event/prot that is all that is currently implemented. Some mods don't need to be added depending on how the items and whatnot are handled on their end.
As for the buffer zone idea, Towny and Residence both allow users to place things next to towns and things will connect with them. When I was playing on a FTB server with MyTown, and even a Tekkit one, I never placed anything near the edge of the town myself just because I had assumed that it would be that way. But I also build large walls around my towns to keep people out so yea xD
First amazing mod and you are an amazing saint for picking this up. This IMHO is the top mod to have for forge/mcpc+ servers. FYI do you have a donation box up yet????? I will gladly drop some dough on you and your work here. Once our server is set, we are going to do a How-to video on working with the perms and such.
Which brings me to asking this question.
Mytown commands can be used by doing /t setspawn or /t list ect...or more importantly /sethome /home and /spawn.
If you have Mytown and essentials installed, /t is the tell command /home defaults to the essentails /home ect... which doesn't charge you money or an item to use it. In the essentials config, it states that there plugin tries to force the other mods to have priority. Which in the case of mytown isn't working, essentials always seems to "Win" out. Which I don't want because I love the idea of charging people to teleport between locations/towns and also the /t Alias is much better then typing /mytown every time.
I assume the bridge mod you have, hooks the nodes from (forge)PEX into craftbukkit? So is it possible to have a config to re-aliase those commands to like /mt or something besides /t ? or maybe a sure footed solution is to ask, if you can figure out how to stop essentials from overriding both the /t Alias and the /sethome /home /spawn commands. I've tried re-aliasing those commands in the bukkit.yml and still won't work.
(P.S I've also tried removing the essentials permission nodes essentials.home ect... from the list to see if I could just disable there commands and it didn't work, no error appeared)
I guess I am asking for the reverse of what Trec93 has going on. I want mytown to overwrite essentials, due to being able to charge for teleports setting homes, and charging more when homes are reset or changed added ect....
HaoSs, I am almost 100% sure there is a buildcraft fake player, but it doesn't matter since MyTown doesn't use that system. That being said, I promise the permission setup for towns (/t perm) will stay the same and not change. Also, I have seen lots of servers ban quarries on just a world and have a separate world for quarries.
Skynet1514, I haven't messed with Essentials in a while, I had switched to command book when I ran a server (http://wiki.sk89q.com/wiki/CommandBook). In Essentials there is a way to disable commands from the config
# Disabling commands here will prevent Essentials handling the command, this will not affect command conflicts.
# Commands should fallback to the vanilla versions if available.
# You should not have to disable commands used in other plugins, they will automatically get priority.
disabled-commands:
# - nick
# - clear
Some commands, maybe all (other than /spawn, /home, /sethome, etc.) not looking at the source for MyTown right now, work with /mytown and /town as well as /t so, that is always an option if needed.
The way the bridge works is it uses the Vault bukkit plugin (http://dev.bukkit.org/bukkit-plugins/vault/) to handle permissions. Simply, ForgePerms is an API that MyTown uses to access permissions. The bridge registers vault as the handler and MyTown tells ForgePerms what nodes it wants to check for and the handler processes it accordingly. Hopefully that made since.
As for donations, since I wasn't the one to start MyTown, I am a little hesitant to set it up, but if I was, what service(s) should I use to get donations? I already have PayPal I can easily get working. Not sure if Google Wallet has the ability to do donations. I also do Bitcoins a little if anyone knows about that.
Its for 1.7.10 only. Please direct any MT2 questions over there. Thanks!
MyTown beta info: http://www.minecraft...0#entry29120331
We now have a website!
http://mytown.mineyourmind.net
Website courtesy of Slind14 from IRC. Big thanks goes to him
Downloads
https://dl.dropboxus.../downloads.html
http://mytown.mineyo...d.net/download/
Contact
IRC: #mytown on espernet
Message me on minecraftforum.net
MyTown (MC 1.5.x - V1.5.1.15) (MC 1.6.x - V1.6.1.15)
*Versions 1.5.1.14, 1.6.1.14, and later require Forge 9.11.1.953
MyTown is a land protection mod, originally by Alphaest. You can create new towns, add members, setup personalized plots, configure plot and town permissions, and much more.
Features
Source Code: https://github.com/legobear154/MyTown
Older Versions available at http://www.minecraft...rformance-mods/
Mod Developers
Are you a mod developer? Do you want your mod to work with MyTown? Just use LivingAttackEvent and BlockEvent.BreakEvent to allow MyTown to protect against attacks and block breaks!
ForgePerms (MC 1.5.x - V1.5.1.6) (MC 1.6.x - V1.6.1.6)
Simple permission, chat, and economy management API for Forge based mods.
Features
Source Code: https://github.com/l...r154/ForgePerms
ForgePermsCBBridge (MC 1.5.x-1.6.x) Version 1.1.15
Bukkit Plugin that registers Vault as a permission, chat, and economy system for ForgePerms.
Requires Vault Bukkit plugin and ForgePerms from above.
Installation Guide
Downloads: https://dl.dropboxus.../downloads.html
Source Code: https://github.com/l...gePermsCBBridge
aPerf (MC 1.5.x - 1.5.1.3) (MC 1.6.x - 1.6.1.1)
Features
Source: https://github.com/l...gobear154/aPerf
Bug Reporting
If you encounter a bug with any of the mods above, either post an issue on its github page or post on here.Please include the following in your report
Modpacks
All the mods/plugins above are open source and you can use them as you wish, including adding them to public and private modpacks. You can even hack them up and release your own version, literally whatever. I do ask, if you release your own version to credit me and Alphaest, as well as any improvements be submitted to my github.
Donations
cheers Dez
Edit: I just downloaded the latest version of TickThreading from Nallar's build server (http://nallar.me/buildservice/job/TickThreading-1.5.2/130/). I ran PATCHME.sh (since im on linux) and let it patched just fine and the server loads.
I have been searching for something to protect a public server running forge mods and its landed me here. I just wanted to ask a few questions I'm rather rusty to all this im used to the olden days of just craftbukkit. plugins and controls not mixing forge and bukkit together.
Looking at the perms and the command structure of this i assume this does not play nice with Essentials (bukkit) "/home, /setspawn etc... "
Does this protect from turtle mining lasers excavation wands etc? kinda why its landed me here as there's no bukkit plugin that can protect from these block break events.
Regards,
BruteMan
Does this protection also extend to other Bukkit mods as well or do i need some kinda dual protection for bukkit plugins vs forge mods?
Please download the latest version of MyTown for both 1.5.x and 1.6.x. I had made a mistake with some of the permission nodes, some where set to mytown.adm instead of the correct node, I am sorry for any inconvenience this made.
Also, Trec93, just realized there is settings to disable individual commands in the config.
Essentails overides the setspawn and home commands. I disabled these commands in the mytown config
The mods themselves, or maybe its mcpc+ cant quite remember, create whats called a FakePlayer ( [Forestry], [BuildCraft], etc.) and its up to the protection plugin to use those. Towny, Residence, I think worldguard and lwc use it as well.
Perms would stay the same, the only change would be how to do the plot system. Towns themselves (/t claim) would still be on a chunk selection, but the actual plot system would be like the subzone where you left click for point 1 and right click for point 2 and then do something like /t plot create and it will create a plot without an owner. Then, you can set its owner by doing /t plot setowner <username> or possibly by signs or similar.
Adding protections for MyTown is quite different and difficult because it doesn't use FakePlayers, it hooks directly into the classes for the different items and stops them that way. If you know java and want to look how the protections work, its in the github here https://github.com/legobear154/MyTown/tree/master/src/ee/lutsu/alpha/mc/mytown/event/prot that is all that is currently implemented. Some mods don't need to be added depending on how the items and whatnot are handled on their end.
As for the buffer zone idea, Towny and Residence both allow users to place things next to towns and things will connect with them. When I was playing on a FTB server with MyTown, and even a Tekkit one, I never placed anything near the edge of the town myself just because I had assumed that it would be that way. But I also build large walls around my towns to keep people out so yea xD
First amazing mod and you are an amazing saint for picking this up. This IMHO is the top mod to have for forge/mcpc+ servers. FYI do you have a donation box up yet????? I will gladly drop some dough on you and your work here. Once our server is set, we are going to do a How-to video on working with the perms and such.
Which brings me to asking this question.
Mytown commands can be used by doing /t setspawn or /t list ect...or more importantly /sethome /home and /spawn.
If you have Mytown and essentials installed, /t is the tell command /home defaults to the essentails /home ect... which doesn't charge you money or an item to use it. In the essentials config, it states that there plugin tries to force the other mods to have priority. Which in the case of mytown isn't working, essentials always seems to "Win" out. Which I don't want because I love the idea of charging people to teleport between locations/towns and also the /t Alias is much better then typing /mytown every time.
I assume the bridge mod you have, hooks the nodes from (forge)PEX into craftbukkit? So is it possible to have a config to re-aliase those commands to like /mt or something besides /t ? or maybe a sure footed solution is to ask, if you can figure out how to stop essentials from overriding both the /t Alias and the /sethome /home /spawn commands. I've tried re-aliasing those commands in the bukkit.yml and still won't work.
(P.S I've also tried removing the essentials permission nodes essentials.home ect... from the list to see if I could just disable there commands and it didn't work, no error appeared)
Skynet1514, I haven't messed with Essentials in a while, I had switched to command book when I ran a server (http://wiki.sk89q.com/wiki/CommandBook). In Essentials there is a way to disable commands from the config
Some commands, maybe all (other than /spawn, /home, /sethome, etc.) not looking at the source for MyTown right now, work with /mytown and /town as well as /t so, that is always an option if needed.
The way the bridge works is it uses the Vault bukkit plugin (http://dev.bukkit.org/bukkit-plugins/vault/) to handle permissions. Simply, ForgePerms is an API that MyTown uses to access permissions. The bridge registers vault as the handler and MyTown tells ForgePerms what nodes it wants to check for and the handler processes it accordingly. Hopefully that made since.
As for donations, since I wasn't the one to start MyTown, I am a little hesitant to set it up, but if I was, what service(s) should I use to get donations? I already have PayPal I can easily get working. Not sure if Google Wallet has the ability to do donations. I also do Bitcoins a little if anyone knows about that.