Skip to content

Commit 2bdf4ff

Browse files
committed
Huge Update
1 parent b7487bd commit 2bdf4ff

File tree

160 files changed

+17745
-4095
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

160 files changed

+17745
-4095
lines changed

documentation/docs/definitions/command.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ alias = "chargiveflag"
6363
alias = {"chargiveflag", "giveflag"}
6464
```
6565

66+
**Note:** When using aliases with `adminOnly` or `superAdminOnly`, privileges are automatically registered for each alias. For example, if a command has `adminOnly = true` and alias `"testcmd"`, the privilege `command_testcmd` will be registered and required to use that alias.
67+
6668
---
6769

6870
#### `adminOnly`
@@ -193,6 +195,9 @@ All keys are optional; if omitted the command simply will not appear in the Admi
193195

194196
* `TargetClass` (string) – Limit the command to a specific entity class when using the Admin Stick.
195197

198+
Custom categories and subcategories can be added through the Administration module using
199+
`addAdminStickCategory(key, data)` and `addAdminStickSubCategory(category, key, data)`.
200+
196201
**Example Usage:**
197202

198203
```lua

documentation/docs/definitions/module.md

Lines changed: 3 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,9 @@ A `MODULE` table defines a self-contained add-on for the Lilia framework. Each f
2727
| `Dependencies` | `table` | `nil` | Files or directories included before the module loads. |
2828
| `folder` | `string` | `""` | Filesystem path where the module resides. |
2929
| `path` | `string` | `""` | Absolute path to the module’s root directory. |
30-
| `uniqueID` | `string` | `""` | Internal identifier for the module list. |
30+
| `uniqueID` | `string` | `""` | Internal identifier for the module list. Prefix with `public_` or `private_` to opt into version checks. |
3131
| `loading` | `boolean` | `false` | True while the module is in the process of loading. |
3232
| `ModuleLoaded` | `function` | `nil` | Callback run after module finishes loading. |
33-
| `Public` | `boolean` | `false` | Participates in public version checks. |
34-
| `Private` | `boolean` | `false` | Uses private version checking. |
3533

3634
---
3735

@@ -131,42 +129,6 @@ MODULE.version = 1.0
131129

132130
---
133131

134-
#### `Public`
135-
136-
**Type:**
137-
138-
`boolean`
139-
140-
**Description:**
141-
142-
When true, the module participates in public version checks.
143-
144-
**Example Usage:**
145-
146-
```lua
147-
MODULE.Public = true
148-
```
149-
150-
---
151-
152-
#### `Private`
153-
154-
**Type:**
155-
156-
`boolean`
157-
158-
**Description:**
159-
160-
When true, the module uses private version checking.
161-
162-
**Example Usage:**
163-
164-
```lua
165-
MODULE.Private = true
166-
```
167-
168-
---
169-
170132
### Dependencies & Content
171133

172134
#### `CAMIPrivileges`
@@ -362,7 +324,7 @@ print(MODULE.path)
362324

363325
**Description:**
364326

365-
Identifier used internally for the module list.
327+
Identifier used internally for the module list. Prefix with `public_` or `private_` to enable public or private version checks.
366328

367329
**Example Usage:**
368330

@@ -419,15 +381,14 @@ When loading a module from a directory, Lilia automatically scans for common sub
419381
A complete example showing common fields in use:
420382

421383
```lua
422-
-- example/gamemode/modules/myfeature/module.lua
384+
-- example/gamemode/modules/public_myfeature/module.lua
423385
MODULE.name = "My Feature"
424386
MODULE.author = "76561198012345678"
425387
MODULE.discord = "@example"
426388
MODULE.version = 1.0
427389
MODULE.desc = "Adds an example feature used to demonstrate module creation."
428390

429391
MODULE.enabled = true
430-
MODULE.Public = true
431392

432393
MODULE.WorkshopContent = {
433394
"1234567890"

documentation/docs/hooks/gamemode_hooks.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1356,15 +1356,16 @@ end)
13561356

13571357
**Purpose**
13581358

1359-
Checks if the local player may start creating a character. Determines if the player may create a new character.
1359+
Checks if a player may start creating a character. Determines if the player may create a new character.
13601360

13611361
**Parameters**
13621362

1363-
- `player` (`Player`): Local player.
1363+
- `player` (`Player`): The player attempting to create a character.
1364+
- `data` (`table`|nil): Optional character data being created. Only supplied on the server.
13641365

13651366
**Realm**
13661367

1367-
`Client`
1368+
`Shared`
13681369

13691370
**Returns**
13701371

@@ -1456,7 +1457,8 @@ Override to change how many characters a player can have. Returns the maximum nu
14561457

14571458
**Parameters**
14581459

1459-
- `player` (`Player`): Local player.
1460+
- `player` (`Player`): The player attempting to create a character.
1461+
- `data` (`table`|nil): Optional character data being created. Only supplied on the server.
14601462

14611463
**Realm**
14621464

0 commit comments

Comments
 (0)