Embargo
What is Embargo?
Embargo is a plugin that lets you to prevent players from transporting items between worlds. What sets Embargo apart is that Embargo handles these restrictions one way; just like a trade embargo. When a player uses a portal or teleports between worlds, Embargo checks to see if they are allowed to bring items into that world from their departing world. If not the player simply has all of their items dropped behind them.
Embargo is configurable and uses permissions to allow players to bypass Embargo completely.
Embargo supports more than one embargo per world and is compatible with Multiverse Sign Portals, Multiverse Portals, and MyWorlds as well as any other plugin that uses nether portals or teleport commands to transport players.
Example
Say you have two worlds: world_a and world_b. You would like to prevent items from world_b entering world_a but want to allow items from world_a to enter world_b. Just configure world_a to have an embargo on world_b and you're done!
Installation
- Download the current version of Embargo.jar
- Put Embargo.jar in your plugins folder located in your Minecraft server directory.
- Start or reload your server to generate the default config.yml for Embargo. This config file will be put into a folder called Embargo inside your plugins folder.
- Open up the config.yml in plugins/Embargo and enter your world names appropriately.
- Reload your server and have fun!
If the above wasn't clear to you I suggest reading the Installing Plugins article on the Bukkit wiki.
Configuration
Default config.yml
#--------------------------------------- # Embargo Configuration File # Author: nmacholl # November 10th, 2012 #--------------------------------------- #Here are some quick examples of how to set up Embargo. #You can just uncomment them and put in your world names. #Make sure you enter your world names correctly! #Use the permission token "embargo.immune" to make users #immune to this plugin. #united states: # - cuba #world: # - world_nether # - world_the_end #This message is displayed to the player when items are taken from them. alertmsg: " ** Items were dropped from your inventory!" #If you want items to be deleted instead of dropped set this to true. deleteItems: false #Set this to true if you want Embargo to listen to any teleportation #events. Enabling this will make Embargo compatible with some mods #such as MyWorlds with the caveat that players can't use commands to #bypass Embargo. strongMode: false
Example Configurations
Default Example:
world: - world_nether - world_the_end
Creates an embargo for world against world_nether and world_the_end. This means that players can carry items into world_nether and world_the_end from world using portals; but can not from world_nether into world or world_the_end into world. Items are still free to move between world_nether and world_the_end.
Another Example:
world: - world_nether world_nether: - world
Imagine you have two worlds: world and world_nether. The above configuration makes it so that players can't carry items between world and world_nether using portals.
Permissions
embargo.immune
Having this permission will make players invisible to Embargo. This permission is given to operators by default. Alternatively, you can give players immunity to particular embargoes!
embargo.world
The following permission will let someone bring items into "world" regardless of whatever embargoes are in place. You can also award players permissions to transport certain blocks across worlds. This works by giving the player a permission like so:
embargo.X
Where X is the decimal data value for the block players are allowed to transport. A comprehensive list of data values for blocks can be found here.
Download Latest Development Version
Not recommended unless the current version on dev.bukkit.org is broken.
Completely broken now.
Can you please update for 1.5.1? It almost works, but some items being dropped after teleporting.
But players still can transport things through their enderchests.
I didn't found any plugin, that do an enderchest separation between worlds without separation of player inventories.Works perfect!
@roguecatfish
Follow the example configurations listed above. You should be able to achieve the mechanics you want provided you aren't trying to use Embargo within the same world.
Say you have a world Spawn and another world called World. If you don't want items to go from World to Spawn enter a configuration like this:
This allows items to move from Spawn to World but not the other way around. A good mnemonic for the configuration is that items can fall down but can't climb up. For Transporter you may need to enable strong mode to get Embargo to work, depending upon how Transporter is coded.
Can you put more detail into the configuration? I use the plugin transporter for my worlds and I want it so that they can take items from the spawn to the worlds but not from the worlds to the spawn. How would I do this? Can someone give me a step by step instruction on how to configure the file so that this will happen? Or is it not possible to use embargo with the Transporter plugin?
@mooseintree
Do you want players to be able to take items from the survival to the semi-survival? If all you want is separate inventories I'd try Multiverse-Inventories.
I'll look into it, but I doubt it will roll out by 0.7
@nmacholl
Yes I understand, but I think people would like it more if it was stored somewhere and when you go back through the embargo plugin everything just comes back automatically. That is the entire reason I wanted to know. Because this portal will be in my spawn and everyone will be using it. So if they drop their items people will just take them. Which no one will like at all.
This plugin is EXACTLY what I have been looking for ,but I really need the items to be stored instead of being dropped :/ I'll keep looking at this page to see if one day you add that.
@mooseintree
To the first part; absolutely yes. As for the second part; this functionality isn't something I have looked into. I can add it to my to do list but I think you'll find that items dropping behind you is pretty natural because you can easily go back and retrieve them. Also if you are not careful players can steal items that the plugin drops for you!
Ok a few questions. I have a normal semi survival world. My players want a PURE survival world, vanilla, no market, etc. If I make a new world which is pure survival and make a portal going to that world, can I use Embargo to ensure they won't be able to carry anything over? My other question is, in the description, it says that the player "drops" their items. Does that mean they literally drop all of their items on the ground? If so, is there a way to make their items get stored somewhere instead of just being dropped on the ground for someone else to pick up?
@Undefined213
I think that the feature you are requesting is outside the scope of THIS plugin but I think it is a good idea none the less. I think your idea would work best as a companion plugin that allows admins to award permissions to players at certain times or on set intervals. I'm not sure if such a function exists, but I'll do some research and see if this is something I can do myself as a separate plugin.
The basic idea is that you would award all your players the embargo.immune permission when you want them to be able to raid each other then remove it when you don't.
PEX has a timed permissions feature that might get you what you want faster than I can.
Hey amazing plugin, i have suggestion however, i have recently decided i want to create a "Chaos World" and the way i imagine this world working is people pvp'ing and eventually getting the best items in that world, however if i completely didn't allow them to take items out to normal worlds it would make it kinda boring, the problem there is that i see something like a crew raiding other bases and stealing their items and instantly take them to the normal worlds to secure them, that being said i came up with and idea to make it work, i thought "what if i only let them take items out of the world on a specific day? maybe only once a week or twice a month, this would make them have to store items in their bases until the specific transfer date comes up giving other players a chance to raid them back etc..." the problem is i cant find any plugin that has an option for me to create a day where the worlds are linked, and your plugin basically does everything except for that so i just wanted to suggest maybe adding some sort of option like that? worst case scenario ill just turn on item transferring manually on the scheduled dates but it would be awesome to have an automated system :D let me know what you think, if you dont like the idea or find it too hard to code etc please let me know i wont get mad or anything :D
@stevenmlittle123
MyWorlds support has been added. Enable "strongMode" in the config file and you should be golden.
@stevenmlittle123
MyWorlds support is coming in the next version which will be 0.6
@stevenmlittle123
It is my understanding that My Worlds uses commands to teleport players from world to world. So no, Embargo won't work with teleportation commands. It will still work for portals within those worlds going to the nether/the_end.
Does this work with MyWorlds???
@Mon3y13ankeR
I will certainly try. It requires some thinking though since the config.yml would need to be redone to accommodate the item specific restrictions.
@nmacholl
Thank you alot. I'm still curious, would it be possible to have it impementend until the end of october? ;)
@Mon3y13ankeR
This is possible, though I can't be certain when it will be implemented.
Would it be possible to implement an item filter? Lets say I want players to be able to transfere any item from world1 to world2 but I only don't want them to transfere sandstone or tnt from world2 to world1. It would be amazing if its implementet.