SANDBOX — this is a test environment. No servers are actually deployed and no real payments are charged.
Source-checkedAdmin & protection

PacketsBookFix

by demkom · for Minecraft

The plugin fixes DOS packets of the book.

5.5KDownloads
9 yr agoLast updated
Spigot · PaperLoaders
1.11Latest game version

About PacketsBookFix

From SpigotMC

The plugin fixes DOS packets of the book.

PacketsBookFix
The plugin fixes DOS packages of the book. It was private plugin, but I laid it out for evil to those who started selling it, now you can use it whatever you want.

Dependencies: ProtocolLib.

Permissions:
PacketFix.reload - Reload config. (Can be changed in the Config)

Commands:
/packetbookfix reload - Reloads config.

Config:
BanMessage:
'&cBook edited too quickly!' //Message at the kick.
BanPlayer: false // Ban or not.
KickPlayer: true // Kick the player or not.
PacketInMillis: 1000 //Packet in millisecond
ReloadPermissions: PacketFix.reload //Permissions to reload the config.
ReloadedMessage: '&aPlugin successfully reloaded.' //Message when the config is reloaded.

Source​
Code (Java):

package com.demkom58.packet ;

import org.bukkit.command.Command ;
import org.bukkit.command.CommandSender ;
import com.comphenix.protocol.events.PacketListener ;
import com.comphenix.protocol.events.PacketContainer ;
import com.comphenix.protocol.events.PacketEvent ;
import org.bukkit.plugin.Plugin ;
import com.comphenix.protocol.events.PacketAdapter ;
import com.comphenix.protocol.PacketType ;
import com.comphenix.protocol.events.ListenerPriority ;
import com.comphenix.protocol.ProtocolLibrary ;
import org.bukkit.entity.Player ;
import java.util.WeakHashMap ;
import org.bukkit.plugin.java.JavaPlugin ;

public class fix extends JavaPlugin
{
    private int PacketInMillis ;
    private boolean kick ;
    private boolean ban ;
&nbsp; &nbsp; private <a target="_blank" rel="nofollow" href="http://www.google.com/search?hl=en&amp;q=allinurl%3Adocs.oracle.com+javase+docs+api+string">String reason ;
&nbsp; &nbsp; private <a target="_blank" rel="nofollow" href="http://www.google.com/search?hl=en&amp;q=allinurl%3Adocs.oracle.com+javase+docs+api+string">String ReloadPermissions ;
&nbsp; &nbsp; private <a target="_blank" rel="nofollow" href="http://www.google.com/search?hl=en&amp;q=allinurl%3Adocs.oracle.com+javase+docs+api+string">String ReloadedMessage ;
&nbsp; &nbsp; private WeakHashMap &lt;Player, Long &gt; hmap ;

&nbsp; &nbsp; public fix ( ) {
&nbsp; &nbsp; &nbsp; &nbsp; hmap = new WeakHashMap &lt;Player, Long &gt; ( ) ;
&nbsp; &nbsp; }

&nbsp; &nbsp; public void onEnable ( ) {
&nbsp; &nbsp; &nbsp; &nbsp; getConfig ( ). options ( ). copyDefaults ( true ) ;
&nbsp; &nbsp; &nbsp; &nbsp; saveConfig ( ) ;
&nbsp; &nbsp; &nbsp; &nbsp; PacketInMillis = getConfig ( ). getInt ( "PacketInMillis" ) ;
&nbsp; &nbsp; &nbsp; &nbsp; kick = getConfig ( ). getBoolean ( "KickPlayer" ) ;
&nbsp; &nbsp; &nbsp; &nbsp; ban = getConfig ( ). getBoolean ( "BanPlayer" ) ;
&nbsp; &nbsp; &nbsp; &nbsp; reason = getConfig ( ). getString ( "BanMessage" ). replaceAll ( "&amp;", "§" ) ;
&nbsp; &nbsp; &nbsp; &nbsp; ReloadPermissions = getConfig ( ). getString ( "ReloadPermissions" ) ;
&nbsp; &nbsp; &nbsp; &nbsp; ReloadedMessage = getConfig ( ). getString ( "ReloadedMessage" ). replaceAll ( "&amp;", "§" ) ;
&nbsp; &nbsp; &nbsp; &nbsp; ProtocolLibrary. getProtocolManager ( ). addPacketListener ( (PacketListener ) new PacketAdapter ( this, ListenerPriority. HIGHEST, new PacketType [ ] { PacketType. Play. Client. CUSTOM_PAYLOAD } ) {
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; public void onPacketReceiving ( final PacketEvent event ) {
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; final PacketContainer packet = event. getPacket ( ) ;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; final <a target="_blank" rel="nofollow" href="http://www.google.com/search?hl=en&amp;q=allinurl%3Adocs.oracle.com+javase+docs+api+string">String channelName = ( <a target="_blank" rel="nofollow" href="http://www.google.com/search?hl=en&amp;q=allinurl%3Adocs.oracle.com+javase+docs+api+string">String )packet. getStrings ( ). read ( 0 ) ;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; final Player p = event. getPlayer ( ) ;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (channelName. contains ( "MC|BEdit" ) || channelName. contains ( "MC|BSign" ) ) {

Read the full description on SpigotMC →

Highlights

From source data

Game versions

Supports 5 Minecraft versions, the newest being 1.11.

Loaders

Runs on Spigot and Paper.

Footprint

Rated a light load on a server.

PacketsBookFix on Nxeon

From our catalogue
One-click install
Supported on Nxeon Minecraft servers, for Paper servers. We download it from SpigotMC, place it, and restart the server.
Server side
Required on the server
Server type needed
Spigot, Paper
Server load
light
Smallest plan we suggest
Minecraft — 1.5 GB (2 GB RAM). This follows our own load rating above, not a benchmark.
Latest build
1.2, released 2017-06-14

Game versions by loader

LoaderGame versionsNewest
Paper1.7 to 1.11 (5 versions)1.11
Spigot1.7 to 1.11 (5 versions)1.11

From 3 recorded builds of PacketsBookFix.

Recent builds

BuildReleasedGame versionsLoaders
1.22017-06-141.7 to 1.11 (5 versions)Spigot, Paper
1.12017-06-08n/aSpigot, Paper
1.02017-04-22n/aSpigot, Paper

Run PacketsBookFix on a Minecraft server

Pick a server or deploy a new one above; it is installed in one click.

What kind of mod it is

From the catalog
Listed on SpigotMC as “Admin”

Admin & protection

Permissions, moderation, anti-cheat and land protection for the people running the server.

Runs on your server

From source side support

SpigotMC lists PacketsBookFix as required on the server. Check its SpigotMC page to see whether players need it too.

Compatibility

Game
Minecraft
Loaders
SpigotPaper
Runs on
Serverrequired on the server
Game versions
1.11 and 4 earlier
Requires
One-click install needs a Paper server.

Verified at the source

  • ✓SpigotMCOfficial listing, checked 2026-10-16Open ↗
  • ✓Authordemkom, as published on SpigotMC
  • ✓LicenseNot published by the sourceFree

PacketsBookFix, answered

Generated from the mod’s own source data.

Do my players need to install PacketsBookFix?

SpigotMC lists PacketsBookFix as required on the server. Check its SpigotMC page to see whether players need it too.

Which loaders does it support?

Spigot and Paper.

Is it free?

Yes. PacketsBookFix is free to download from SpigotMC.

How do I add it to my Nxeon server?

Use “Add to a server” on this page, or open NxLabs from your dashboard. We install it, restart your server and switch it on.

NxLabs

Run PacketsBookFix on a Minecraft server.

Deploy in about a minute from $4.20 a month, then add PacketsBookFix in one click.