Downloads ConfigsDonate LineBreak


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.

Explanation of Chunk Persistance

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 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.


Installation Instructions

  1. Download pTweaks
  2. Stop your server
  3. Put pTweaks.jar in your Plugins directory
  4. Start Your Server
  5. Edit Config's to your liking or leave default
  6. Reload
  7. Done!

Commands and Permissions


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


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

You must login to post a comment. Don't have an account? Register to get one!

  • Avatar of bear1121102 bear1121102 Apr 19, 2014 at 14:31 UTC - 0 likes

    So does this plugin basically help with lag?

  • Avatar of dadee971 dadee971 Apr 15, 2014 at 01:26 UTC - 0 likes

    Hi, Why am i obliged to pTweak enable worlds at each reboot? Only world, and world_nether are enebled, the other i'm obliged to do it at each reboot or startup.

  • Avatar of xGh0sTkiLLeRx xGh0sTkiLLeRx Apr 10, 2014 at 06:18 UTC - 0 likes

    @zachrywilsn: Go

    That's right. You don't use Bukkit, you are using CraftBukkit. And yes, this *is* right.
    You are running Spigot build 1370, which is nothing more than a CraftBukkit fork.
    So go and grab the latest Spigot build 1377 and the newest update v6.0.10.1 and you will be fine ;)

    @MarkehMe: Go

    Will look into it later today

    Want to have a dropbox acc with 500MB more space? Contact me!

    Server | Twitter | Github

    Donations are very appreciated!

  • Avatar of zachrywilsn zachrywilsn Apr 10, 2014 at 03:40 UTC - 0 likes

    @xGh0sTkiLLeRx: Go

    I dont use bukkit.

    [ZachryWilsn]: Www.KronicZombies.Tk -

  • Avatar of MarkehMe MarkehMe Apr 09, 2014 at 06:12 UTC - 0 likes

    Is it possible to have a response to this ticket?

    If you're not going to, I could write my own plugin to do it. Just would benefit more people if it were in PTweaks

    Want a faster response from me? Follow me and tweet me on twitter! @markehme BFAK:90607746,6bd5d8183f15ef6bbc8c5469c97e0a66d662d410c11146dc88dbd1a9a0a8f471

  • Avatar of Bron4 Bron4 Apr 09, 2014 at 04:24 UTC - 0 likes

    Will this help if I'm trying to lower my CPU% or just ram?

    I run a server with 24GB so i have plenty of ram but would be nice to lower CPU usage.

    Im even ok using MORE ram to lower CPU usage.

    If so what settings would i look at changing?

    Last edited Apr 09, 2014 by Bron4
  • Avatar of xGh0sTkiLLeRx xGh0sTkiLLeRx Apr 08, 2014 at 14:11 UTC - 0 likes

    @Reyzure: Go

    Why should we develop for old versions? Use 6.0.9 and you're fine...

  • Avatar of Reyzure Reyzure Apr 08, 2014 at 13:24 UTC - 0 likes

    1.7.2-RO.3 pls :/

  • Avatar of MarkehMe MarkehMe Apr 07, 2014 at 04:16 UTC - 0 likes

    @ReevoXF: Go

    You should've just read the comment before yours and had a general idea.

  • Avatar of xGh0sTkiLLeRx xGh0sTkiLLeRx Apr 05, 2014 at 09:58 UTC - 0 likes

    @ReevoXF: Go

    Seriously? Bukkit-1.7.2-R0.3-b3023jnks....
    Update your CraftBukkit

Table of contents

  1. 1 /pTweaks
  2. 2 /ram


Date created
Oct 01, 2011
Last update
Apr 12, 2014
Development stage
  • enUS
All Rights Reserved
Curse link
Recent files