YAPP (Yet Another Permissions Plugin)
There are many permission plugins available to choose from. This is yet another one.
Introduction
The aim of this plugin is to make managing permissions as user-friendly as possible. It has an easy to use in-game menu system for making permission modifications, as well as fairly easy to understand commands. The files it creates are also very user-friendly, as they are not as strict as YAML files. Indentation and whitespace are not a concern.
Features
- Server-wide permissions
- Per-world permissions
- Inherit multiple groups
- Chat prefixes and name colors
- Promote and demote players
- Rename and delete groups
- Complete in-game menu system
Guide
The full guide to this plugin can be found here:
What Are Permissions?
If you have never used a permissions plugin before, you may not know exactly how they work or what they are used for. If that is true, then this section is for you. If you are already familiar with other permissions plugins, you can skip this section.
A permissions plugin allows you to have detailed control over what kinds of things your players can do. Each plugin can define certain permission "nodes" that control certain actions from that plugin. A node generally takes the form of pluginname.command or pluginname.feature.something. In order for a player to use that command or feature, they must have the associated permission node. Each plugin should have a list of permission nodes somewhere on its project page or website.
This plugin allows you to assign permission nodes directly to players. It also allows you to set up permission groups. You can then assign permission nodes to groups instead of to the players. Then you can put a player in the groups they belong in, and they will inherit the permissions of the group.
In addition, groups can be members of other groups. So for example, you could have an "admins" group, that inherits (is a member of) the "moderators" group, which inherits the "members" group. If a player is placed in the "admins" group, then they will get those permissions, as well as the "moderators" and "members" permissions.
This plugin also allows you to set up server-wide permissions and world-specific permissions. For example, you could give a certain permission node to a group, but then remove that permission node for that group in a specific world. Or you can ignore server-wide permissions all together and put all permission data in each individual world. How you set it up is your choice.
Installation and Configuration
Simply download the file and drop it into your plugins folder to install. If you are converting from another permissions plugin, there are some conversion commands available.
When you start your server for the first time after installing, a config.txt file will be created in your plugins/YAPP folder. An important thing about this configuration file (and all files this plugin creates) is that they are much more friendly than yml files. It is okay to add extra whitespace, including both tabs and spaces.
The names of the config values are fairly self-explanatory, but a full description can be found in the config section of the plugin guide.
Permissions
This plugin uses several permission nodes. The important ones are:
- yapp.admin - Only those with this permission can use the in-game commands to modify permission settings. Defaults to op-only.
- yapp.build - A player must have this permission to interact with the world. This permission can be disabled in the configuration file. Defaults to false.
There are also permissions for the promote and demote commands, as well as permissions that can control a player's ability to interact with the world. A full list can be found in the permissions section of the plugin guide.
Usage
The methods for modifying permission settings are designed to be very easy to use and easy to remember. There are actually three ways to make changes to the permission system.
Remember when making changes with any of these methods you will need to reload for the changes to take effect. In the menu, the option to reload is in the main menu, option '5' or 'S' or 'R'. The command to reload is /yapp @ or /yapp reload. You can also reload just a specific player's permissions with the command /yapp @ player. Note that this will only reload simple changes, like adding or removing permission nodes or groups directly to the player (if you add or remove permissions to a group, reloading the player will not reload the group changes).
Menu
The main command in this plugin is /yapp. The aliases /perm and /perms are also available. If you use this command on its own without any arguments, it will open a guided menu system. The menu is the easiest way to make simple modifications to permission and group information.
While you are in the menu system, there are a few options that are always available to you.
- < will return you to the previous menu
- ! will return you to the main menu
- ? will tell you your current selection, and will sometimes give help about the current screen
- q or quit will exit the menu
Many of the menu screens will have a list of numbered options with highlighted words. To select an option, you can either type the number, type the highlighted word, or just type the highlighted letter within the word.
Commands
Changing settings with normal commands will require multiple commands in sequence. These commands can be used both in-game (with the yapp.admin permission node) and on the command line. In general, your commands will use the following pattern:
- Select something (a player or group, and world if desired)
- Make changes to the selected object
- Save the settings and reload the permission data
You can look at some examples to help you understand how it works.
There are also commands for promoting and demoting players.
Files
The file storage system for this plugin is designed to be very easy to read and understand. It is whitespace-friendly, meaning you can add extra spaces, tabs, and line breaks without problem. The one disadvantage is that the information is spread into many different files. However, this can also be seen as an advantage, as you don't have to scroll through huge files to find what you're looking for.
For further information, please see the files section of the plugin guide.
Source
The full source can be found on my repository on Google Code:
http://code.google.com/p/nisovin-minecraft-bukkit-plugins/source/browse/trunk/YAPP/
Question and Answers
Why create another permission plugin?
Partly to learn. Partly because I wanted to make a better plugin. And because I just felt like it. Some may hate me for adding yet another permission plugin to the pool, but I personally think I've created something useful.
Does this support Vault?
It should fully support Vault, including any plugins that depend on Vault.
Can I use the '*' node?
Special wildcard nodes are supported, but they have some restrictions. See the wildcard information in the guide.
Why so many files?
Why so few? I know a lot of people prefer to have their permission data crammed into just a couple files, but I personally think it's nice to have it spread out. Digging through a massive file for a specific user or group is just annoying. This way, you can easily see all the files, probably in alphabetical order, and find exactly what you're looking for fairly quickly.
Hello!
First of all, very good job. I'm totally in love with this plugin.
I was wondering though, is it compatible with the new version of bukkit? 1.5.2 R-0.1
Hello, Could you please add a more direct way of changing people's groups (eg. To get a player to rank 3 you can do /yapp <player> move <rankname> instead of /yapp <player> promote, /yapp <player> promote, /yapp <player> promote.
thanks, Mojato Games
NICKNAMES PLEASE!!!
ALL OTHER NICKNAME PLUGINS ARE INCOMPATIBLE WITH THIS PLUGIN!!
ALSO PLEASE ADD AN OPTION TO DISABLE TagAPI
Thanks, Matt
On my server the inheritance isnt working! when i try to set up the inheritance like on the wiki page thing, the plugin doesnt work at all! its kinda annoying having to edit EVERY file when i have to add/change a permission. PLEASE help!
I am impressed. VERY good job. Separate files is excellent. High five, my friend.
<<reply 1448948>>
Are you getting this error?
"2013-04-27 19:37:42 [SEVERE] Could not pass event AsyncPlayerChatEvent to YAPP v1.3
org.bukkit.event.EventException
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:427)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:459)
at net.minecraft.server.v1_5_R2.PlayerConnection.chat(PlayerConnection.java:889)
at net.minecraft.server.v1_5_R2.PlayerConnection.a(PlayerConnection.java:841)
at net.minecraft.server.v1_5_R2.Packet3Chat.handle(Packet3Chat.java:44)
at net.minecraft.server.v1_5_R2.NetworkManager.i(NetworkManager.java:210)
at net.minecraft.server.v1_5_R2.NetworkManager.c(NetworkManager.java:346)
at net.minecraft.server.v1_5_R2.NetworkReaderThread.run(SourceFile:94)
Caused by: java.util.UnknownFormatConversionException Conversion = 'w'
at org.bukkit.event.player.AsyncPlayerChatEvent.setFormat(AsyncPlayerChatEvent.java:82)
at com.nisovin.yapp.ChatListener.onPlayerChat(ChatListener.java:32)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:425)
... 9 more"
@larperdoodle
I am having the same problem.. :(
Name colors don't show up. I have no other chat managing plugin installed. update player list : true update display name : true And then in game: /yapp g:admin /yapp color = purple /yapp @ Still nothing
First off, I am loving using YAPP. I have noticed something and not sure what the fix is. When a player logs in they have no permissions, but if I save and reload the permissions everything is fine. This happens literally with each person that logs on, well of course except op users.
I did turn on debug and there is no message at all that pops up when the player logs on.
....
Hello, I recently downloaded your plugin for my server, its amazing! But i have a quick question, when i downloaded it, there wasn't a config file or any other folder, just a windows batch file and nothing else. If you could help me out i would appreciate it! i can manage doing it all in game for now but eventually it will get very tedious! thanks a bunch
How did I not know about this plugin? Thank you!
I tested some perms plugins and this one is by far the best one i found, Simple, easy, complete... what else could you ask for?
Very good work!
@Deltec_Enterprises
its in the config file go change it
@LegitMagic
Simply Have No Perms Written In That Groups File:
INFORMATION
prefix : "&0DERP" color : "grey"
PERMISSIONS
Hope This helps, Matt
Hi There sir! I love YAPP, it's simple and easy to use. though, Is there a way that i can mod it to have a custom tag for the admins/mods/vips/trustee(my own ranks.)?
Thanks.
I have finally found what I was searching for. THANK YOU!!!!
-Mud
cool & easy to handle :), i was skeptical at first.
i found an error in version 1.3 with bukkit 1.5.1 r01 beta, if the deny permissions damage enabled and you will be attacked by a mob, there are many errors in the hit even listner.
..and another suggestion, a permission to disable the hunger (for guests).
regards NITRO
I know for groups you can add a %color so you can mark what color for their name or w/e to be. I think there should be more of these. Or maybe you could make it so you make your own custom ones. For example you could have %color2 and %color3. Just a suggestion, it would help make chat management much more customization.
I'm really new to the permissions thing and was wondering if there was a complete list of permissions I can use to set up admins vs. regular players? Like I want admins to have the same status as OP's (minus the ability to alter game mode, change difficulty, etc) whereas players simply have permission to build.
Sorry to be so difficult but I am really struggling to understand this. I've tried searching and can't find anything other than commandbook.(whatever) and yet that doesn't work.. :( Can anyone help?