Skip to content

Add command to announce requests - #114

Open
Javggg wants to merge 2 commits into
PGMDev:devfrom
Javggg:requests-announce
Open

Add command to announce requests#114
Javggg wants to merge 2 commits into
PGMDev:devfrom
Javggg:requests-announce

Conversation

@Javggg

@Javggg Javggg commented Aug 26, 2026

Copy link
Copy Markdown

Similar to what zzuf did with #57, this PR adds the /requests announce command from the Requests plugin.

Usage: /requests announce [--name|-n]

By default the announcement reads "We are accepting map requests". With the --name flag, it credits the staff member who ran it.

Captura de pantalla 2026-08-26 a la(s) 5 23 53 p m Captura de pantalla 2026-08-26 a la(s) 5 24 23 p m

Javggg added 2 commits August 26, 2026 17:20
Signed-off-by: Javggg <javier.velasquez.gallardo@gmail.com>
Signed-off-by: Javggg <javier.velasquez.gallardo@gmail.com>

@applenick applenick left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The formatting feels a bit outdated. Also, having a staff member's name attached to accepting map requests seems unnecessary as presenting a unified staff front is probably the better approach today. Could you remove the --name flag?

As for formatting, I'd go for something like this and making it a clickable component:

Component announce = text()
    .append(text("Map requests are now ", NamedTextColor.GRAY))
    .append(text("OPEN", NamedTextColor.GREEN, TextDecoration.BOLD))
    .append(text("! ", NamedTextColor.GRAY))
    .append(text("[", NamedTextColor.GRAY))
    .append(text("Request a map", NamedTextColor.AQUA))
    .append(text("]", NamedTextColor.GRAY))
    .clickEvent(ClickEvent.suggestCommand("/request "))
    .hoverEvent(HoverEvent.showText(text("Click to request a map", NamedTextColor.GRAY)))
    .build();

I wonder if in addition to bringing back the dedicated announcement command, we could simply auto-broadcast whenever a staff member enables requests. That way, there’s one less manual step, but likely better to have both options available.

Thanks for taking the time to work on this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants