Aller au contenu principal

Friend

The Friend Extension adds a player-to-player friend system to TypeWriter: players send and answer friend requests, browse their friend list in a GUI menu, and teleport to friends who are online.

Features

  • Friend Requests — Send, accept, and decline requests between players.
  • Friend List — A GUI menu listing friends with their online status.
  • Teleportation — Teleport to a friend directly from the menu or command.
  • Story Integration — Facts expose friendship state to your scripts, so quests and dialogue can react to who a player is friends with.

Commands

CommandDescription
/friend helpShow the command help.
/friend add <player>Send a friend request.
/friend accept <player>Accept a pending request.
/friend decline <player>Decline a pending request.
/friend remove <player>Remove an existing friend.
/friend listOpen the friend list.
/friend toggleToggle friend request notifications.
/friend tp <player>Teleport to an online friend.

Entries

Quick Start

  • 1. Open the menu — Trigger the friend_menu action from a command, NPC, or item to let players manage their friends. → friend_menu
  • 2. React in your story — Use the is_friend fact to gate dialogue or quests on friendship. → is_friend

Permissions

PermissionDescription
friend.useUse the friend system.
friend.tpTeleport to a friend.
friend.adminAdministrate the friend system.

Dependencies

ExtensionRequiredUsage
GUI ExtensionRequiredRenders the friend menu (layoutPool, mainLayoutId).