BKCommonLib 1.18.2-v1

Common utility library adding unique new features and API's

  1. TeamBergerhealer
    Tested Minecraft Versions:
    • 1.8
    • 1.9
    • 1.10
    • 1.11
    • 1.12
    • 1.13
    • 1.14
    • 1.15
    • 1.16
    • 1.17
    • 1.18
    Source Code:
    bergerkiller, Friwi, mg_1999 (lenis0012 timstans bubba1234119)

    You must use ProtocolLib 4.8 release. Do not use 5.0. It is broken until further notice.

    Welcome to BKCommonLib for Minecraft 1.8.8+. You can report bugs to me in the discussion Thread. Please use the format I provided there. Thank you!

    Join our discord server for plugin help. https://discord.gg/wvU2rFgSnw

    Since April 16, 2017 release version names will be in a MCVersion-pluginversion format. Released versions support older Minecraft versions, too!

    The latest version of BKCommonLib is backwards-compatible with older versions of Minecraft. For example, BKCommonLib-1.13.2-v1.jar will work for 1.13.2, 1.13.1, ... 1.12.2, ... 1.10.2, ... 1.8. Please do not use an older version of BKCommonLib with older versions of Minecraft.

    The latest release supports the following server versions:
    • CraftBukkit, Spigot, Paperspigot, TacoSpigot, Purpur, Tuinity
    • Minecraft versions:
      • [1.8]: 1.8 1.8.3 1.8.4 1.8.5 1.8.6 1.8.7 1.8.8
      • [1.9]: 1.9 1.9.2 1.9.4
      • [1.10]: 1.10.2
      • [1.11]: 1.11 1.11.2
      • [1.12]: 1.12 1.12.1 1.12.2
      • [1.13]: 1.13 1.13.1 1.13.2
      • [1.14]: 1.14 1.14.1 1.14.2 1.14.3 1.14.4
      • [1.15]: 1.15 1.15.1 1.15.2
      • [1.16]: 1.16.1 1.16.2 1.16.3 1.16.4 1.16.5
      • [1.17]: 1.17 1.17.1
      • [1.18]: 1.18 1.18.1
    • Forge (new as of 4-sept-2020. Report issues you find!):
    Newer in-development builds are available on our Jenkins CI server:

    This utility library shares all the common code needs for various plugins, and having them in one library heavily reduces the amount of duplicated code. The featured utilities are varied, and whenever something is missing in Spigot, it is added in BKCommonLib. This is one of the reasons why it has become this large: there are simply a lot of things Spigot doesn't (want to) offer.

    BKCommonLib has versioning on a per-plugin basis, so when a certain plugin needs version 2, and version 1 is installed, the server owner is automatically notified and the plugin is not enabled. This prevents the common mishaps with outdated BKCommonLib versions. If you develop a plugin that uses BKCommonLib, make sure you depend on the earliest version that still offers the features you need. This makes sure your plugin remains functional on older Spigot builds.

    Other than utilities and services, this library offers a wide variety of reflection and user-friendly ways of accessing net.minecraft.server. If your plugin requires the use of the internals, but you do not want to risk changing field and method names, you can depend on BKCommonLib to provide them for you. This allows you to remain compatible between CraftBukkit versions automatically, and reduces silent failure hazards.

    Reasons for you to depend on this library
    • You need to access Minecraft internals in your plugin, and Spigot has no API for it
    • You are tired of re-uploading the same version over again because of the internals changing
    • You want to work with Vector/math logic, or need to use other utility classes
    • The YAML of Spigot dislikes you, and you want this to be easier
    • You want to easily read and write configuration/data files
    • You want easy access to data conversion utilities to convert user input
    • You want to work with inventories in an advanced fashion
    • You want to work with unique server events
    • You want to alter entity behaviour (such as handling block collisions, custom movement, etc.)
    • You want plugin messages/permissions to be configurable
    • You want to work with (async)tasks without storing IDs
    • You want to send and manipulate packets
    • You want to toy with unique new APIs
    • General
    • Utilities
      • General utilities for String, Logic, BlockFace and Math operations
      • Block utilities for Block-related operations (states, data, etc.)
      • ItemUtil for Inventory, Items and Item Transfer utilities
      • RecipeUtil to work with crafting and furnace recipes
      • Utilities for retrieving all the players, entities, or block states in a chunk or on a world efficiently
      • Utilities for accessing world and chunk block data efficiently, bypassing physics and batch processing
    • Data storage
    • Entities
    • Services
      • Conversion for conversions between all types of data
      • Events and Listeners to keep track of changes on the server
      • Packet services and API to keep track of packets
      • Task class for easier task scheduling
      • Scoreboard services to setup scoreboards without criteria
      • Tab View service to alter what is shown when players press tab (support for Tab View will be readded soon)
      • MapDisplay services to display interactive and dynamic image contents on Minecraft maps
    • Collections and wrappers
      • Octree, Implicitly shared set, immutable player set and a whole lot more unique collections geared towards performance
      • DataWatcher, modify entity metadata directly
    Getting started
    To start using BKCommonLib, you have to include the jar file as a dependency (after adding BKCommonLib as dependency in the plugin.yml):

    Like any dependency, keep the jar file somewhere on your computer and add it to your classpath. Nothing special here.

    Dependencies BKCommonLib uses
    BKCommonLib supports various other plugins and projects. Below all of these are listed:

    • Vault - for permission plugin support
    • ProtocolLib - to avoid packet listening conflicts
    • Objenesis - for generating classes without calling constructors (needed for various fixes inside class constructors)
    • Javassist / ASM - runtime code generation library
    Plugins that require BKCommonLib to be installed:
    1. TC ActionBlocks
    2. TC Hangrail
    3. MinecraftTrainSimulator
    This product includes software developed by the Apache Software Foundation (http://www.apache.org/)

    BKCommonLib supports ProtocolLib when it is enabled, but if it is not, the player connection is replaced resulting in several incompatibilities. To fix these incompatibility issues, install ProtocolLib next to BKCommonLib. This can not be stressed enough. When incompatibility occurs, BKCommonLib will notify you in the console and will disable itself.

    @bergerkiller resumed development under the banner of TeamBergerhealer since March, 2017. This plugin has been in development for many years:
    1. Credits go to @bergerkiller, lenis0012 and timstans for developing the original version of this plugin until version 1.57
    2. Credits go to @mg_1999 and @KamikazePlatypus for their MC 1.8 fork of this plugin, including packet system changes
    3. Credits go to @Friwi for updating and maintaining the plugin for MC 1.8 and 1.9 until late december 2016

    If you really like my work and want to give something in return, feel free to donate something small to me using the link down below. Thank you! :)

    waseric, sunnystgt, R3tuxn and 9 others like this.

Recent Reviews

  1. motz
    Version: 1.18.2-v1
    Very useful if you're after a nice and complete, almost framework-like library that does many usually boilerplate-prone tasks for you.
  2. RuffNeck
    Version: 1.18.2-v1
    Thanks for keeping BkCommonLib up to date, this Library is perfect for supporting things that SpigotMC/Bukkit doesn't, so I'm very grateful for your work in allowing us to do such things! Its lighting corrector is also very useful, it's a great example of how things work with BkCommonLib and how powerful this lib is
  3. LSS_wwwwwww
    Version: 1.17.1-v3
    It is a very good plugin and I use it to support the lightcleaner.If you using Worldedit.Just download it.
  4. BlackConLabs
    Version: v1.16.5-v3
    Positively brilliant work. I use this to support the LightCleaner plugin. Thank you for having the decency to release a 1.16.5 farewell package.
  5. lokka30
    Version: v1.16.5-v2
    People usually run to the reviews section to document all the issues they've had with plugins. Although this library does absolutely nothing by itself as a plugin installed on your server, it is depended upon by some brilliant resources by these guys, so it is definitely doing things right. Never had issues with it at all. Thanks, team BH!
  6. Gynzel
    Version: 1.16.4-v2
    For the new security update 1.16.5 please recompile your plugin, please.

    THX ET
  7. jaapie_aapie2
    Version: 1.16.4-v2
    pretty shit

    because it's laggy af it doesn't work half of the time the tracks switch sometimes and it just sucks in general
  8. I_EAT_YOU
    Version: 1.16.4-v2
    Works :)
  9. benjamonSRL
    Version: 1.16.4-v2
    [ Very nice ]
  10. sunnystgt
    Version: 1.16.3-v1
    upgrade 1.16 4 nice plugin big thx nice nice nice nice nice nice nice nice nice