Sway: Simple Permissions

A simple shared permissions library for Minecraft Bedrock addons. Manage player permissions and groups, allowing multiple addons to use the same permission system through an easy-to-use JavaScript API.

Sway: Simple Permissions

Minecraft Bedrock — Permissions Provider

Descrição

Sway: Simple Permissions

A lightweight permissions provider developed for Minecraft Bedrock addons, allowing different projects to share a single permission system.

Sway provides a simple and accessible API for developers to manage player permissions, groups and access control across multiple addons.

✨ Features

- Shared permission system across multiple addons.

- Player permission management.

- Group-based permissions.

- Support for offline player accounts.

- Multiple permission checks at once.

- Wildcard permission support.

- Default group for all players.

- Persistent data storage.

- Communication between addons through Script Events.

- Configurable write access for other addons.

API

Sway provides the following actions:

"hello" — Checks if Sway is available.

"has" — Checks whether a player has a permission.

"checkMultiple" — Checks multiple permissions at once.

"getGroups" — Gets the groups assigned to a player.

"listGroups" — Lists all available groups.

"setPermission" — Sets or removes a player permission.

"addGroup" — Adds a player to a group.

"removeGroup" — Removes a player from a group.

"createGroup" — Creates a new group.

"deleteGroup" — Deletes a group.

"setGroupPermission" — Sets a permission for a group.

⚙️ Permission System

Player permissions take priority over group permissions.

The most specific permission match wins.

In case of a tie, deny takes priority.

Wildcards such as "essentials.*" can be assigned.

Every player automatically belongs to the "default" group.

Permissions that are not explicitly allowed are denied.

📦 Installation

Import the Sway Behavior Pack into your Minecraft world.

Enable the required Script API features.

Install Sway once in your world.

Other addons can communicate with Sway using Script Events.

Configure the "writers" list in "config.js" to authorize addons to modify permissions.

No files need to be copied into other addons. They simply send requests through Script Events and wait for Sway's response.

Administrative Commands

Operators only.

"/sway:info" — Displays library information and statistics.

"/sway:reload" — Reloads Sway's internal state.

Requirements

Minecraft Bedrock Edition.

"@minecraft/server" module.

Script API support.

Limits

300 permission entries per player or group.

50 permissions per multiple-check request.

20 groups per player.

100 groups in total.



Author: asinxyz

License: MIT License

Sway: Simple Permissions Team

profile avatar
Owner
  • 1
    Followers
  • 2
    Projects
  • 11
    Downloads

any developer among others

More from asinxyz

  • Emerald: Simple Economy project image

    Emerald: Simple Economy

    A simple shared economy library for Minecraft Bedrock addons. Manage player balances and let multiple addons use the same economy system through an easy JavaScript API.

    • 9
    • December 1, 2026
  • Emerald: Simple Economy project image

    Emerald: Simple Economy

    A simple shared economy library for Minecraft Bedrock addons. Manage player balances and let multiple addons use the same economy system through an easy JavaScript API.

    • 9
    • December 1, 2026