ThatRegionPlugin
ThatRegionPlugin
You've probably wished it existed, something that lets you have a creative world with no worries of grief, something that lets your players start building right next to other players without having to worry about chunk borders.
They just start building in a spot, and that's them!
That region plugin you're after is finally here!
Getting started
ThatRegionPlugin defaults to off in all worlds, to enable it you'll have to use the correct command. Say you wanted to enable your creative world with the protected ThatRegionPlugin provides?
/thatregion setworld enable creative
After this, all your users have to do is build and their region automatically expands with use!
(Regions can't overlap, unless the players are friends)
Configuration
ThatRegionPlugin lets you control everything from the prefix of the messages, right down to the denied message!
format: '&1[&2TRP&1] &2' test-id: 352 deny-message: You can't modify blocks there! max-volume: 1048576
Permissions
Again, super simple - ops get all by default. thatregion.user defaults to true.
thatregion.user - use the user commands thatregion.admin - use the admin commands (plus the testing item) thatregion.bypass - bypass the plugin checks
User Commands
Only two user commands. Pretty simple to remember too.
/thatregion addbuddy name - let a friend build with you! /thatregion rmbuddy name - removes the friend!
Admin Commands
A few admin commands, but nothing major.
/thatregion wipe name - wipe a players regions! (in-game only) /thatregion wipe name world - wipe a players regions! /thatregion setworld enable world - enable for that world! /thatregion setworld disable world - disable for that world!
Your admin commands are broken. Wipe causes java exceptions from the console, and doesnt function at all from the in-game client even with permission nodes thatregion.*, or each parent tree (thatregion.admin etc etc)
>thatregion wipe hephinator Creative
20:13:14 [WARNING] Unexpected exception while parsing console command
org.bukkit.command.CommandException Unhandled exception executing command 'thatregion' in plugin ThatRegionPlugin v1.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:479)
at org.bukkit.craftbukkit.CraftServer.dispatchServerCommand(CraftServer.java:475)
at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:612)
at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:581)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:459)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
Caused by: java.lang.NullPointerException
at that.region.Plugin.adminCommand(Plugin.java:150)
at that.region.Plugin.onCommand(Plugin.java:77)
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40)
... 7 more
^^^^ from the console.
Fix your plugin.
This is CraftBukkit 1.2.5 R4.0.
@JSPLAYER111
You can get other plugins that charge per-block-placement.
Oh and Vault is probably the best API for it because many servers will already have it installed for other plugins
@codename_B
It would be great if there was a configurable cost per protected block in each world (e.g protecting blocks in a creative world is cheaper than in survival). Of course, if economy integration was enabled on a server, then the players would need to have a command to disable protection if they don't want to pay to protect certain blocks. Another more advanced way is to calculate the total area of land (rather than volume) covered by a group of protected blocks and charge per block that way. This would probably be better for RPG servers because that is how cost is calculated for land in real life. Either way is good and this is still an amazing plugin (as always :P)
Thanks for making it,
JSPLAYER111
P.S Missing the banana theme :(
@JSPLAYER111
How would like economy integration to work?
Any Chance of Economy Integration? Because I have a survival world and don't want to allow players UNLIMITED protection. Thanks, JSPLAYER111
@sayaad
It's got an api - what do you need to know about the api for?
Damn it codename xD
You stole my idea(maybe not).
Great plugin btw......and maybe add in an API sometime?.... :3
@AcidSikeO
What's the minor issue? lol I'm glad it's working well :)
My next milestone for this project I think will be to add a MySQL mode
I've only noticed one minor issue, so far, but I think it might have been me :). Other than that, it seems to work nicely. Really takes a load off of me in taking care of player area claims. And, I've seen no added system overhead.
@nejcneo There are a lot of plugins out that protect blocks and a far more complicated for players to use. And I think the one you saw was ProtectBlock, which is actually very easy to use, but it really stresses out a server.
@nejcneo
Yeah plugins like that exist, the point of this one is to do it in the most efficient manner possible with as low memory/cpu footprint as possible and as little code as possible.
It was both an exercise in efficiency, a plugin for a server I may be making soon, and a better way of doing a plugin I used to develop.
@codename_B Wow, Basically this plugin disable destroying another player's block. I think that plugin is already out. I was on one Server and If you try to destroy one block it shows you message: "You can't destroy other player's placed block". Or something like that. And I was 1 week ago on this server (So probably that was not your plugin) :/
@nejcneo
Just start building!
Great plugin, but I have just 1 question... How to create area xD Should I create fence and put sign on it ? What should be on sign "[Protect]" ?
There is no instructions on this page :/
@AcidSikeO
Let me know how you get on :)
This looks promising. Super simple too, it's exactly what I need. I will be testing this immediately. :)