Step 1. Add the JitPack repository to your build file
Add it in your root settings.gradle at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
}
Add it in your settings.gradle.kts at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url = uri("https://jitpack.io") }
}
}
Add to pom.xml
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
Add it in your build.sbt at the end of resolvers:
resolvers += "jitpack" at "https://jitpack.io"
Add it in your project.clj at the end of repositories:
:repositories [["jitpack" "https://jitpack.io"]]
Step 2. Add the dependency
dependencies {
implementation 'com.github.rymate1234:bPermissions:'
}
dependencies {
implementation("com.github.rymate1234:bPermissions:")
}
<dependency>
<groupId>com.github.rymate1234</groupId>
<artifactId>bPermissions</artifactId>
<version></version>
</dependency>
libraryDependencies += "com.github.rymate1234" % "bPermissions" % ""
:dependencies [[com.github.rymate1234/bPermissions ""]]
bPermissions is an advanced permissions plugin for Bukkit/Spigot servers (with incomplete sponge port), providing fine-grained control over user and group permissions across multiple worlds.
plugins directoryThe config.yml file contains general settings for bPermissions:
use-global-files: Set true to make all worlds use permissions defined in global filesuse-global-users: Set true to share online user permissions/groups across worldsauto-save: Set true to automatically save permission changes to filetrack-type: Set the promotion track type (multi, single, lump, replace)Permissions and groups for each world are stored in YAML files under plugins/bPermissions/worlds/<worldname>. Global files are under plugins/bPermissions/global.
groups.yml defines permission groupsusers.yml defines user permissions and groupsSee the Bukkit page for more details on the file formats.
/user, /group - Manage user and group permissions/world - Manage per-world permissions/promote, /demote - Promote/demote users along a track/setgroup - Add a user to a single group/permissions - Manage bPermissionsSee the Command Reference for detailed command usage.
bPermissions.admin - Grants access to all bPermissions commandstracks.<trackname> - Grants access to /promote and /demote for a specific trackbPermissions provides a Java API for developers to integrate with other plugins. See the API Documentation for usage details.
bPermissions includes comprehensive unit tests with code coverage tracking to ensure quality and reliability.
Run all tests in the project:
./gradlew test
Run tests for a specific module:
./gradlew :core:test
./gradlew :bukkit:test
To see test output and logging (useful for debugging):
./gradlew test --info
Or increase verbosity further:
./gradlew test -i
Generate a JaCoCo coverage report:
./gradlew jacocoTestReport
Coverage reports are generated in {module}/build/reports/jacoco/test/html/. Open the index.html file in your browser to view the detailed coverage report.
If you encounter any issues or have questions, please open an issue on the issue tracker.
We also have an irc channel on irc.esper.net #bananacode which I rarely check but you can try your luck there.
bPermissions is open-source software released under the AOL license.