Skip to content

Commit

Permalink
chore(wiki): update BetterPokeBroadcaster wiki
Browse files Browse the repository at this point in the history
  • Loading branch information
danorris709 committed Apr 21, 2024
1 parent d3af3c9 commit b72f814
Show file tree
Hide file tree
Showing 3 changed files with 83 additions and 33 deletions.
7 changes: 6 additions & 1 deletion website/docs/mods/betterpokebroadcaster/README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
---
description: >-
BetterPokeBroadcaster allows for certain Pokemon events to be broadcasted
BetterPokeBroadcaster allows for certain Pokemon events to be broadcast
throughout your server through the specs that are entered in the configs.
---

# BetterPokeBroadcaster

Welcome to the BetterPokeBroadcaster wiki!

BetterPokeBroadcaster is a Pixelmon sidemod that allows you to configure broadcasts, and player messages, for when
given events occur on the server. For example, you can now broadcast a formatted message to your entire server
when a legendary Pokemon spawns, or when a player defeats a legendary Pokemon. You can then add a webhook onto
the same broadcast logic to send the same message to a Discord channel!

For configuration help visit the [`Config`](config.md) page.

For more support visit the Discord: <a href="https://discord.envyware.co.uk"><img src="/img/icon_clyde_blurple_RGB.svg" alt="Discord" width="25"/></a>
6 changes: 6 additions & 0 deletions website/docs/mods/betterpokebroadcaster/broadcast-types.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,9 @@ description: You can use multiple specs in one broadcast
---

# Broadcast Types

Types:
- `spawn`
- `defeat`
- `capture`
- `flee`
103 changes: 71 additions & 32 deletions website/docs/mods/betterpokebroadcaster/config.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Config

You can use any spec to be broadcasted that is within the Pixelmon mod, those specs can be found [here](https://pixelmonmod.com/wiki/Pokemon\_spec).
BetterPokeBroadcaster allows for certain Pokemon events to be broadcast throughout your server through the specs that are entered in the configs.

<details>

Expand All @@ -9,37 +9,76 @@ You can use any spec to be broadcasted that is within the Pixelmon mod, those sp
```
# © EnvyWare Ltd Software 2022
broadcast-options:
one:
type: spawn
spec: shiny
nearest-player-radius: 30.0
broadcasts:
- '&8-------'
- '&a%pokemon% %nearest_name% %x%, %y%, %z%, %world%'
- '&8-------'
webhook: none
nearest-player-only: false
two:
type: spawn
spec: legendary
nearest-player-radius: 30.0
broadcasts:
- '&8-------'
- '&a%pokemon% %nearest_name% %x%, %y%, %z%, %world%'
- '&8-------'
webhook: none
nearest-player-only: false
three:
type: defeat
spec: legendary
nearest-player-radius: 30.0
broadcasts:
- '&8-------'
- '&a%pokemon% %nearest_name% %x%, %y%, %z%, %world%'
- '&8-------'
webhook: none
nearest-player-only: false
# © EnvyWare Ltd Software 2024
# For assistance visit https://discord.envyware.co.uk
# If this is false then this broadcast option will not be checked. This option is useful for disabling the defaults provided with the mod as you cannot delete those files, only modify them.
enabled: true
# The radius in blocks that the mod will check for the `nearby player` placeholders and options
nearest-player-radius: 100.0
# The messages that will be broadcasted when the event is triggered. These messages can contain placeholders.
broadcasts:
- '&8---------------------------------'
- ' '
- ' &6&lSHINY SPAWN'
- ' &e%pokemon% &7has spawned at &a%x%&7, &a%y%&7, &a%z%&7 in &f%biome%&7!'
- ' &7The nearest player is &e%nearest_name%&7'
- ' '
- '&8---------------------------------'
# The webhook that will be executed when the event is triggered. This webhook can contain placeholders.
webhook:
enabled: false
tts: false
embeds:
example-0:
description: A shiny %pokemon% has spawned at %x%, %y%, %z% in %biome%!
color:
red: 255
green: 255
blue: 0
alpha: 255
footer:
text: Powered by EnvyWare Ltd
icon-url: ''
author:
name: EnvyWare Ltd
url: https://envyware.co.uk
icon-url: ''
fields:
example-5:
name: Y
value: '%y%'
inline: false
example-6:
name: Z
value: '%z%'
inline: false
example-3:
name: Biome
value: '%biome%'
inline: false
example-4:
name: X
value: '%x%'
inline: false
example-1:
name: Nearest Player
value: '%nearest_name%'
inline: false
example-2:
name: World
value: '%world%'
inline: false
thumbnail: {}
image: {}
url: YOUR WEBHOOK URL HERE
username: EnvyWare Ltd BetterPokeBroadcaster
# If this is true then the broadcast will only be sent to the nearest player to the Pokemon that triggered the event.
nearest-player-only: false
# The type of broadcast. This defines when the broadcast will attempt to be sent.
type: spawn
# This is used to check if the Pokemon in the event is the correct Pokemon for this broadcast. For more information read: https://pixelmonmod.com/wiki/Pokemon_spec
pokemon-spec: shiny isboss:notboss !leg !ub
```

Expand Down

0 comments on commit b72f814

Please sign in to comment.