Giter Site home page Giter Site logo

PermissionItems

A simple plugin to let you make certain items require permissions to use.

This plugin allows you to set up "permission items", so that items which match custom filters that you define will require a specific permission to use. See Configuring for more of an explanation.

Download

Installation

  1. Download either the latest released or development build of the plugin.
  2. Drop the JAR in your server's plugins folder.
  3. Restart your server.
  4. Edit the config to your liking.
  5. Reload the config with /permissionitems reload.

Commands

/permissionitems <reload|version>

The basic admin command of PermissionItems.

  • Aliases: pitems
  • Permission: PermissionItems.admin

Configuring

There are 3 config files for PermissionItems:

  1. config.yml -- This contains global settings for the plugin.
  2. messages.yml -- This contains the customizable messages for the plugin.
  3. items.yml -- This contains the actual permission items that you have configured.

Both config.yml and messages.yml are relatively straightforward, just read the comments in the files.

items.yml consists of a series of named sections which have a few key properties:

  • permission -- The permission required to use this item.
  • filters -- A list of filter objects that must all match in order for an item to be recognized as this permission item.
  • (Optional) prevent -- Custom overrides for the settings specified in config.yml.
  • (Optional) send-messages -- Custom override for the setting specified in config.yml.

Filters consist of a configuration section with a type and a value key. type must be one of the following:

  • material -- Matches the material / type of the item.
    • Contains an optional mode key, which is either whitelist (only match items of the given type) or blacklist (only match items other than the given type).
  • durability -- Matches the durability / damage of an item.
    • Contains an optional mode key, which is either equals, less, or greater.
  • name -- Matches the custom name of an item. Color codes supported.
  • lore -- Matches the lore of an item. Color codes supported.
    • Contains an optional line key, which specifies the line number to check (starting with 0 being the first line). If not specified, it will check to see if any line of the lore matches.

RayzrDev's Projects

banhammer icon banhammer

A simple Discord bot to handle cross-server bans.

cashr icon cashr

A configurable in-memory storage system

clock-system icon clock-system

A simple system to track clocking in & out for users via Google Sheets.

energypoints icon energypoints

A plugin designed for the LightspeedMC server that allows you to use "energy" to affect the server in various ways

eventchecker icon eventchecker

A little plugin to check what plugins are listening to each event type.

flash icon flash

A Bukkit library that allows you to create plugins in a flash!

flowcut icon flowcut

An efficient video editor entirely focused on optimizing your workflow. Fully FOSS.

fpscord icon fpscord

A simple shooter game written in Discord.js with Typescript

gameboi icon gameboi

A simple Discord bot made for Discord Hack Week 2019 with a plethora of small games you can play, as well as a global currency and rewards system!

jd-gui icon jd-gui

An extended fork of emmanue1'sJD-GUI project -- A standalone Java Decompiler GUI

lightspeed icon lightspeed

Server files for the LightspeedMC (RayzrDev) Minecraft server

lightspeedcore icon lightspeedcore

A core plugin for my WIP server, LightspeedMC (name prone to change)

matchmaker icon matchmaker

An intuitive Bukkit library for creating minigames with ease.

permastore icon permastore

A quick and easy persistant storage solution with caching support

permissionitems icon permissionitems

A simple plugin to let you make certain items require permissions to use.

prisonpicks icon prisonpicks

A plugin for Prison servers that adds 3 special pickaxes!

rivo icon rivo

The only Discord bot you will ever need. Fast, full-featured, and friendly.

sharpbot icon sharpbot

A Discord.js selfbot written by Rayzr - 60 second installation!

sloth icon sloth

A super speedy multi-purpose Discord bot.

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.