Skip to main content

SocialCommandModule

A static class in Root.Township, Alta.Console.Commands.

Console module social: adds, removes and lists friends through the Alta API. Needs login, play mode and server_owner.

Fields​

1 private and internal field
MemberWhat it is
private static Logger loggerNLog logger for this module.

Methods​

MemberWhat it is
static async Task AddFriend(UserInfoAccess player)social addfriend: sends a friend request to the player and logs the result.
static async Task ListFriends(UserInfoAccess user)social listfriends: logs a table of a user's friends and whether each is on this server.
static async Task RemoveFriend(UserInfoAccess player)social removefriend: removes the player as a friend if they are one and updates their in-game friend status.