

PTweaks is a server optimization tool, this plugin will redefine how your plugin loads, stores and manages chunks, also Mob handling and other areas to improve your server.. PTweaks stops your server from using resources it doesn't have to use, and clears java waste using resources for no reason. PTweaks adds priority loading so the chunks you need to be loaded, get loaded first, instead of the ones behind you slowing down generation all together. Those are just the big things, PTweaks will change stored and queried data to save more quickly, and use less disc space.

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.

- LifeTime: The minimum lifetime of inactive chunks in miliseconds
- Prune: The cycle in which inactive chunks are cleared in Seconds
- SpawnChunkRadius: The radius of chunks that load around the player. Don't change this!
- lifetime: 100000
- prune: 3
- spawnChunkRadius: 128
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 lifetime higher to keep chunk loading and unloading from happening less often, while smaller servers may want to keep the default settings or make prune/lifetime 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. ViewDistanceChunks is the amount of chunks loading while the player is moving, so basically the same thing as regular view distance and editing this can be done but again not suggested

<><><><><><><><><><><><><><><><><><><><><><><><><><><><>
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:
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
Facts
- Date created
- Oct 01, 2011
- Categories
- Last update
- May 02, 2013
- Development stage
- Release
- Language
- enUS
- License
- All Rights Reserved
- Curse link
- Ptweaks
- Downloads
- 91,432
- Recent files
- R: pTweaks V6.0.5 for CB 1.5.2-R0.1 May 02, 2013
- R: pTweaks V6.0.4 for CB 1.5.1-R0.2 Apr 20, 2013
- R: pTweaks V6.0.3 for 1.5.1 Mar 22, 2013
- R: pTweaks V6.0.2 for 1.5.0 Mar 18, 2013
- R: PTweaks V6.0.1 for CB 1.4.7-R1.0 Mar 16, 2013








- Reply
- #855
mrchasez May 17, 2013 at 23:01 UTC - 0 likes@zRA1Nz: Go
Should be compatible with spigot. I have heard good things about using them together, but not entirely sure.
- Reply
- #854
zRA1Nz May 15, 2013 at 08:06 UTC - 1 likeI heard that there is a lot of compatibility issues with this plugin and spigot. The only one I had was 10-30 minute lag sessions. Could you add something like a config setting to run Ptweaks in a spigot compatible mode? The actual owner of spigot told me not to use this plugin but I like some of the features and to me seems to bring down some of the motion lag when I have more than 130 players on.
- Reply
- #852
checker_1996 May 11, 2013 at 19:36 UTC - 0 likesThis error came:
2013-05-11 21:35:54 [WARNING] [PTweaks] Task #3661943 for PTweaks v6.0.5 generated an exception java.lang.NullPointerException at me.devplugin.ptweaks.ChunkPersistance$1.run(ChunkPersistance.java:138) at org.bukkit.craftbukkit.v1_5_R3.scheduler.CraftTask.run(CraftTask.java:53) at org.bukkit.craftbukkit.v1_5_R3.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:345) at net.minecraft.server.v1_5_R3.MinecraftServer.r(MinecraftServer.java:513) at net.minecraft.server.v1_5_R3.DedicatedServer.r(DedicatedServer.java:226) at net.minecraft.server.v1_5_R3.MinecraftServer.q(MinecraftServer.java:477) at net.minecraft.server.v1_5_R3.MinecraftServer.run(MinecraftServer.java:410) at net.minecraft.server.v1_5_R3.ThreadServerApplication.run(SourceFile:573)
- Reply
- #851
xGh0sTkiLLeRx May 11, 2013 at 08:54 UTC - 0 likes@codewow: Go
The notification system of BukkitDev seems broken...
Anyway, I'm unavailable until tomorrow, will have a look at it then.
Could it be a spawn chunk? Since spawn chunks are kept alive all the time.
Need a dev? PM me!
Want to have a dropbox acc with 500MB more space? Contact me!
Server | Twitter | YouTube | Github
Donations are very appreciated!

- Reply
- #850
codewow May 10, 2013 at 22:30 UTC - 0 likesNo response? Does anyone know? Chunks don't seem to unload at all.
- Reply
- #849
EpicTrance May 09, 2013 at 20:22 UTC - 0 likes@xGh0sTkiLLeRx: Go
I have no Idea its just started spamming the server and I wasn't on :/
- Reply
- #848
codewow May 09, 2013 at 19:32 UTC - 0 likesChunks don't seem to unload ever on 1.5.2 using 1.5.2 R1. I set chunk persistence really low, but they haven't unloaded in 24 hours. Even with no one playing for a few hours either.
- Reply
- #847
xGh0sTkiLLeRx May 08, 2013 at 12:41 UTC - 0 likes@EpicTrance: Go
Can you tell us how the error occurred?
Would be a lot easier with a short information on how to produce this error :)
- Reply
- #846
EpicTrance May 08, 2013 at 06:32 UTC - 0 likesWhats about that error?
- Reply
- #845
mrchasez May 06, 2013 at 21:36 UTC - 0 likes@EpicTrance: Go
Don't do that. It spams the page and makes it harder to read. Use pastie or pastebin. Here: http://pastie.org/7810382
I deleted your comment.