Coder Social home page Coder Social logo

bookbandisabler's Introduction

BookBanDisabler

This plugin tries to disable the so-called "book banning" edge case, which is achieved by filling a writable book to the brim with UTF-8 characters, chosen to take the most bytes, in order to make it blow up in size. These books are then duplicated and filled into various containers like ordinary chests, shulker boxes and the like, which - when transmitted over the network - blow read/write limiters, that cause an exception in the player's netty pipe, which then again closes the connection. Item entities in chunks, items in the inventory, opened containers, etc. can all cause this disconnect and thus, if done right, cause the player to be unable to join again without being disconnected almost instantly.

Countermeasures

Block Break

When a container block is about to be broken, it's inventory is checked.

Inventory Open

When an inventory is about to be opened, it is checked.

Item Drop

When an item is about to be dropped, it is checked.

Item Pickup

When an item is about to be picked up, it is checked. The player inventory is checked at the next tick, to ensure that if the player already holds malicious items, the total size of the inventory update will still end up below the threshold. This is a countermeasure against kicking players by giving them books incrementally.

Joining

When a player is about to join the server, their inventory is checked.

bookbandisabler's People

Contributors

blvckbytes avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.