Coder Social home page Coder Social logo

fakeee14 / blockprot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from spnda/blockprot

0.0 0.0 0.0 1.35 MB

Bukkit plugin to protect your chests, furnaces and more with a modern GUI approach.

Home Page: https://www.spigotmc.org/resources/blockprot.87829/

License: GNU General Public License v3.0

Kotlin 2.28% Java 97.72%

blockprot's Introduction

BlockProt

CurseForge Downloads Spigot Downloads Spigot Rating BlockProt CI gitlocalized JitPack

Servers Players Discord

BlockProt is a lightweight Bukkit and Spigot plugin that gives players the ability to protect chests, furnaces and many more blocks. The plugin features a modern GUI approach instead of commands, so that any player can easily understand how to use all of its features.

Installing

To use this plugin, you can simply download it from CurseForge or SpigotMC and place it in your plugins directory. You do not have to install anything else and any recent version will work with 1.14, 1.15, 1.16, 1.17 and 1.18. It runs on any Spigot and any fork thereof and does not run on CraftBukkit.

To get the latest updates the quickest, you can "watch" or "star" this repository or frequently check the Release tab. Alternatively, it is also possible to watch the resource on Spigot, which will also notify you as soon as new builds get released.


If you want to build the plugin from source yourself, you can simply do so by installing a JDK 8 or newer, cloning this repository and running ./gradlew build in the main directory.

Translating

If you know a language that isn't supported by this plugin (yet) we'd love if you could translate for us!

You can do so easily by going to gitlocalize.

Contact/Support

If you find bugs or any issues related to this plugin, please report them over on the GitHub issue tracker. If you require more support or want to ask questions, please use the Discord server for chatting.

Developing Addons

This plugin offers a basic API which other developers can use to add new features and provide support and compatibility with other plugins. BlockProt can be accessed via the jitpack.io repository.

Your build.gradle file may look like this:

repositories {
    maven 'https://jitpack.io'
}

dependencies {
    // This version might be slightly outdated. See https://github.com/spnda/BlockProt/releases.
    implementation 'com.github.spnda.BlockProt:blockprot-spigot:0.4.11'
}

From here on, you're good to go. We provide an easy to use BlockProtAPI class and other utility methods to easily add new functionality, with low amount of boilerplate. In the following examples you can see how to use that class.

// A BlockNBTHandler is a NBT Handler designed to lock blocks, add friends and edit other settings.
// This handler exists on a per-block basis.
BlockNBTHandler handler = BlockProtAPI.getInstance().getBlockHandler(block);

// The PlayerSettingsHandler is made to handle settings that are commonly accessible
// through the "/blockprot settings" command.
PlayerSettingsHandler playerHandler = BlockProtAPI.getInstance().getPlayerSettings(player);

We also offer a variety of events that you can listen to. For an up-to-date and more detailed list, see here. You can use these to block players from accessing some blocks based on custom conditions and much more. For even more fine grain control over events, you can write a PluginIntegration. A PluginIntegration is designed to be specific to a single other plugin and is only activated when the referenced plugin is actually loaded through Bukkit. It also provides utilities to quickly load a single config file and register listeners. BlockProt natively includes a plugin integration for Towny, which you can find here. You can freely use this as an example.

bStats

bStats Graph

License

BlockProt is licensed under GPLv3 license, view LICENSE to learn more.

blockprot's People

Contributors

c4br3r4 avatar dependabot[bot] avatar gitlocalize-app[bot] avatar hoehoetvhss avatar modcrafts avatar spnda avatar vincentx0905 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.