Files
canalhandia/src/main/resources/plugin.yml
T
marcos be6d34f456 feat: show who reacted, and stop curiosities flooding chat
Reactions only ever showed counts, so with several reactors nobody could
tell who had reacted. Naming everyone on its own line does not scale, so
names now appear in three progressively larger places: a hover tooltip per
button (Java only), a one-line closing summary naming the first
resumo-nomes (3) and collapsing the rest to "+N", and /reacoes for the full
breakdown sent privately.

Reactors' names are captured at react time so the summary survives them
logging off.

Two separate causes of chat flooding:
- every join fired its own curiosity, so a wave of joins produced one each.
  Automatic triggers are now rate-limited by intervalo-minimo-segundos
  (120); a typed /curiosidade still bypasses it.
- a curiosity cost two messages. The button row is now appended to the
  headline instead of being broadcast separately.

Also fixes "1 horas" — CuriosityFactory had its own duration formatting
that missed the earlier plural fix; it now uses Msg.duration.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ActvLGJApdxEAd2yfKPwqv
2026-08-04 21:38:28 +00:00

81 lines
2.5 KiB
YAML

name: Canalhandia
version: "${project.version}"
main: dev.marcospaulo.canalhandia.Canalhandia
api-version: "26.1.1"
description: Interações sociais de chat para o servidor Canalhandia — curiosidades, adivinhas, enquetes, rankings e marcos.
author: Canalhandia
folia-supported: false
commands:
canalhandia:
description: Raiz de administração e destino dos botões clicáveis.
usage: /canalhandia
aliases: [cnh]
curiosidade:
description: Curiosidades sobre os jogadores.
usage: /curiosidade ajuda
aliases: [curiosidades]
adivinha:
description: Inicia uma rodada de "adivinhe de quem é".
usage: /adivinha
enquete:
description: Abre uma enquete com opções clicáveis.
usage: /enquete Pergunta | Opção 1 | Opção 2
aliases: [poll]
ranking:
description: Placares do servidor.
usage: /ranking [categoria]
aliases: [rankings, placar]
# Typed fallbacks. Bedrock cannot run a chat clickEvent, so every clickable
# interaction needs a command that can be typed instead. The shortcut names
# below must exist here to be registered; config.yml maps each one to a
# reaction key.
reagir:
description: Reage à última mensagem.
usage: /reagir <chave>
reacoes:
description: Mostra quem reagiu à última mensagem.
usage: /reacoes
aliases: [quemreagiu]
palpite:
description: Palpita na adivinha aberta.
usage: /palpite <nome>
votar:
description: Vota na enquete aberta.
usage: /votar <número>
legal:
description: Reage com "legal" à última mensagem.
usage: /legal
wow:
description: Reage com "uau" à última mensagem.
usage: /wow
aliases: [uau]
top:
description: Reage com "top" à última mensagem.
usage: /top
f:
description: Presta luto pela última morte.
usage: /f
permissions:
# Declared explicitly: an undeclared Bukkit permission falls back to op-only,
# which would silently stop normal players reacting, voting or guessing.
canalhandia.reagir:
description: Permite reagir e prestar luto.
default: true
canalhandia.ver:
description: Permite /curiosidade ver, listar e /ranking.
default: true
canalhandia.enquete:
description: Permite abrir enquetes.
default: true
canalhandia.forcar:
description: Permite disparar curiosidades e adivinhas manualmente.
default: op
canalhandia.admin:
description: Permite mudar módulos, modo, intervalo, categorias e reações.
default: op
canalhandia.isento:
description: Quem tem isto nunca é sorteado como assunto.
default: false