Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
M MMOBars
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 7
    • Issues 7
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • Ethan
  • MMOBars
  • Wiki
  • Conditions

Conditions · Changes

Page history
Update Conditions authored Apr 07, 2021 by Ethan's avatar Ethan
Hide whitespace changes
Inline Side-by-side
Showing with 2 additions and 3 deletions
+2 -3
  • Conditions.md Conditions.md +2 -3
  • No files found.
Conditions.md
View page @ bf01e28f
Conditions allow for bars or their modules to be hidden if they do not meet the criteria that is set. This feature was added in version 1.5.2. Previous versions had a system which used bar options to hide bars which is now removed. Old removed options will be automatically converted to the new conditions format. Conditions allow for bars or their modules to be hidden if they do not meet the criteria that is set. This feature was added in version 1.5.2. Previous versions had a system which used bar options to hide bars which is now removed. Old removed options will be automatically converted to the new conditions format.
Each condition has a default parameter named `match` with the aliases `m, default, d`. This value is a boolean and defaulted to be true.
## Config Examples ## Config Examples
In this example the entire bar will be hidden if the condition is not met. The condition will hide the bar if the player is in creative or spectator mode. In this example the entire bar will be hidden if the condition is not met. The condition will hide the bar if the player is in creative or spectator mode.
...@@ -48,11 +47,11 @@ health: ...@@ -48,11 +47,11 @@ health:
## Conditions ## Conditions
### Default Parameters ### Default Parameters
These parameters are included in every condition. These parameters are included in **every** condition.
| Parameter | Aliases | Description | Type | Default Value | | Parameter | Aliases | Description | Type | Default Value |
| ------ | ------ | ------ | ------ | ------ | | ------ | ------ | ------ | ------ | ------ |
| `match` | `m, default, d` | The operation to compare the `value` parameter to the bar's coefficient. | Boolean | `true` | | `match` | `m, default, d` | What the condition will match to. This condition `gamemode{gm=creative;m=true}` will be true if the player is in creative, while this condition `gamemode{gm=creative;m=false}` will be false. | Boolean | `true` |
| Conditions | Description | | Conditions | Description |
| ------ | ----------- | | ------ | ----------- |
......
Clone repository

MMOBars

  • Home

Bars

  • Settings
  • Functions
  • Conditions
  • Colors
  • Styles
  • Options