From 728106db63f565ed178844b5393936697b38d2cf Mon Sep 17 00:00:00 2001 From: Andre_601 <11576465+Andre601@users.noreply.github.com> Date: Sun, 3 May 2020 01:42:58 +0200 Subject: [PATCH] Fix broken links (#62) --- Weight.md | 27 +++++++++++---------------- _Sidebar.md | 2 +- 2 files changed, 12 insertions(+), 17 deletions(-) diff --git a/Weight.md b/Weight.md index e80aa29..b141b3e 100644 --- a/Weight.md +++ b/Weight.md @@ -1,28 +1,24 @@ # Weights Weights are an integral part of the way LuckPerms operates, and are based on the premise of resolving conflict where it may appear. There are two different, independent weights systems in LuckPerms, the first being [**Groups**](#group-weights) and the second being [**Meta**](#meta-weights) like prefixes and suffixes. In all cases, **a higher weight number is a higher priority** -- When setting up weights, it is recommended that large gaps weight-wise be left between groups, like going up by 100 instead of 1. This is so that if you want to insert groups later, you do not have to reweigh all groups. - -- Weight can be any number, including negative. +* When setting up weights, it is recommended that large gaps weight-wise be left between groups, like going up by 100 instead of 1. This is so that if you want to insert groups later, you do not have to reweigh all groups. +* Weight can be any number, including negative. ## Group Weights Group weights determine, in cases where a user has more than one group, which group's nodes take precedence when the nodes conflict. This is best explained by an example: - - Suppose a player was in group default and in group "admin". There is one permission node in each group, and it is `essentials.fly`. - -- In default group, `essentials.fly` is set to `false`. In "admin" group, `essentials.fly` is set to `true`. Without setting up weights, it is inconsistent and unclear which node the player will get - there is no way to know for sure whether they will be able to fly or not. - -- This is where __weights__ come in. Setting default in this example to have a higher weight than "admin" will result in the player being **unable** to fly. Setting admin to have a higher weight than default will result in the player being **able** to fly. +* Suppose a player was in group default and in group "admin". There is one permission node in each group, and it is `essentials.fly`. +* In default group, `essentials.fly` is set to `false`. In "admin" group, `essentials.fly` is set to `true`. Without setting up weights, it is inconsistent and unclear which node the player will get - there is no way to know for sure whether they will be able to fly or not. +* This is where __weights__ come in. Setting default in this example to have a higher weight than "admin" will result in the player being **unable** to fly. Setting admin to have a higher weight than default will result in the player being **able** to fly. Likewise, whenever a player has several groups, the permissions in the highest weighted group will override the permissions in any lower weighted ones that conflict. ### Setting Group Weights -There are two ways to set weight for a group; using a [command]([https://github.com/lucko/LuckPerms/wiki/Command-Usage:-Group#lp-group-group-setweight-weight](https://github.com/lucko/LuckPerms/wiki/Command-Usage:-Group#lp-group-group-setweight-weight)), and using the [editor]([https://github.com/lucko/LuckPerms/wiki/Web-Editor#luckperms-nodes](https://github.com/lucko/LuckPerms/wiki/Web-Editor#luckperms-nodes)). +There are two ways to set weight for a group; using a [command](https://github.com/lucko/LuckPerms/wiki/Command-Usage:-Group#lp-group-group-setweight-weight), and using the [editor](https://github.com/lucko/LuckPerms/wiki/Web-Editor#luckperms-nodes). -- With commands, you run `lp group setweight `. - -- In the editor, you add the node `weight.` to the group. +* With commands, you run `lp group setweight `. +* In the editor, you add the node `weight.` to the group. ## Meta Weights @@ -30,8 +26,7 @@ There are two ways to set weight for a group; using a [command]([https://github. Meta weights are very similar to group weights, but for prefixes and suffixes. In the same way the group weights work, when a player inherits multiple prefixes or suffixes, the highest weighted one is the one that will display. ### Setting Meta Weights -There are two ways to set a weight for a prefix or suffix; using a [command]([https://github.com/lucko/LuckPerms/wiki/Command-Usage:-Meta#index](https://github.com/lucko/LuckPerms/wiki/Command-Usage:-Meta#index)), and using the [editor]([https://github.com/lucko/LuckPerms/wiki/Web-Editor#luckperms-nodes](https://github.com/lucko/LuckPerms/wiki/Web-Editor#luckperms-nodes)). +There are two ways to set a weight for a prefix or suffix; using a [command](https://github.com/lucko/LuckPerms/wiki/Command-Usage:-Meta#index), and using the [editor](https://github.com/lucko/LuckPerms/wiki/Web-Editor#luckperms-nodes). -- With commands, you simply set the weight when you add or set a prefix or suffix to a group or player: `/lp user/group meta setprefix/addprefix &b[ThePrefix]`. - -- With the editor, you simply add or modify the node `prefix..&b[ThePrefix]` to change the weight, AKA priority, of a prefix. The same principle applies to suffixes. +* With commands, you simply set the weight when you add or set a prefix or suffix to a group or player: `/lp user/group meta setprefix/addprefix [ThePrefix]`. +* With the editor, you simply add or modify the node `prefix..[ThePrefix]` to change the weight, AKA priority, of a prefix. The same principle applies to suffixes. diff --git a/_Sidebar.md b/_Sidebar.md index 8504c86..be2ee91 100644 --- a/_Sidebar.md +++ b/_Sidebar.md @@ -5,7 +5,7 @@ * [**Credits**](https://github.com/lucko/LuckPerms/wiki/Credits) ### Setup -* [**Installation**](Installation) +* [**Installation**](https://github.com/lucko/LuckPerms/wiki/Installation) * [Initial Setup](https://github.com/lucko/LuckPerms/wiki/Installation#initial-setup) * [Requirements](https://github.com/lucko/LuckPerms/wiki/Installation#requirements) * [Compatibility](https://github.com/lucko/LuckPerms/wiki/Installation#compatibility)