pTweaks

Hello,
Unfortunately, I have long lost interest in Minecraft and have no plans to update this plugin any further, so I highly suggest finding a replacement. It was a good run, but I think it's time to call it quits. We appreciate all the support over the years, and are truly grateful for it. Best of luck,
Cheers.
-
-
-
-
-

pTweaks is a server optimization tool. This plugin will redefine how your server loads, stores and manages chunks. pTweaks will prioritize chunk loading so the ones that need loaded get done first. When a large number of chunks are being loaded consecutively the plugin will start to unload unused chunks at a higher rate to keep performance on the server higher. pTweaks has a smart chunk loading algorithm so that chunks in a players surroundings stay loaded while under normal use so never again will you take a few steps and all the chunks start to unload behind you. pTweaks stops your server from using resources it doesn't have to use. pTweaks also adds mob handling. You are able to set limits of Monsters and Animals in each world. When things get out of hand pTweaks also offers a kill command to kill all living entities. pTweaks also offers a command to check your ram limits, performance, and allocations. pTweaks is an anti lag plugin.

Your server will be able to run longer, and smoother without the need of a restart. This being pTweaks already clears all unused data that would normally be removed with a server restart. Java dumps are already cleared and Chunks have a longer life span, meaning ram usage and CPU intensity will drop. Mob handling is now a possibility, enable or set the amount of mobs/animals spawning in your world(s) to massively drop resource usage, Limiting mobs is like turning down view distance improvement wise. Helps reduce performance therefor stopping lag.

The lifetime is how long the chunk is loaded into memory, and the prune is the cycle rate. Depending on your server size and CPU power you may want to customize these settings. Larger servers with more free ram may want to make prune higher to keep chunk loading and unloading from happening less often, while smaller servers may want to keep the default settings or make prune lower. The prune is the cycle of when all the unused chunks get unloaded. So having this higher makes more chunks stay loaded longer, while having it lower makes them unload faster. Both have benefits but generally i don't suggest editing it. SpawnChunkRadius is the static (initial) loading of chunks when a player joins your server, so the amount of chunks loaded around him, don't suggest editing this.

ChunkEdits:
ChunkEdits is a 100% customized chunk loading algorithm to enable quicker loading of chunks, and priority packets. So chunks load in a fashion better fitted for the player and the server. This algorithm isn't perfect, and currently being recoded.
<><><><><><><><><><><><><><><><><><><><><><><><><><><><>
Monster Limiter:
This is a fully custom feature. You can enable or disable this in the config. Limit the amount of Mobs or Animals spawning in your world, or disable spawning all together. Change if you want spawning in one world and not the other, you can also simply use the kill command to butcher all living mobs/animals in the current or all worlds. You can see all commands by typing /pTweaks in game.
<><><><><><><><><><><><><><><><><><><><><><><><><><><><>
Chunk Persistance:
This is a fully custom feature, that can be turned off in the config. This does a whole lot and is the main backbone of the plugin. Change how many chunks are loaded on player join or how long chunks stay loaded after people leave them. Makes chunks with no activity loaded at certain intervals to save tons of CPU power. The clear cycle is changed to make less disc writing. Chunks with lots of visitors will stay loaded longer, and not have to render again and again. This adding lots of performance to your server.
<><><><><><><><><><><><><><><><><><><><><><><><><><><><>
Ram Check:
Check the amount of ram being used, the free ram, and currently loaded ram. This gives you the ability to check server performance and debug bad plugins by seeing which are taking up the most resources by adding one and testing, adding another and using the command again. This command will soon also have TPS and other performance tracking abilities.
<><><><><><><><><><><><><><><><><><><><><><><><><><><><>
Packet Auto Save:
Instead of writing every chunk to the disc every 2 seconds. This changes it to a custom time that you want, Default is 50ms This saves the server from writing about 14KBps to the disc (10 writes, 3 reads per chunk, on a 3 person server). As well as saves about 2 calls to deflate every 2 seconds. (per chunk)
<><><><><><><><><><><><><><><><><><><><><><><><><><><><>
TNT Edit: (Suggested)
Basically all this does is after the first explosion, shadows the rest of them by duplicating the same explosion so the effects of say 500 TNT are the same as the effects of a single tnt block going off. This is not bullet proof, and it will still be possible to cause server lag by making the server render too many packets, but this is not possible unless doing thousands of blocks with a plugin like WorldEdit.


- Download pTweaks
- Stop your server
- Put pTweaks.jar in your Plugins directory
- Start Your Server
- Edit Config's to your liking or leave default
- Reload
- Done!


/pTweaks
Permission: pTweaks.pTweaks
This command will bring up most ingame settings, and information. You can also enable or disable mob spawning from ingame.
/ram
Permission: pTweaks.ram
This will show current ram usable, and information

VIDEOS:
Thanks too @Torrent for the video
Thanks too @BrandonHopkins for the video
Lag Test 3,000 TNT / With and Without pTweaks (356MB server)

Please consider donating to help support development of this plugin!
Everything helps.
1) Cyberpwn $5



-
View User Profile
-
Send Message
Posted Apr 20, 2012@mrchasez
-
View User Profile
-
Send Message
Posted Apr 17, 2012@masteryodaaa
People being kicked for flying? Make sure they have permissions to fly and or you have flying enabled on your server. However i am going to be putting out another large update quite soon.
-
View User Profile
-
Send Message
Posted Apr 17, 2012@mrchasez
Must i have view distance 10 so people dont get kicked for flying?
Edit:I tried that people still get kicked how can i fix this?
-
View User Profile
-
Send Message
Posted Apr 16, 2012@danolden
I haven't been able to re-create this
@StuckingFoned
I am working on all of those
@alltra09
I am working on that too.
-
View User Profile
-
Send Message
Posted Apr 15, 2012@StuckingFoned
if this cleared entities i would so pick it over nolagg
-
View User Profile
-
Send Message
Posted Apr 15, 2012Here are some good suggestions:
Ability to:
Remove entities (dropped items, boats, minecarts, xp etc)
Limit certain entities
Limit certain mobs/animals
-
View User Profile
-
Send Message
Posted Apr 15, 2012The plugin works great. Then I discovered that non of my buttons och pressure plates worked any more. If I remove the plugin everything works again. What do I miss?
-
View User Profile
-
Send Message
Posted Apr 10, 2012@mrchasez
Ah, thanks for the info. So in order to see immediate results, I need to issue some kill commands to wipe out all existing enemy mobs.
I am in the process of upgrading my CB 1.2.4-R1.0 server to 1.2.5-R1.0 and will see if this works on the newer version.
Thanks, LHammonds
-
View User Profile
-
Send Message
Posted Apr 10, 2012@Adrenalineq
Yes. I am aware! I am going to try and work with Thulinma on something.
-
View User Profile
-
Send Message
Posted Apr 10, 2012-
View User Profile
-
Send Message
Posted Apr 10, 2012@xXReVurbXx
I am going to be working on some big additions to the plugin soon. I will see about this
-
View User Profile
-
Send Message
Posted Apr 10, 2012@LHammonds
It stops them from spawning, It don't kill them.
-
View User Profile
-
Send Message
Posted Apr 9, 2012This plugin sounds intriguing.
Regarding the mob limiter, does the limit keep "new" mobs from spawning or will it randomly whack mobs from anywhere? I have a chicken, cow, pig and multi-colored sheep farm that I would like to remain untouched. Is there a way to use the limiter without causing my long-lived animals to despawn?
If not, is there a way animals can be flagged for protection in future versions?
Thanks, LHammonds
-
View User Profile
-
Send Message
Posted Apr 8, 2012Would it be possible to introduce some sort of a command that unloads all chunks, or perhaps all chunks that players aren't around?
eg:
Player uses command /chunks,
Server broadcasts 15 second countdown as a warning to players, if it could potentially cause a small lag spike or unload player's chunks (inducing panic'd logout/logins),
Plugin then executes the process and unloads all chunks players are not inside and are still loaded into memory.
This command could technically be very configurable.
In fact, it could pose as a quick method to reduce overall RAM usage at specific times, instead of a server restart by allowing the configuration of what the command should do...
Another eg:
/clearlag will wipe all item drops, butcher monsters (or/and animals), unload chunks if possible, etc.
Having never dealt with anything in-depth to do with Minecraft chunks and how they work, I honestly have no clue if the instant unloading of unused chunks is possible.
-
View User Profile
-
Send Message
Posted Apr 7, 2012@mrchasez
Some people got those errors randomly when they stood still for a while.
When I turned it off, the same users who got them randomly got them CONSTANTLY and couldn't remain connected to the server.
-
View User Profile
-
Send Message
Posted Apr 7, 2012@Psithief
Yes, The code we have in right now forces the view distance to 10 So keep it on that.
-
View User Profile
-
Send Message
Posted Apr 7, 2012@mrchasez
I believe I had chunk persistence off. I also upped the view-distance from 10 to 14 which made it much much worse.
-
View User Profile
-
Send Message
Posted Apr 7, 2012@Eternisrequiem
When you turn it off it gives errors for flying?
-
View User Profile
-
Send Message
Posted Apr 7, 2012@Psithief
So some chunks won't load for you? Have you tried turning ChunkPersistance down.
-
View User Profile
-
Send Message
Posted Apr 6, 2012A couple of things:
1) People are getting a lot of "Fly" errors. If I disable chunk persistence, one user can't stay on longer than 2 seconds before getting a "kicked for floating" message.
2) I'm still getting a lot of see-through chunks when we're minecarting from point A to point B, We can essentially see through the ground and see into caverns way the hell below them. I'm wondering if there's any way to circumvent that or what's causing the invisible ground? It seems to load last and I was hoping this plugin would help with that... reason I got it in the first place.
Am using Java7 64bit, that alone has helped considerably when I made the server use Java 7, but it's still there and pretty darn annoying. At first it was like fixed entirely, but recently it's almost like it was when we first began.