Sueta
MO

MongoPerms - Bukkit & Bungee

1.5

Permissions-System based on MongoDB for BungeeCord and Bukkit

·Plugin

MongoPerms

A lightweight MongoDB based Permission-System made for Bukkit and BungeeCord (only works with both and manages both permissions).

This plugin doesn't override default Bukkit & BungeeCord permissions! You can deny them by adding the permission node "-permission.node"!

+Vault Support!

Bukkit-Commands

  • /permrl [Player] (mongoperms.reload): Reloads all Permissions or all Permissions by the Player from the Collection (and calls PermissionUpdatedEvent if all permissions reloaded or PlayerPermissionUpdatedEvent if a player is specified) [Aliases: permreload, "permissionreload"]

BungeeCord-Commands

  • /perms <Subcommand> [Arguments] (mongoperms.perms):
    • addgroup <Group> Add a group to the System
    • removegroup <Group> Remove the group from the System
    • setgroup <Player> <Group> Sets the group of a Player
    • user <Player> Shows Permissions and group of the Player
    • add <Group> <Permission> Adds permission node to group
    • remove <Group> <Permission> Removes the permission node from the group
    • groups List of all groups
    • addall <FromGroup> <ToGroup> Add permissions from a group to another group
    • putall <FromGroup> <ToGroup> Replace permissions of a group with another groups permissions
    • addinheritance <Group1> <Group2> Inherit all permissions from Group2 in Group1
    • removeinheritance <Group1> <Group2> Group1 will no longer inherit Group2
    • reload [Player] Reload BungeeCord group permissions or reload group of a player

Setup

  1. Download Plugin from spigotmc.org
  2. Put the Plugin into your BungeeCord /plugins folder and the Bukkit /plugins folder
  3. Start BungeeCord before Bukkit (Recommended)

API

MongoPermsAPI.getPermissionsOfPlayer(UUID uuid) //get Permissions of the specified player

MongoPermsAPI.getPermissions(String group) //get Permissions of the specified group

MongoPermsAPI.getGroup(UUID uuid) //get group of specified player - Deprecated, use getGroupOfPlayer instead

MongoPermsAPI.getGroup(UUID uuid, Consumer<Group> consumer) //get group asynchronously - Deprecated, use getGroupOfPlayer instead

MongoPermsAPI.getGroupOfPlayer(UUID uuid) //get group of specified player

MongoPermsAPI.getGroupOfPlayer(UUID uuid, Consumer<Optional<Group>> consumer) //get group asynchronously

MongoPermsAPI.setGroup(UUID uuid, Group group) //set group of specified player

Group.getGroup(String name) //get Group with name <Name> - now returns Optional<Group> instead of Group as of version 1.5.

NOTE: Deprecated methods may be removed in later versions.

Source

Please post Bugs below!
Feedback is really appreciated :)

Similar projects

Plugin →