Skip to content

Add invite buttons and /guild forceleader - #150

Merged
ryanbarlow97 merged 2 commits into
mainfrom
guild-invite-buttons
Oct 10, 2026
Merged

ryanbarlow97 merged 2 commits into
mainfrom
guild-invite-buttons

Conversation

@ryanbarlow97

@ryanbarlow97 ryanbarlow97 commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

Invites were hard to act on: a guild invite gave no hint how to accept, plain /guild join gave the generic "Error with command format", and joining a guild announced "joined the faction".

  • Faction and guild invites end with clickable [Accept] and [Decline] chat buttons. Hovering over Accept shows the realm or guild name. A guild invite now says who sent it, and the sender sees "Invited ".
  • /guild join and /faction join without an id accept the only pending invite. With several invites, they list each one with its own buttons. With none, they say so.
  • /guild decline <id> and /faction decline <id> remove the invite and tell the leader if they're online. /faction decline without an id still answers diplomatic requests.
  • Joining a guild tells the rest of the realm " joined the guild !" The joiner no longer receives their own join announcement.
  • Tab completion for join and decline suggests the player's pending invites.
  • New admin command /guild forceleader <guild> <player> makes an existing guild member the leader, like /faction forceleader does for a realm. On a realm's base guild it points you to /faction forceleader. Tab completion suggests sub-guilds, then the guild's other members.

The join and decline handling moved out of CommandManager into InviteCommands.

mvn clean verify: 7,550 tests pass.

🤖 Generated with Claude Code

@coderabbitai

coderabbitai Bot commented Oct 10, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 34 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 4fe12d57-8a76-4ecd-bc1d-5a65fb7729e6

📥 Commits

Reviewing files that changed from the base of the PR and between b631a4e and 952db86.


📒 Files selected for processing (6)
  • src/main/java/net/tfminecraft/simplefactions/managers/CommandManager.java
  • src/main/java/net/tfminecraft/simplefactions/managers/InviteCommands.java
  • src/main/java/net/tfminecraft/simplefactions/utils/TabCompletion.java
  • src/test/java/net/tfminecraft/simplefactions/guild/GuildDeleteCommandTest.java
  • src/test/java/net/tfminecraft/simplefactions/managers/CommandManagerCoverageTest.java
  • src/test/java/net/tfminecraft/simplefactions/managers/TabCompletionCoverageTest.java

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@ryanbarlow97 ryanbarlow97 changed the title Add Accept and Decline buttons to faction and guild invites Add invite buttons and /guild forceleader Oct 10, 2026
Base automatically changed from fix-raid-test-clock to main October 10, 2026 22:01
ryanbarlow97 and others added 2 commits October 10, 2026 22:01
Invites now end with clickable [Accept] and [Decline] chat buttons
instead of a typed command hint, and guild invites name the inviter
and confirm to them. /guild join and /faction join without an id
accept the only pending invite, or list several with buttons. New
/guild decline <id> and /faction decline <id> drop an invite and tell
an online leader. Guild joins announce "joined the guild" to the
realm and no longer echo to the joiner.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Hands a sub-guild to one of its members, like /faction forceleader
does for realms. The base guild points to /faction forceleader.
Tab completion offers sub-guild ids, then the guild's other members.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ryanbarlow97
ryanbarlow97 merged commit 522045f into main Oct 10, 2026
2 checks passed
@ryanbarlow97
ryanbarlow97 deleted the guild-invite-buttons branch October 10, 2026 22:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant