GithubHelp home page GithubHelp logo

minervatools / permindex Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 292 KB

๐Ÿ” A minecraft permission index for providing rich permission descriptions.

Home Page: https://permindex.minervatools.net

License: BSD 3-Clause "New" or "Revised" License

Shell 0.09% JavaScript 91.10% SCSS 8.81%
minecraft permissions minecraft-permissions opendata

permindex's Introduction

๐Ÿ” PermIndex

Your Minecraft-permission-index.

What and why is PermIndex?

PermIndex is a machine-readable index of Minecraft permissions and descriptions for them. This is for use in permission plugins and interfaces to display human-readable descriptions to users when managing permission-settings.

You can explore PermIndex on our website at https://permindex.minervatools.net!

Can I contribute to PermIndex?

Sure, we'd love that! If you found some mistake or want to add your plugins permissions feel free to fork PermIndex, make your changes, and create a pull request.

Check out CONTRIBUTING.md for more information.

Can I use PermIndex in my plugin/website/...?

PermIndex is licensed under the "BSD 3-Clause License", which allows free use of the data for both personal and commercial projects. PermIndex is however distributed with no liability or warranty.

For more information check out choosealicense.com.

How can I access the data?

You can either clone the repo and build a custom data set from the source data, or you can try our GraphQL API at https://permindex.minervatools.net/api/graphql.

If you use our API in a really big application, please consider sponsoring so we pay Cloudflare for the traffic. :p

(For reference, we pay 0.50$ per million requests)

Structure

data

The data-folder contains all of the actual data, seperated for different servers and namespaces in the format /data/[namespace]/[base]/[base].json.

[namespace] can currently only be spigot for Spigot-compatible servers such as Spigot, PaperMC, CraftBukkit etc. In the future a bungeecord-category is planned.

[base] is always the first part of the permission (e.g. for bukkit.command.restart the base would be bukkit).

All of the JSON-files in the data directory must conform to the schema defined in meta/data.schema.json.

Template for an permission entry for copy-pasting:

{
    "name": "example.permission",
    "description": "Grants permission to examples",
    "default": "op",
    "affectedCommands": [
        {
            "command": "example"
        }
    ]
}

A permission may also have a match-field containg regex for which permissions should match this one. This can be used for dynamically generated permissions.

The affectedCommands-command-object may also contain a comment field describing how the permission affects the command. For example the comment could be "Allows teleporting other players".

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.