TaxFreeRegion
TaxFreeRegion
Description
Note: At the moment I do not have that much time to maintain TaxFreeRegion (and I stopped using Bukkit). I will try to provide compatibility updates - but I can't promise you that updates will be available the day after a new release of Bukkit.
TaxFreeRegion enables you to define regions where a user who enters that region gets different permissions. You can black- and whiltelist specific commands (not only basic commands - the black-/whiltelist checks the whole command with all parameters). Additionally you can control what the plugin does when a player enters or leaves a region (execute commands, change the inventory, ...). The plugin also offers certain protection options which ensure that a player cannot abuse extended rights which he got inside the region.
Uses for this plugin:
- Creative-area on survival server
- PvP Area
- Adventure area
- Create an area with different permissions
- Create a regeneration area
- Create a shopping area
- ...
Video
(this video is from the old version 0.2)
Features
- Define multiple independent regions with multi-world support;
- Manipulate inventory, health, hunger and XP when a player enters/leaves a region (save and clear, do nothing, restore the saved, ...)
- Inventory reward system: Enter a region -> inventory is saved and cleared. Leave the region -> You get your old inventory back AND you have access to all items you collected inside the region.
- Give regions a name and welcome users that enter those regions.
- Define regions with WorldEdit or use existing WorldGuard regions.
- Server restart proof, you won't loose your inventory if you disconnect or the server restarts;
- Define permissions that will be applied to a player when he enters the region.
- Blacklist and whitelist commands.
- Configure protections for every region to prevent players from transporting items across the border.
- Run commands (instant or delayed) when a player enters/leaves a region.
Dependencies
- WorldEdit 5.5.7
- WorldGuard 5.8 (optional)
Installation
- Download the JAR file and put it in the plugins folder
- Make sure you have WorldEdit and that it is enabled
- Restart the server.
Credits
- adreide (idea, version 0.1 and 0.2, see: TaxFreeRegion 0.2 - Bukkit Forums)
- tickleman (version 0.3, see:TaxFreeRegion 0.3 - Bukkit Forums)
- lishid (used some code from his plugin "OpenInv" to create the "inventory reward" feature, OpenInv on BukkitDev )
Source
https://github.com/fruel/TaxFreeRegion
@EnderdragonDE
did this occur after a Bukkit or WorldGuard/Edit update?
According to your stack trace, the error is caused by the "dispenser: full" line. But for me the line seems to be correct.
Try this: shutdown the server, rename or delete regions.yml, start the server again and create a new region config.
Any idea whats wrong? Using 1.2.5-R4.0
My region.yml
understandable just bringing it to your attention and thank you for such an awesome plugin i use it for many things but as im running a production server with 90+ people on every day i had to disable the area till its fixed and look forward to re-enabling it
@crehop
Yes, I think there is a bigger bug in the diconnect handling. A few days ago the users on my server reported another problem with disconnecting while beeing inside a region.
Today I started working on the next update but as I said in the project description I dont think I will be able to release it before the first week of July (next week I'm on vacation).
MAJOR BUG THAT NEEDS TO BE FIXED!
permissions stick to people
person enters a special permission area then disconnects then reconnects quickly person does /spawn or whatever to leave the area and has the permissions stuck to them until they disconnect again .. is there any way to check for disconnect/reconnect and make sure there permissions are reset? people used this to get creative in a non creative area on my server
@KyleBoyer
No. Probably the names are a bit confusing.
This config does this: If you enter or leave a region, STORE the inventory of the region you are coming from (or the default world inventory) and RESTORE any saved inventory of the region you are going to (or the default world inventory).
@lfrst05
Wouldn't that store what is currently in their, then restore it right back? Essentially over-writing the other store?
@KyleBoyer (and to all others who have asked this question)
It is possible to create completely independent inventories for every region.
To create a completely inventory for a region use this config:
This topic has been discussed before in the following ticket: http://dev.bukkit.org/server-mods/taxfreeregion/tickets/3-multi-inventories-one-for-the-world-one-for-each-region/
Please can you make it so you can store your inventory per region? Like when you leave you will get back what you had in that region, when you enter you will get back those items...ect... I'm not 100%, but I don't think you have it this way, I think you just have it where when you leave the region, it just restores the old items, but doesn't store the ones from that region...
Essentially what I want is that the items gained in the specific region are not discarded but also saved for that region...
@lme999
TaxFreeRegion 1.3.1 is running on my server since 1.2.3-R0.1 without any problems (1.2.3-R0.1, 1.2.3-R0.2 and now on 1.2.4-R0.1-dev) "Cannot load plugin etc...": Please post the full error message. Also a list of your installed plugins would be helpful - probably its a conflict with another plugin.
Downloaded the latest version of this plugin on my 1.2.3R0.2 server, gives me the error "Cannot load plugin etc..." please update or if you know of a way to fix it please reply!
@d3fin3d
1.3 is out.(file needs to be approved)
I fixed the "block-beak" WorldGuard bug and also the empty chat line.
I changed the teleportation-handling code a little bit. I don't know if this will fix your bug but I tested it by teleporting into the region and out of the region about 100 times and everything worked.
Another change: No more "exit the region" on diconnect.
Concerning the 'giving 1 of diamond sword' messages:
This message is not from TFR - is is from the server itself or from any other item plugin that you use (CommandBook,...). It is hard to reliable supress this messages because there could me so many different plugins behind the 'give' command.
@lfrst05
Thanks lfrst05 :). I've done as you suggested to disallow block breaks, and it's working great.
This is an incredibly useful plugin which I think I'll be using with our CTF PVP arena too!
Again, thanks for all the work!
EDIT: By the way, I was just wondering if there's any way to turn off the enter and exit messages without just making '' which still sends the player a blank line. I'd also like to know if it's possible to turn off the 'giving 1 of diamond sword' messages in chat when players are given items in the TFR. If neither of these are possible - any future plans to add these in as an option?
@d3fin3d Thank you for your report.
I will take a look at this tomorrow or on Saturday.
Temporary workaround for the WorldGuard-block-break bug: set "block-drops" in the config to "none"
@lfrst05
Hey. I have a few more issues to report. Instead of allowing people to tp in and out, I decided to make them physically run into the area. This technique works well, and only once did a player lose all their items due to their client lagging badly and having to d/c mid fight. On a side thought, this leads me to think that severe lag spikes either server side or clientside whereby a players position changes very quickly, causes TFR to miss the change, sometimes resulting in a permanent cleared inventory. Just a thought though.
I've also encountered a new problem which will force me to uninstall the plugin until it's resolved: Creating a new TFR seems override the 'break block' worldguard function. So a user entering my spleef arena can suddenly break the walls, yet when they leave the TFR area, protection resumes as per normal. The interesting thing is, the player still sees the 'you do not have permission' warnings in red text, yet they are still able to break blocks. The player can't place blocks though, nor are they able to press buttons. Looks like this is just affecting block-breaking. When the TFR region is removed, blocks are once again protected properly by World Guard.
Here's my cfg:
@d3fin3d
No it's not a known problem. I tested all features before I released version 1.2 but I had not the time to test everything over a longer period of time. Could you send me your regions.yml? How many tp/warps a neccesary until this happens (approximate value, if you know)?
I will try to investigate the bug this weekend.
Running CraftBukkit #2036 and TFR 1.2:
I love the inventory switch feature. This is exactly the sort of thing needed for our spleef arena. Sadly, I'm finding that players original inventories aren't being restorted though.
Perhaps this is because players are warping or TPing instead of running in/out?
I've tested this and the inventory is restored properly the first few times, but after several warps and/or tps, the inventories stop being saved and you end up losing all your original items.
Is this is a known problem?
@lfrst05
Ok thanks!
@gv1222
Server stop or client quit is still the same as leaving the region. I'll fix this in 1.3. I do not want that the primary inventory of the player is stored in the plugin files (so the inventory is not included in map backups for instance). Furthermore not exiting the region on server stop/client quit causes some other errors.
I'll try to release 1.3 as update for 1.2.3-RB
@lfrst05
Does it now save taxfreeregion inventorys on logout?