diff --git a/packages/api-client/src/modules/archon/servers/v1.ts b/packages/api-client/src/modules/archon/servers/v1.ts index 9435bf11c7..a611f4ca22 100644 --- a/packages/api-client/src/modules/archon/servers/v1.ts +++ b/packages/api-client/src/modules/archon/servers/v1.ts @@ -66,4 +66,16 @@ export class ArchonServersV1Module extends AbstractModule { method: 'POST', }) } + + /** + * Switch the server to a world + * POST /v1/servers/:id/worlds/:wid/active + */ + public async switchWorld(serverId: string, worldId: string): Promise { + await this.client.request(`/servers/${serverId}/worlds/${worldId}/active`, { + api: 'archon', + version: 1, + method: 'POST', + }) + } } diff --git a/packages/ui/src/components/servers/instances/InstanceCard.vue b/packages/ui/src/components/servers/instances/InstanceCard.vue index 42c79a0818..0a1390fcba 100644 --- a/packages/ui/src/components/servers/instances/InstanceCard.vue +++ b/packages/ui/src/components/servers/instances/InstanceCard.vue @@ -177,22 +177,41 @@ {{ formatMessage(messages.editInstance) }} - - - +
+ + + + + + +