Skip to content

Commit df81034

Browse files
committed
feat(vzn-references): documentation about required playtime in configuration
1 parent 178d275 commit df81034

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

pages/vzn-references/config.mdx

+9
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,15 @@ To configure command name, which will opening rewards for invitations menu you c
4444
Config.ReferencesCommand = 'references'
4545
```
4646

47+
### REQUIRED PLAYTIME
48+
49+
To prevent players, that will be joining on new account, entering friend's code, and again and again, we decided to add required playtime that player must have player on server to be counted as invited. The logic of this system you can see in `server/editable/editable_playtime.lua` (or you can rewrite it to your playtime system). In config you can configure how much **seconds** of playtime is required. To disable this feature set `0`
50+
51+
```lua filename="config.lua"
52+
---@type number seconds how much player must have played on server to be approved as invited player (set 0 to disable) (to prevent exploiters who create new character every time)
53+
Config.RequiredPlaytime = 5 * 60 * 60 --// seconds
54+
```
55+
4756
### REWARDS PER INVITE
4857

4958
The most important thing in this config is rewards. In this table, key is how many invites player need to claim this reward. If you wanna to give other rewards than items you can set custom type of them and implement giving them in `bridge/your_framework/server.lua` in function called `AddReward`

0 commit comments

Comments
 (0)