-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/DiFFoZ/PermissionExtensions
- Loading branch information
Showing
2 changed files
with
56 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,57 @@ | ||
# PermissionExtensions | ||
# Permission Extensions | ||
Add support prefix, suffix, and color for OpenMod/Unturned! | ||
|
||
 | ||
[](https://www.nuget.org/packages/DiFFoZ.PermissionExtensions/) | ||
[](https://www.nuget.org/packages/DiFFoZ.PermissionExtensions/) | ||
[](https://discord.gg/5MT2yke) | ||
|
||
## How install/update plugin | ||
Run command `openmod install DiFFoZ.PermissionExtensions`. After installing reload openmod or restart the server. | ||
|
||
# How change prefix/suffix or color | ||
First at all [install a plugin](https://github.com/DiFFoZ/PermissionExtensions#how-installupdate-plugin) then open file `openmod.roles.yaml`. You will see a new data appears in all roles (`color`, `prefix`, and `suffix`). | ||
|
||
- **Color:** you can see about it [there](https://github.com/DiFFoZ/PermissionExtensions#all-available-colors). Example: | ||
```yaml | ||
color: Blue | ||
``` | ||
- **Prefix:** adds a prefix to the nickname at the start. Example: | ||
```yaml | ||
prefix: "[Police] " | ||
``` | ||
- **Suffix:** adds a suffix to the nickname at the end. Example: | ||
```yaml | ||
suffix: " [IV]" | ||
``` | ||
Example how will be look `openmod.roles.yaml`: | ||
```yaml | ||
roles: | ||
- id: police | ||
priority: 5 | ||
parents: | ||
- default | ||
permissions: | ||
- Kits:kits.vip | ||
displayName: | ||
data: | ||
color: Blue | ||
prefix: "[Police] " | ||
suffix: " [IV]" | ||
isAutoAssigned: false | ||
... | ||
``` | ||
**At the end nickname will be `[Police] %PlayerName% [IV]`**. | ||
|
||
# All available colors | ||
 | ||
|
||
Also, you can use hex colors. Just set the color to e.g. | ||
```yaml | ||
color: "#2ed264" | ||
``` | ||
|
||
You can read more detailed about it in [docs](https://docs.microsoft.com/en-us/dotnet/api/system.windows.media.colors?view=netcore-3.1). | ||
|
||
# This plugin is so hard to understand | ||
You can get support in my discord server [](https://discord.gg/5MT2yke) or in [OpenMod discord](https://discord.gg/M7sY8cc). |