add join spam

This commit is contained in:
2023-04-17 19:18:57 +02:00
parent f76cb358b3
commit 01aee9ab4c
+21 -1
View File
@@ -46,6 +46,26 @@ commands:
spam-exclusions: [] spam-exclusions: []
``` ```
### Join spam
Sometimes shear quantity of players joining the server can cause the server to lag out. This is especially true for bot
attacks and moments after server restart. This can be fixed by setting max joins per tick. Players joining will be
delayed in time so server can properly tick between handling them. If joins still overwhelm the server, you can also
enable max-joins-per-second in purpur.yml that will make it so value from paper config will be applied per second
instead of per tick.
`paper-global.yml`
```yaml
misc:
max-joins-per-tick: 3
```
`purpur.yml`
```yaml
settings:
network:
max-joins-per-second: true
```
### Treasure search ### Treasure search
When new treasure map is generated, usually via cartographer villager or opening a chest with treasure map in it, the When new treasure map is generated, usually via cartographer villager or opening a chest with treasure map in it, the
@@ -76,7 +96,7 @@ world-settings:
#### Option 2 #### Option 2
Alternatively, you can keep the maps enabled, but set up vanilla worldborder and make sure your world is pregenerated Alternatively, you can keep the maps enabled, but set up vanilla world border and make sure your world is pregenerated
within the border. Then you can just make sure that already discovered treasures are valid as the search result. This within the border. Then you can just make sure that already discovered treasures are valid as the search result. This
will prevent the treasure search from loading chunks that are not generated. will prevent the treasure search from loading chunks that are not generated.