Tekkit Restrict
Tekkit Restrict (requires Tekkit Classic)
"My initial opinion of having my own server was that players would get along. Boy, was I wrong. Only 2 days after my server's release, I already had 7 players who duped Gem Armor and blew up spawn about a trillion times. After setting gem armor to a certain rank, they then torched my spawn. After disabling most of EE until a certain playtime rank, they then found their own way around my disabling plugin. (noitem)
Then I decided to make Tekkit Restrict..." - DreadSlicer
- Author: DreadEnd ([email protected])
- Contributor: Taeir ([email protected])
Features
Crash Prevention
- Prevention of certain server crashing Tekkit Classic problems, like REP's in a deployer
Ban Items and Blocks
- Ban items and blocks from vanilla Minecraft AND from any mod installed.
- Customizable messages for why something is banned (v1.19+)
Limiter
- Limit the amount a player can place of a specific kind of block.
Limited Creative
- Prevent the use (left/rightclick) of certain items in creative.
- Make players unable to move valuable items over from creative to survival.
- Prevent interaction with other inventories in creative.
- Prevent the dropping of items in creative.
Limited Interacts
- Disable the right/left clicking with items.
- Highly customizable: Prevent clicking on a block/in the air/in safezones.
SafeZones
- De-charge EE "Tools" upon entering a marked SafeZone.
- Remove most entities in SafeZones. (not including dropped items, vehicles, players, etc.)
- Force Ring of Arcana into "Earth" mode to prevent griefing.
- Advanced integration with WorldGuard and GriefPrevention to mark all regions or specific ones as safezones.
- Basic integration with Towny, Factions and PreciousStones to mark all regions as safezones.
Smelting/Crafting
- Remove smelting recipes
- Remove crafting recipes
- Prevent the crafting of banned items and warn players so they don't waste ingredients.
- As of v1.19, Tekkit Restrict can prevent crafting of banned items in ALL crafting tables, including project tables and automatic crafting tables, by integrating with forge.
Max EU
- Set the maximum EU charge Electrical IC2 items can hold.
- Change the speed at which Electrical IC2 items charge at.
EMC Value Changer
- Set, change or remove EMC values from any item or block.
Anti-Dupes
- Ability to set a command that will be executed after someone has duped x amount of times.
- Anti-Dupes for:
- RM Furnace Dupes
- Alchemy Bag + Void Ring/Black Hole Band Dupes
- Transmutation Table + Klein Star Dupes
- Tank Cart Dupes
- Teleportation Dupe
- Project Table + 2 players Dupe
- Automatic Crafting Table Mk. 2 + Mining Laser/Mining Turtle/BlockBreaker Dupes
Anti-Hacks
- Ability to set a command that will be executed after someone has hacked x amount of times.
- Anti-Hacks for:
- Speed Hacks
- Fly Hacks
- Forcefield Hacks (hit players out of range/out of your field of view)
Logging
- Split the server log output into various other files.
- Filter out certain messages so they don't show up in the console.
- Log the usage of EE Tools
Other
- Prevent the use of certain Gem armor abilities
- Forcefully unload chunks when the total number is getting too high.
- Prevent the placement of certain blocks next to locked machines/chests, to prevent people from stealing stuff with buildcraft pipes.
- Display the server time used by each and every eventlistener on the server to see what plugins are causing lag.
- Open and modify the alchemy bags and inventories of people, online and offline.
- Teleport to places where there are alot of items on the ground.
- Patch ComputerCraft to make sure people can't crash your server with ComputerCraft scripts.
- Set the minimum time for RedPower timers to prevent lag.
Pages
Compatibility
- Vault - Recommended permissions plugin. (it supports all other permission plugins)
- PermissionsEx/PEX
- GroupManager
- WorldGuard
- GriefPrevention
- LWC
- Factions
- Towny
- PreciousStones
Special Thanks!
Source
The source is available on GitHub: TekkitRestrict GitHub
Dev Builds
Development builds of this project can be acquired at the provided continuous integration server. These builds have not been approved by the BukkitDev staff. Use them at your own risk.Link to jenkins
Metrics
Tekkit Restrict uses Hidendra's plugin metrics system, and as of version 1.18 also uses TMetrics by Taeir. This means that the following information is collected and sent to mcstats.org and metrics.taico.nl:
- A unique identifier
- The server's Java version
- Whether the server is in offline or online mode
- The plugin's version
- The minecraft version of the server
- The OS version/name and architecture
- The amount of CPU cores
- The amount of memory allocated to your server
- The number of players online
- The Metrics version
If you wish to disable Metrics, you can do so by opt-ing out, which you can do in the Metrics config file under /plugins/PluginMetrics/
You can disable TMetrics in the General.config.yml file under /plugins/TekkitRestrict/
Auto-updater
Tekkit Restrict has a built-in auto-updater, which connects to BukkitDev to check for updates. If you want to change or disable this behaviour, you can change the update settings in the General.config.yml file.
@dom1298
That is something with the dev builds yes. I changed the way the GemArmor blocker works, but made a mistake. It will be fixed in the 1.18 release.
@Taeir
Thanks to your response on that last error log. I think you may be right in assuming that this was simply a heap space error. I will continue to observe my server for this same issue occurring in the future.
However, I Have recently seen a few of these error logs popping up in my console: http://pastebin.com/DiC7qUfK
This error log may or may not be related, but I wander if it may be a slight issue with the latest dev build of TekkitRestrict.
On a positive note though, TekkitRestrict appears to be using a lot less CPU than the dev build 1.17 and the new feature of using permission nodes to specify item limits is working seamlessly! :D
Thanks, Dom
Plzz help me, tekkitrestrict starts with some banned items but i cant find a place where i can edit them! Plzz help :) If you help u can get Mod on Safetycraft.no-ip.org
@dom1298
Well, as far as I can see, everything in the EntityRemover thread is in a try catch, and should throw the warning: "An error occured trying to disable entities" when an error occurs. Since this didn't happen, I think that the "java.lang.OutOfMemoryError: Java heap space" caused the other errors. It seems the server ran out of memory while executing the entityremover thread and thus stopped it's execution.
In other words, I think it was a mere coincidence that this error occured and the cause is in the too little memory. As you can see from the other errors, other threads are failing as well because there is not enough memory.
At the moment, tekkitrestrict gets the list of all entities in the server, and checks for safezones and such while iterating over it. This takes alot of time and the list is often modified while tekkitrestrict is doing this. For this reason, I will see if changing it to go through the entities chunk by chunk is a better way.
Hi Taeir, this is an unusual error log which I found lying about on my console earlier, just before the server crashed and had a 4 hour downtime.
From what I can see, it involved the tekkitRestrict entity remover, but would you mind taking a look at it and seeing what you think of it? It may be an issue with other servers using TekkitRestrict..
Heres the error log: http://pastebin.com/pHQFA2ft (*Read from bottom to top*)
I look forward to hearing your reply,
Thanks a lot,
Dominic Cotterill (Velikcraft Server Owner)
@robertjones6
Thank you for informing me of these crashes. I'm afraid I cannot fix the most serious ones (the ones that actually crash the server). The things that cause them are quite complicated and fixing them would require alot of time, effort and modifying the copyrighted mod files.
The deployer stuff can easily be fixed and will be in the next version of tekkitrestrict. The computer crash is already automatically fixed if you run tekkitrestrict at least once (might be only in 1.18 dev versions).
We just have to hope that other people dont get to know about the crashes.
dont know if you can fix them but it would be handy
ive set up a few potential crashes on Ozone, the owner said hes fine as its there just to show you and only staff + me can activate them also no one can get in the area
heres the coords to tp directly to them
X: +33 Y: 65 Z: -319
@iSattyCR
Ok i found the problem. Turns out I had forgotten a ")" somewhere. In order to setup teh tables, use the following queries:
Awesome plugin, would it be possible to get a 1.5.2 version for updated tekkit packs & Ftb? Thanks.
@brend998
Unfortunately, the project table does not call craftingEvents or anything else that would allow plugin developers to block the crafting of certain items in it. Like JBDiggy said, the best solution is usually to just ban the item globally.
I do wonder why you use Tekkit Customizer in conjunction with TekkitRestrict. 2 Plugins with similar funcionality can increase server lag quite alot. If you do use it, I recommend you use a feature of only 1 plugin, and disable the event completely for the other. (For example, let tekkit customizer handle bans, disable noitem and limitedcreative in TekkitRestrict)
Taeir
@iSattyCR
Seems that I messed up the mysql query syntaxis somewhere. I will see if I can find it and fix it in the next dev build.
Taeir
@brend998
Hey, I'm not connected to this plugin in any way, just thought I'd offer some advice.
If you've set up TekkitCustomizer correctly it shouldn't matter that they can craft the items in the Project Table because they'll be confiscated as soon as the player tries to pick them up / put them in their inventory, just make sure you have the items listed under 'OwnershipBanned' as well as 'CraftingBanned', that combined with careful use of 'PlacementBanned', 'UsageBanned' and 'WorldBanned' where appropriate means if they do manage to craft it they've just wasted the resources as it will be useless and very quickly confiscated one way or the other.
We spent ages testing this out on our server and it's been 100% effective for the last 9-10 months, hope that helps.
I installed tekkit restrict to an tekkit classic server but as soon as i loaded it up it isnt letting me use some of the industrial craft items it is auto banning them
@Taeir
I've disabled the Towny in my config and it seems to be working correctly now! The RM dupe was my bad, it does work ;)
However, there is a bug with Project Tables so people can craft banneditems. This is pretty annoying because people keep crafting the banned items even though they are on the banned items list of Tekkit Custimizor.
One last thing: What does this "threadinfo.txt" tell me? http://pastebin.com/Vy2kkYuC It's something from the TR plugin correct?
I've also posted some bugs in my comment down below.
I'm using the latest Dev. version: 1.18
Heey!
I would just like to report that Landmarks are still broken, players on my server cant use Fillers nor Quarry's and it's really annoying, when I unistall the plugin everything works fine! I'm using the latest Dev build, woul you be able to fix this asap? Thanks in advance.
Greet Rubbertjuh
Hi,
Since no one is really having the database.config issues, I am hoping someone will be able to help. For the database.config, I am using MySQL database and have everything right from localhost to user and password. For database, I am using the same database name as I have created in my MySQL database, but when I start the server, there is an error that it cannot find the database.
(Error when trying to execute query! Error: Table 'Tekkit_TekkitRestrict.tr_dbversion' doesn't exist).
Then I created the tables manually but then had issues with them not been setup properly.
If anyone have the tables created automatically for them, can you please provide some feedback on how each table is setup since I feel like I will have to do this manually.
Database Name: Tekkit_TekkitRestrict
Main Errors:
1. Error when trying to execute query! Error: Table 'Tekkit_TekkitRestrict.tr_dbversion' doesn't exist
2. Error when trying to execute query! Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''tr_dbversion' (version NUMERIC(3,2)' at line 1
My database fails to create any tables.
These are the tables created manually with each column set up according to one of the source files.
1. tr_dbversion 2. tr_limiter 3. tr_saferegion
When I used these manual tables setup, the tr_limiter showed errors.
Can someone take screenshots of their table and the setup of each column. It would be greatly appreciated.
Thank You, Satty
@Taeir
I put the autocrafting bench mk2 in the blacklist. The block breaker still breaks the mk2... And no i haven't changed any item id's. They are all default.
@2sick4you
Since version 1.18 dev 1, tekkitrestrict adds the autocrafting bench mk2 to the banned items list for the block breaker. Unless if you have changed id values from the tekkit defaults, you shouldn't be able to use blockbreakers anywhere to dupe items with autocraftingbenches mk2. The mining laser dupe I haven't fixed yet, but I will look into it soon.
@Taeir
You can dupe with the autocrafting bench mk2 outside of protected areas with block breakers. Or just the mk2 bench and a mining laser (Shooting the mk2 with the laser). The blockbreaker/mk2 dupe doesn't work in griefpreventionclaims.