Repository navigation
API Server kinds
Alexandre 'kidev' Poumaroux edited this page Oct 21, 2026
·
4 revisions
| Import | from proleak import server |
What kind of server the game is connected to, and what that allows.
| Returns | Function | |
|---|---|---|
bool |
allows(capability: str) |
True when capability is allowed on the current server. |
None |
require(capability: str) |
Raise NotAllowedHere unless capability is allowed on the current server. |
| Type | Value | |
|---|---|---|
str |
kind read-only
|
The kind of server the game is connected to: one of the values below. |
str |
MENU read-only
|
In the menus, connected to no game. |
str |
OFFICIAL_RANKED read-only
|
A ranked game on the official servers. |
str |
OFFICIAL_CASUAL read-only
|
Any other game on the official servers. |
str |
LOCAL read-only
|
A game on ProLeak's local server. |
str |
UNKNOWN read-only
|
A game ProLeak cannot place. |
server.kind is one of menu, official_ranked, official_casual, local,
unknown. Capabilities: observe (always); actions, cosmetics.modify and
raw.access (local only).
allows(capability: str) -> bool
True when capability is allowed on the current server.
require(capability: str) -> None
Raise NotAllowedHere unless capability is allowed on the current server.
kind: str [read-only]
The kind of server the game is connected to: one of the values below.
MENU: str [read-only]
In the menus, connected to no game.
OFFICIAL_RANKED: str [read-only]
A ranked game on the official servers.
OFFICIAL_CASUAL: str [read-only]
Any other game on the official servers.
LOCAL: str [read-only]
A game on ProLeak's local server.
UNKNOWN: str [read-only]
A game ProLeak cannot place.
Using ProLeak
Features
Tutorial
- Your first plugin
- Plugin basics
- Handling events
- Plugin settings
- User interface
- Players, units and game data
- Purchases, signals and pings
- Chat, camera, input and more
- Game assets
- Game modes
- Game updates
- Publishing plugins
Reference