Tekkit Customizer
Use this plugin to ban items and blocks for Bukkit, Tekkit, and FTB servers using the Bukkit API. TekkitCustomizer removes banned items from the world and player inventories. It is easy to configure, can be applied retroactively, and automatically logs confiscated items. It requires no permissions plugin unless exceptions are need for certain players. The plugin settings default to commonly-banned Tekkit items.
Because every story that starts with "We decided to start up a Server..." shouldn't end with "...so we had to reset the world."
Installation
Copy the .jar file into your plugins folder to install the plugin. Then restart the server or use a plugin manager to load the plugin.
Configuration
An entry in the config file (config.yml) to ban ALL wool looks like this:
35:*:wool:because pink wool is for girls
- The first part is the material ID.
- The second part is the data value. Some blocks have the same ID, but a different data value. For instance, white wool is 35:0, while pink wool is 35:6. If you put an asterisk, that means ban ALL data values for the given material ID.
- The third part is for your reference. It will appear in the logs to shorthand what the various IDs and data values mean.
- The fourth part is the reason for the ban. It will be shown to players at useful times such as when a player tries to craft a banned item. If you don't fill in the reasons for your bans, you will be constantly asked why various items are banned.
After you edit your ban list, use /ReloadBannedItems to update the bans in-game. If your config.yml file "resets itself", that means you made a formatting mistake while editing the file. NotepadPlusPlus is a free file editor perfect for editing YAML files
A full list of Block IDs will help you add banned items. You can also get the block IDs and Data Values by using /blockinfo (requires /op or tekkitcustomizer.blockinfo permission). This tells you the information about the item you're holding and the one you're pointing at in the world. Some items have a different values in your inventory as opposed to ones place in the world (eg. a door item in the inv vs a placed door in the world).
Making Ban Exceptions
A player who has /op automatically ignores bans as with any player with permission:
tekkitcustomizer.*
You can make individual ban exceptions to give some players to generally banned items through permission nodes. Here are various examples, which should help you understand without further explanation.
- tekkitcustomizer.35.*.use - tekkitcustomizer.35.6.place - tekkitcustomizer.35.*.craft - tekkitcustomizer.35.6.own - tekkitcustomizer.35.6.* - tekkitcustomizer.35.*.*
You can't prevent a specific player's placed block from being removed from the world as this plugin does not track who owns placed blocks in the world.
Types of Bans
Usage Bans
This ban prevents players from using an item, which means left-click or right-click while the item is in-hand. This works well for items like the Mining Laser, but won't stop players from using items which benefit from passive use (eg. modded armors, Talisman of Repair, etc.). You will need a crafting ban or ownership ban to prevent players from getting those items at all.
It's not possible for any plugin to prevent a player from using an item when it is activated by a keystroke (eg. R, G, C, etc.), which are common especially for Equivalent Exchange items. This is why many EE items are on the default ownership bans list even though their functions are not all really ban-worthy.
Crafting Bans
This ban prevents players from crafting an item. When the player tries to craft the item, they get a message that they can't. This is the most player-friendly approach to preventing players from getting banned items. Forge mods don't always hook into Bukkit, meaning its possible for players to get banned items through some automatic or non-crafting approach (eg. alchemy). When you crafting-ban an item, test for workarounds, which may lead you to ban additional items to prevent those workarounds. The contraband scanner will help you identify the existence of workarounds by creating log messages each time it takes an item out of a player's inventory.
Ownership Bans
This ban prevents player from picking up an item from the ground or from a container (eg. a chest). If a player doesn't have permission to own an item, they won't be able to craft it. The contraband scanner will search each player's inventory for ownership-banned items and actually remove them without warning, notification, or compensation. Any items which are actually found in a player's inventory which the player doesn't have permission for will trigger a log entry, so you can follow-up with an investigation to find out how the player managed to get the item in the first place.
Placement Bans
This ban prevents a player from building a block in the world. A player that already has an item which is later placement-banned can still trade it with another player or break it down into energy (EE mod) to get some value out of it.
It is recommend to place most or all placement ban items to your crafting ban list. This will prevent your players from unknowingly spending their resources to craft a block which they then can't place in the world like they planned leading to them feeling cheated and likely complaining. The only exception you might make to this rule is for an item which can't be placed, but is still useful because it's an ingredient in another recipe for an item you haven't banned.
World Bans
This ban will retroactively remove the placed block from the world through the contraband scanner. This is great if you need to ban an item, but also know it's in the world (eg. energy collectors and world anchors). This will help clean up newly-banned items without having to search your entire world for them. There are exceptions to this removal as the scanner can't determine who owns the block.
Similar to the ownership ban, this ban will trigger a log message when a contraband block is removed, along with its location so that you may investigate to find out how the block got there in the first place.
Notes
Download the correct CraftBukkit version for your server as labelled on the uploaded files as major Bukkit API changes occurred between 1.2.5 to 1.4.7.
The default ban list is made for Classic Tekkit based on hands on testing done by BigScary. Before deciding to remove items from this list, be sure to read the reasons for default bans to understand why it was originally removed. If you are running FTB, Tekkit Lite, or other mod packs, do your own research for what you want banned and change the config file accordingly.
Save yourself some time! Check our Frequently Asked Questions page for the answer to your question. If you found a bug, make a ticket and include your config file.
The following features are planned for the next release:
- Vastly improved performance (Confirmed)
- Add configurable scanner settings (Confirmed, in progress)
- Change in config file structure (Confirmed, in progress)
- Change in permission nodes (Tentative, investigating)
- Consolidate Usage Bans and Placement Bans (Tentative, investigating)
- Consolidate Ownership Bans and Crafting Bans (Tentative, investigating)
- Dropped 1.2.5 support (Tentative)
- Dropped explosion prevention support (Confirmed)
Donations
Unlike other players who have a choice to play the game, my commitment to development and administration usually means I cannot and I'm fine with that choice. A lot of my free time is actually spent designing, developing, testing, and fixing plugins like this one to make Minecraft more enjoyful for all players. If you like this plugin, please consider sending me a donation by clicking the button below :) Thanks!
1.2 Updates!
@lrzinkhon42
This has nothing to do with the jar file - it's not in the archive. Config.yml is in the griefpreventiondata folder under your plugins folder.
@Benf222
@MYCRAFTisbest
Thanks for the tip, I'll look into them to see if they need to be on the default list. Right now, I don't think they are (I was assuming they blow up same as nukes).
@yrthilian
Ugh, another multi world plugin. Okay, then I have to add mystcraft to the soft dependencies list to make sure it loads before TekkitCustomizer. Stay tuned for the next version.
@yrthilian
Hey thanks a lot that was my problem it is up and running now amazing pugin btw bigscary
@bigscary
this is mystcraft http://mystcraft.wikia.com/wiki/Main_Page
it is becomeing very popular because of what it can do for admins and players. might be an idea to look into it.
@Benf222
is your server on linux or windows or mac?
For me this kept happing even if i used notepad to edit the file on linux. I found i had to use linux's nano command to edit the file and save it.
From working on the files if you dont edit it right it will reset the file. like useing tab instead of spaces or missed a space.
@lrzinkhon42
looks like you extracted the file? for bukkit you just put the .jar file into the plugins folder it them makes a folder when you run the server
stop the server and you will have a new folder in plugins called TekkitCustomizerData in side there will be the world.yml
that is the file you edit.
hope it is ok i replied to this post
@bigscary
EnforcementWorlds: - mystcraft_worlds - mystcraft_world_50 - mystcraft_world_51 - mystcraft_world_52 - mystcraft_worlds/mystcraft_world_50 - mystcraft_worlds/mystcraft_world_51
you mean this?
I already added in the worlds but this does not work from the list above you can see i tried the folder covering all mystcraft worlds i tried the world names themselfs and i tried the folder locations of the worlds.
Mystcraft is a multiworld system (in my opinion much better than Multivers) but i am not going to harp on about mystcraft. Does your plugin work for multiworlds in this format?
Cool. THis plugin looks promising as something to finally ban the nova catylist things (they like to blow up in there own special way)
To further explain my dilemma here is a picture of the .jar file in zip http://imgur.com/UAjET
Everytime i restart my server, the tekkit customizer config resets, any help ??
@bigscary
Oh well i only saw a plugin.yml i didnt see the config yml that would have made things 10 times simpler xD where in the archive is the config.yml
@lrzinkhon42
From your pastebin, it looks like you modified your plugin.yml to add config.yml content? You're supposed to edit your config.yml, not your plugin.yml.
@yrthilian
I've never heard of Mystcraft, so I can't really help you. But in the config file, there's an "enforcement worlds" list. Any world which isn't listed in that list will allow all items. This way, you can have one world where all items are available and one where they're banned to keep things stable and safe.
What about supporting multiworlds? like mystcraft. Where it stores its world files in a folder like this
mystcraft_worlds/mystcraft_world_50 mystcraft_worlds/mystcraft_world_51 mystcraft_worlds/mystcraft_world_52
I did try just adding in
mystcraft_worlds mystcraft_world_50 mystcraft_worlds/mystcraft_world_50
none of thoes seem to work. I was hopeing it would as this would be the perfect plugin for the server.
@bigscary
that build i linked earlier still causes the default bans after i /reloadbanneditems so idk lol if you have any suggestions im open xD
@penorzilla
Hmm yep I think I can do that. Let me look into it. But first, I gotta finish out the default bans list.
@TrebsJangles
As a troubleshooting step, log onto an account where you have permission to have the item. Then give it to yourself (via creative menu) and then put it in your hand and right-click. If when you right-click with the item in your hand it's not immediately taken away, that means the permissions are set correctly. If the item is taken away and you don't think it should be, then use your permissions plugin to "dump" the list of permissions for your account to make absolutely sure you actually have the permission you think you do. For example, the permissionsbukkit command is /permissions player dump <player>, I think.
If you confirm that you have the permission (using the dump command, not your permissions YML file), please tell me which permission you have and I will double check the code.
@lrzinkhon42
Once you update the YML, I think the reload command is either /reloadbans or /reloadbanneditems. I will update the documentation above after I've confirmed.
@1996BRECHT
Yes you can ban TNT, but you don't need to. The default config will prevent TNT from destroying blocks at or above sea level, which will make it safe to leave not-banned, since it can't be used to visibly wreck the world.
can I also ban regular items (like tnt) with this ? thanks, love the plugin
@TrebsJangles
It is still using default bans any ideas?
@lrzinkhon42
That's fine, /deop yourself and test crafting one to see if it works.
@TrebsJangles
This is what i have so far does it look wrong? http://pastebin.com/WDE5Lv8W