Region Mod
Region Module
A simple lightweight protection handler plugin
Update
Region Module v1.4.0 is now released! There is an incentive to update as the code has been freshly rewritten to optimize efficiency. New permissions and ideas have been added this build. Offline Support has been implemented once again to Region Module. A huge number of new features have been added, be sure to read the change log for a fill list!
What is it?
Region Module is a semi-conservative plugin that allows players to protect their own lots (via WorldGuard) for a price that can be configured in the config.yml. Region Module is a moderated plugin, meaning that when a player protects a lot, all users with the permission regionmodule.moderate will receive a notice about the protection. Moderators will manually have to go through the queue and accept / deny the protections based on what they are willing to accept and not accept. Players will be refunded about 50% of the original amount that they used to purchase the lot IF it gets denied. Players will receive a notice (If they are online) about if their protection was accepted or not.
Dependencies
Region Module requires the following dependancies to operate correctly
iConomy ~ For Prices
Permissions System ~ For Permissions
WorldEdit ~ For Regions
WorldGuard ~ For Regions
How to use it
Players who have the permission regionmodule.user will be able to use the commands, it's fairly simple, and shouldn't be too hard to explain.
1.) Have players mark out a plot using the WorldGuard wand.
2.) Type /protect {Insert_Some_Protection_Name_Here_Without_The_Curly_Brackets}
3.) Wait for a moderator to accept / deny it.
Once they type /protect their protection activates right away, unless a moderator denies it, then it will be deleted from both Region Module and WorldGuard.
Installation
Simply drag and drop RegionModule.jar into the plugins folder and start /restart your server. The configuration file will generate Immediately.
Commands
Below is a list of all commands & their function:
/protect NAME
protects a region via WorldGuard with the name of argument1.
/childlot NAME
creates a childlot in the parent lot the player is standing in
/protection [list,accept,deny,tp purge]
Preforms a moderation command. All arguments require a region name except for protection list.
Permissions
Protection & Childlot Command:
regionmodule.user
Moderation Commands:
regionmodule.moderate
regionmodule.accept.own
Configuration
# Region Module ~ By Dpasi314 # Protection: MinimumXLength: 10 // Minimum length of protection on X Axis MinimumZLength: 10 // Minimum length of protection on Z Axis MinimumYValue: 0 // How low should the protection go MaximumYValue: 256 // How high should the protection go PricePerBlock: 0.0 // How much should a block cost? If set to 10.0, a 10 x 10 lot would cost 1,000 ChildProtection: PricePerBlock: 9.0 // How much per block a Childprotection will cost.
Known Issues
Purging doesn't work properly.
Report an Issue
<big> USE THE TICKET TRACKER! </big>
<big> Like this plugin? Check out my others! </big>
IP Detection - Track players IP and stop ban evaders!
CloakBreaker - Stop players from burning other while invisible!
Region Module - Let players protect their own lots!
Random Teleport - Easily let players teleport to the wild!!
@owenwant
Oh yeah, totally, I can do that. I was on your server the other day ( Stalking :3, but not really) and you have LOADS of people, so albeit that would be a great help to you. So I'll get on that tomorrow hopefully!
Request: This would be a big help :)
/protection acceptall - Accepts all pending protections.
@Dpasi314
Awesome, thank you! :D Going to update this straight away.
@Puntafaard
@owenwant So I just uploaded the v1.4.0 I think both of you would want to update to this version.
Puntafarrd: I still haven't fixed the error with the protecting more than one region however I plan on implementing a version that has something like "MaxProtections" in the config. However this would conflict with the light-weightness of the plugin because it would have to see how many protections each player has and update them accordingly.
owenwant: This is a more-lightweight and more powerful version of Region Module. I got on your server today and saw you do have quite a lot of people, and this version should run smoothly and shouldn't create any lag (Provided that you inspect protection on a regular basis)
@Puntafaard
Region Module has No control on what WorldGuard configuration is set too. IT's something that players have requested that I'm working on, however, this seems like it should only happen AFTER they have more than 5 regions already.
Another thing that I noticed. My server is set to have players have a region max of 5 but when players have their max of 5 and create regions through this plugin, it lets them do it. It doesn't actually create the region but it takes their money and everything!
@Dpasi314
Sweet, thanks :D I have quite a few players online most of time. I was using ProtectionOres before this but it was causing lag due to the amount of people who were actually placing and removing their protection blocks so I hate to ask but could you keep it as lightweight as possible? :3
@owenwant
Yeah, v1.4.0 removes that. But when a player makes a protection you're sent the list of awaiting protections.
@Dpasi314
:) only request I have is the option to disable this messages I keep getting: "There are 0 waiting protections"
@owenwant
Awesome! I think you'll love version 1.4.0 when it comes out. (It's ready but I need to remove the DS_Store files because Bukkit doesn't approve my files when they're in there....)
Great plugin, Just what I needed! :D and even makes it so people can't overlap others.. perfect :D
@Puntafaard
Oh, that wouldn't be very hard at all!
@Dpasi314
Also would it be very hard to incorporate a maximum block limit to X and Z and not only minimum?
@Dpasi314
Thankyou dpasi!
hey can you add soemthing? able to sell/rent and buy regions - like the players with permissions sets it up - then if a different player likes it they can sell it to them( by right clicking a sign or something) - im trying to set up a town based server, and this is so far the best plugin ive seen in my search fora good plugin, most of the others are outdated
@Puntafaard
@Ordush
I'll see what I can do. Finals are coming up so don't expect anything until late May (5/24/13) Because I have things to do :3
But by popular demand I'll work on it.
@Dpasi314
Yes we want group ablility!
I also want it to be like that, what i want is the region mod as it is. Just added a way to set diffrent prices/sizes based on what group people are in.
@Puntafaard
The whole point of Region Module is so that users can protect their own lots, and then a moderator can swing by later to approve their protection. If the moderation part were remove, Region Module would just be glorified WorldGuard.
I would also looooove what Ordush is talking about. Been searching for something like this and I need that.