AuthMe/AuthMeReloaded

View on GitHub
src/main/java/fr/xephi/authme/permission/PermissionNode.java

Summary

Maintainability
A
0 mins
Test Coverage
package fr.xephi.authme.permission;

/**
 * Common interface for AuthMe permission nodes.
 */
public interface PermissionNode {

    /**
     * Return the node of the permission, e.g. "authme.player.unregister".
     *
     * @return The name of the permission node
     */
    String getNode();

    /**
     * Return the default permission for this node, e.g. "OP_ONLY"
     *
     * @return The default level of permission
     */
    DefaultPermission getDefaultPermission();
}