Skip to content

Conditions

Xitee edited this page Jul 22, 2023 · 2 revisions

You can use conditions to have multiple scoreboards or to disable scoreboards if the conditions do match. If the multiple tablists update is coming some day, it will also be used there.

All possible conditions

- world:<world>[*]
- permission:<permission>
- gamemode:<survival/creative/adventure/spectator>

Examples

Match, if a player is in creative mode OR has a permission:

- 'gamemode:creative'
- 'permission:some.permission'

Match, if a player is in creative mode OR surival mode AND has a permission:

- 'gamemode:creative AND permission:some.permission'
- 'gamemode:survival AND permission:some.permission'

The same as above, but only in the nether:

- 'gamemode:creative AND permission:some.permission AND world:world_nether'
- 'gamemode:survival AND permission:some.permission AND world:world_nether'

Example: You have a bedwars plugin on your server which has it's own scoreboard. But only while playing and not in the lobby. Your bedwars maps begin with 'bw_map', followed by the name. So your maps are 'bw_map_a', 'bw_map_b'. The lobby is map named 'world'. So in order to disable PB's scoreboard while playing (where you will be in one of the bw_maps), add this condition to 'scoreboard-blacklist.yml':

- 'world:bw_map_*'

I hope that by now you understand how the conditions work.
If you want OR, add a new line. If you want AND, write ' AND ', followed by the condition.
Clone this wiki locally