Skip to content

Commit

Permalink
refactor: TempPerms module
Browse files Browse the repository at this point in the history
  • Loading branch information
Eredrim committed Jan 28, 2024
1 parent 60d3405 commit d2969e5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
16 changes: 10 additions & 6 deletions doc/mods/tempperms.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ configuration file.

## Setup

Either administrate via commands (recommended) OR complete the `perms` config block inside the arena config, like this:
Either administrate via commands (recommended) OR complete the `modules.tempperms` config block inside the arena config, like this:

```yaml
perms:
tempperms:
- default:
- everyone.has.this
- -everyone.doesnt.have.this
Expand All @@ -34,7 +34,7 @@ perms:
<br>
> ⚙ **Technical precision:**
> * For negative permissions, you can use either `-node` or `^node` syntax, it's the same thing. However when the config
> * For negative permissions, you can use either `-node` or `^node` syntax, it's the same thing. However, when the config
> is saved, every negative permissions are rewritten with `-node` syntax.
> * `default` block contains permissions applied to every player

Expand All @@ -50,8 +50,12 @@ perms:
## Troubleshooting

If you experience this not working, double check if you GAVE superior permissions or SUB permissions that you didn't
take away (explicitly), to be sure, add/remove eventual .* nodes and all subnodes.
take away (explicitly), to be sure, add/remove eventual .* nodes and all subnodes.
If you want to add access to new commands with permissions, keep in mind they have to be added to whitelist in your
arena config file (`cmds.whitelist` node).

## Dependencies
<br>

Any superperms compatible permissions plugin (like GroupManager, LuckyPerms, etc)
> ⚙️ **Technical precision:**
> This mod is compatible with native Bukkit permission system and with any superperms compatible permissions plugin
> (like GroupManager, LuckPerms, zPermissions, etc)
2 changes: 1 addition & 1 deletion doc/modules.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Hook into many different aspects of the game!
| [Squads](mods/squads.md) | add squads to the game, basically only showing players belonging together apart from teams and classes. | | ☑️️ |
| [StartFreeze](mods/startfreeze.md) | freeze players at start | | ✔️️ |
| [TeamSizeRestrict](mods/teamsizerestrict.md) | a small mod to restrict the size of specific teams | | ✔️️ |
| [TempPerms](mods/tempperms.md) | add temporary perms | | ☑️ |
| [TempPerms](mods/tempperms.md) | add temporary perms | | ✔️️ |
| [Titles](mods/titles.md) | send messages to players as the "title" command would do | | ✔️️ |
| [Turrets](mods/turrets.md) | add turrets where players fire projectiles | | ⚠️ |
| [Vault](mods/vault.md) | add economy | | ☑️ |
Expand Down

0 comments on commit d2969e5

Please sign in to comment.