⛔ ProtectionLib | Ensure your players can build 1.1.1

A shaded library to unify WorldGuard, Towny, Factions and other protections API

  1. Uxon
    Native Minecraft Version:
    1.17
    Tested Minecraft Versions:
    • 1.17
    Source Code:
    https://github.com/oraxen/protectionlib
    This library provides two methods:
    Code (Text):

    ProtectionLib.canBuild(player, location)
    ProtectionLib.canBreak(player,  location)
     
    To use this lib:

    1) Add the jitpack repo
    Code (Text):

    maven { url 'https://jitpack.io' }
     
    2) Shade ProtectionLib to your plugin
    Code (Text):

    implementation 'com.github.oraxen:protectionlib:master-SNAPSHOT'
     
    3) Init ProtectionLib in your plugin onEnable()
    Code (Text):

    ProtectionLib.init();
     
    4) Add softdepend to plugin.yml
    Code (Text):

       softdepend: [ WorldGuard, Towny, Factions, Clans ]
     
    You can now use ProtectionLib#canBuild(player, location) and ProtectionLib#canBreak(player, location) in your plugin.
    lokka30 likes this.

Recent Reviews

  1. lokka30
    lokka30
    5/5,
    Version: 1.1.0
    Thank you for developing this awesome library!
    Haven't used this yet but I am glad you have unified all detections into two methods, will make it so much easier for plugin developers.
    I hope more compatibilities will be added in the future - GriefPrevention, ClaimChunk, and so on.
    Cheers :)
    1. Uxon
      Author's Response
      Thank you very much! Will do!
  2. IKaZzGaming
    IKaZzGaming
    5/5,
    Version: 1.0.1
    Great !
    1. Uxon
      Author's Response
      Thanks for the review!