Skip to content

Add Traveler mode for non-guild Traveler and Veteran players - #56

Merged
burgerfan41 merged 10 commits into
masterfrom
traveler-tier
Nov 14, 2026
Merged

burgerfan41 merged 10 commits into
masterfrom
traveler-tier

Conversation

@burgerfan41

Copy link
Copy Markdown
Contributor

What this adds

Mod support for the new Traveler access level. A Traveler is a linked player with the Discord Traveler or Veteran role who is not in the guild. The bot decides the standing and reports it in authOk; the mod only reacts to it.

It is the same jar for everyone. The jar holds no tier.

Needs the matching bot change. Against an older bot, nothing changes: the bot never sends traveler, so the mod behaves as before.

mod_version is not bumped, so merging this does not publish a release.

How the mod knows what you are

  1. The mod connects and proves the Minecraft session.
  2. The bot replies authOk with linked, member and (new) traveler.
  3. The mod sets its status: full member, Traveler, not linked, or not a member.

SUPPORTED_FEATURES now declares traveler and travelerChat. Only mods that declare them are offered the tier.

If a player links mid-session, the bot closes the socket; the mod reconnects by itself and picks up the new standing. No mod change was needed for that.

Outbound policy

New OutboundPolicy decides which message types may leave the client for each standing:

  • before authOk, not linked, not a member: only authResponse
  • Traveler: authResponse, presence, mailSend, mailAck, tccMapPos, tccGolemDefeated, tccExitReached, witnessKill, partyOpen, partyJoin, partyLeave, partyList, partyManage, travelerChat, travelerPrefs, coinflip, diceroll, attestationFailure
  • full member: everything

It is enforced at the single send choke point (enqueueSend), which now takes the message and returns whether it was sent, so the boolean send* methods report correctly.

Two effects:

  • A traveler who is in another guild never uploads that guild's chat, bank, raid or war data to our bot.
  • Nothing is sent before authOk any more. That window existed before this change.

Inbound, a Traveler client also drops warBoard, discordMessage, loginNotice, logoutNotice and onlineList if one ever arrives. The bot never sends them to a traveler; this is a second layer.

What a Traveler sees

Hidden:

  • Eden menu: the Event and Payouts buttons.
  • Commands: online, wars, event, aspects, emeralds, warpay, rewards, gift, deduct, dump, logscan, ally, reply. They are removed from the command tree and from the help list.
  • Config rows: Discord bridge messages, login/logout messages, event announcements, click shouts to reply, weekly war count HUD, Radiance tracker.
  • Territory presets panel.
  • Party screens: the ally toggle. Travelers host ally parties only, so it is forced on.

Kept: every local feature (own attack timers, beacon, war overlay, territory loss sound and blacklist, outlines, raid safety, emotes, HUD layout, and so on), mail, the party finder, the TCC map, /eden anni, /eden cf, /eden diceroll.

All hiding is cosmetic. The bot is the enforcement point.

New for everyone

  • Traveler chat. /eden tc <message> and the short alias /e <message>. Incoming lines show with their own aqua pill. Config toggle "Traveler chat", on by default.
  • Games shown. Members: "Guild only" or "All". Travelers: "All" or "Off".

Both preferences are sent to the bot as travelerPrefs on connect and on change.

Territory presets

The four territoryMenuSuite checks now go through presetsEnabled(), which is true only for a guild member. It uses a persisted wasMember flag so presets keep working for members during a bot outage. The flag is saved on the game thread.

Testing

  • gradlew test: build successful, formatting clean.
  • New OutboundPolicyTest classifies every send type for every standing. BridgeConfigTest covers the new fields.

Not tested: the menus and commands in game with a real traveler account, and the mod against a live bot.

@burgerfan41
burgerfan41 merged commit 5850dcf into master Nov 14, 2026
1 check passed
@burgerfan41
burgerfan41 deleted the traveler-tier branch November 14, 2026 21:00
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