Skip to Content
ModulesCommunity

Clans

The Clans module: player clans with roles and requests, a bank of points from play on the servers, levels, seasons with prizes and a clan shop.

Players form clans on the site: a clan has a name, a tag, roles with rights, requests and invite links. When members play on your servers, the clan earns points. Points raise its level and its place in the season ranking, and they also pile up in the bank, which the clan spends in its own shop.

The Clans section with the podium and the season ranking
A clan page, the Overview tab with the bank and place by day
DependenciesGamesPermissionsStudio blocksBot commandsCron tasks
Flute 2.0; Quests, Rewards, Chat optionalany; points for play come from servers over GameLinkadmin.clans, admin.clans.view, clans.create"Top clans" (clans.top)/clansix, below

Each neighbouring module adds something. Quests counts kills and time on the servers, and without it there are no points for play. Rewards hands out season prizes and shop items of the "Reward to members" kind. With the Chat module a clan gets a "Chat" tab.

Where the module shows up

PlaceWhat is there
The /clans section, the "Clans" menu itemthe ranking with the top three podium, search by name and tag, the season archive, the "Create a clan" button
A clan pagetabs "Overview", "Members", "Chat", "Shop", "Log", "Settings"
The account menu"My clan" with a counter of invitations, requests and unread chat
Names across the sitethe [TAG] before a nickname in every list
Profilethe clan card; in profile settings the "Take invitations to clans" switch
Player card on the sitethe "Clan" line, the "Invite to [TAG]" and "Remove from [TAG]" actions
Player card in the adminthe "Clan" tab with the role, share and play this period, and a "Clan" column in the player list
GameLink game menua "Clans" or "My clan" item that opens the page on the site
Studiothe "Top clans" block and a data source for your own components

The "Top clans" block has the fields "Title", "How many clans" (3 to 20, 5 by default), "Sort" ("Season", "Level", "Newest") and "Mark the leader".

Install and first setup

Install the module from the marketplace as described in first steps. The module creates ten levels right away, from "Rookies" to "Legion", with experience thresholds from 0 to 75,000. Its reference screens are separate admin items: AdminClan seasons, AdminClan levels and AdminClan shop.

The settings open from the module card: AdminExtensionsModulesClansSettings.

Clans module settings, the Points for play group

By default any signed-in player can create a clan for free. To limit this, turn on "Creating by right only" and give the role the clans.create permission ("Create a clan"). "Price to create" is taken from the creator's balance.

Points bank from play

The "Clan points from play" task credits points every five minutes. It takes the kills and time on the servers that the quests module has counted and turns them into points at your rates.

Connect the servers

A server has to be online through GameLink: the plugin reports kills and play sessions to the site. How to connect one is on the Connect a game server page.

Install the quests module

Without Quests there is no crediting task, and the clan page says "Points come from servers with the Flute plugin and the quests module. There are none now, so the clan lives as a site community."

Set the rates

In the "Points for play" group fill in "Points a kill", "Points an hour of play" and "Daily cap per member". The defaults are 1, 10 and 300: a player with 40 kills over three hours of play brings the clan 70 points. "Servers that count" can be narrowed to the servers you want; an empty field means every server the quests module trusts.

Stock the clan shop

In AdminClan shop click "Add an item". The kind is "Slots", "Rename", "New tag", "Own roles" or "Reward to members". An item has "Price in bank points" and "Price from the buyer's balance", "From level" and "Limit a clan".

Every credit goes to four places at once: the member's share, the clan's experience (which sets the level), the current season's points and the bank. A newcomer counts from the next day after joining. Only a role with the "Shop" right spends the bank, and the ranking is never sold for points.

A clan changes its name and tag only by buying them in its own shop. The bank can also grow outside play: the Rewards module gets a "Clan bank points" reward that you can put into a main shop product or a prize. Staff adjust the bank by hand in the "Administration" block of the clan page with "Change the bank".

Kills come in, points do not

The quests module counts play only on its "Servers that count" and only while the online count is at least "Least players online" (4 by default). Check these fields in the quests module settings.

Seasons and prizes

While no season runs, the ranking goes by level and the admin home shows "No clan season runs". Open AdminClan seasons and click "Plan a season": "Name", "Starts", "Ends" and the prizes. For a prize set "Place from", "Place to", "To whom" ("The clan owner" or "Every member") and the reward itself.

The Clan seasons list with a running season and planned ones

One season runs at a time. At its end the "Clan seasons" task fixes the places, resets season points and gives the prizes once. Clans get the "Season over" notice, the places go into the trophies on the clan page, and seasons appear in the site calendar.

Settings

FieldWhat it changesDefault
"Clans are on"when off, the section does not open and nothing new is madeon
"Section address"the ranking addressclans
"Creating by right only"only roles with clans.create createoff
"Price to create", "Price to hand over"taken from the balance, 0 means free0
"Kinds offered", "Default kind""Open", "By request", "Invite only"all three, "By request"
"Slots of a new clan", "At most slots"starting slots and the cap for buying slots20, 100
"Own roles"how many own roles a new clan may make3
"Points a kill", "Points an hour of play"crediting rates1, 10
"Daily cap per member"0 removes the cap300
"Servers that count"whose play countsempty, all
"Freeze quiet clans after, days"a clan with no points or newcomers that long leaves the ranking, 0 never hides it0
"Pause between handovers, days"how often a clan can be handed over7
"Clan chat", "Clan shop"tabs on the clan pageon
"Which notices go out"sixteen kinds of notices to membersall

The other fields set the length of the name (3 to 24 characters), the tag (2 to 5) and the description (up to 2000), the invite link terms (1, 7, 30 days), the look of the section and the head and banner pictures.

For developers

The module dispatches clans.clan.created, clans.clan.dissolved, clans.clan.owner_changed, clans.clan.level_up, clans.clan.purchased, clans.member.joined, clans.member.left and clans.season.finished. Two of them go out as webhooks: "A clan was created" and "A clan season is over". The REST API serves active clans read only at /api/v1/clans with the type and tag filters.

The module sends the tag into the game with the clans.tag action (fields tag and name) to servers whose plugin supports that action. A player who is offline gets the tag from the clan key of the player card the plugin reads at join. php flute clans:import <connection> moves clans once from the clans_main, clans_roles and clans_players tables of a game clans plugin and skips the ones already moved.

How the core side works: Events and listeners, API keys and the REST API, Module REST API, Commands and scheduled tasks.

Troubleshooting

For any other message, use the error lookup.

Season prizes were not given

A season closed, but its prizes come from the rewards module, which is not installed or is off. Install or turn on Rewards and the prizes go out.

Clans are off

The section is hidden on the site, so players do not see changes to the reference screens. Turn on "Clans are on" in the module settings.

MessageWhat to do
"The bank lacks points"the bank fills from play; staff can top it up with "Change the bank"
"The clan has no free slots"slots come from levels and the "Slots" item in the clan shop
"The name and tag are changed in the clan shop"add "Rename" and "New tag" items to the shop
"The owner leaves only after handing the clan over or dissolving it"the owner hands it over in the "Danger zone" block with "Hand the clan over"
"This player takes no invitations"the player turned off "Take invitations to clans"; they can still join on their own

Next

On this page