{#if invites.length}

Guild invitations

{#each invites as inv (inv.id)}
[{inv.guild_tag}] {inv.guild_name}Invited by
{/each}
{/if} {#if loading && !myGuild && !allGuilds.length}
{:else if myGuild}
[{myGuild.tag}]

{myGuild.name}

{myGuild.member_count} Members {myGuild.claims_count} Claims
{#if myGuild.description}

{myGuild.description}

{/if}
{#if canManageDetails}{/if}
{#if activeTab === 'territory'}
Grief Protection Relay Active

Chunks claimed by your guild are synchronized with the SCOPENET mod/plugin on the server. Non-members cannot break or place blocks within your claims.

{ if (myGuild) myGuild.claims_count += 1; }} onunclaim={() => { if (myGuild) myGuild.claims_count = Math.max(0, myGuild.claims_count - 1); }} />
{:else if activeTab === 'wallet'} {:else if activeTab === 'members'}
{#if joinRequests.length}

Join requests

{#each joinRequests as req}
{req.name}{req.message}
{/each}
{/if}
{#each members as m (m.uuid)}
(app.viewProfileUuid = m.uuid)} onkeydown={(e) => e.key === 'Enter' && (app.viewProfileUuid = m.uuid)} >
{#if m.online} {/if}
{m.name} {#if m.role === 'leader'} Leader {:else if m.role === 'officer'} Officer {:else if m.role === 'member'} Member {:else} {m.role} {/if}
Joined {new Date(m.joined_at).toLocaleDateString()} {#if myGuild.leader_uuid === activeAccount()?.uuid && m.uuid !== activeAccount()?.uuid} {/if}
{/each}
{:else if activeTab === 'settings'}

Guild appearance

{#if myRole === 'leader'}

Guild roles

{#each roles as role}
{role.name}{[role.can_invite && 'Invite', role.can_kick && 'Kick', role.can_claim && 'Claim', role.can_post && 'Post', role.can_manage && 'Manage'].filter(Boolean).join(', ') || 'No extra permissions'}
{/each}
{/if} {:else if activeTab === 'feed'}
Post Guild Announcement
{#if posts.length === 0}

No guild announcements posted yet.

{:else} {#each posts as p (p.id)}
{#if p.pinned} Pinned {/if}

{p.title}

{p.content}

{/each} {/if}
{/if}
{:else}

No Guild on {currentInstance?.name || 'this Instance'}

Guilds are tied to instances. Start your own guild to claim land chunks, invite members, and build a faction base, or browse existing factions below.

Active Guilds ({allGuilds.length})

{#if allGuilds.length === 0}

No guilds have been created on this instance yet. Be the first to establish territory!

{:else}
{#each allGuilds as g (g.id)}
[{g.tag}]

{g.name}

{g.member_count} / {g.max_members} Members • {g.claims_count} Chunks Claimed
{#if g.description}

{g.description}

{/if}
{/each}
{/if}
{/if}
{#snippet footer()} {/snippet}