-
Notifications
You must be signed in to change notification settings - Fork 0
/
config-default.yml
67 lines (60 loc) · 2.58 KB
/
config-default.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
---
#########################################
# \ \ / / +------ +----- #
# \ X / | | #
# \ / \ / +-----+ +--- #
# \ / \ / | | #
# \/ \/ ------+ +----- #
#########################################
# WebSocket Events v0.8@indev BETA
# "Receive, handle and execute action from and to your PocketMine-MP server via WebSockets!"
#########################################
# (C) 2023-now Federico Cosma (FoxWorn3365) and contributors
# MIT License
# Require php8 or newer
#########################################
# CONTACTS
# Email: [email protected]
# Discord: FoxWorn#0001
# GitHub https://github.com/FoxWorn3365/WebsocketEvents
# GitHub (author): https://github.com/FoxWorn3365
##########################################
enabled: true ## Is the plugin enabled?
#-----------------------------------
# > WebSocket Server Configuration
#-----------------------------------
# Default settings
server-ip: localhost # The host of the internal WebSocket Server. use 0.0.0.0 to open to others
server-port: 1991 # The port
timeout: 2 # Timeout (in seconds) of client message listener
max-connections: 10 # The number of max simultaneous WebSocket Connections for this server
allow-doubleauth: false # Allows transmission of the token after accepting the connection temporarily with a timeout of 2s
# Auth settings
# - This array contains all allowed WebSockets Keys
tokens:
- myTestToken1
- myTestToke2
# Permissions settings
# - This array contains all permissions for every token.
# - Use * to allow all permissions
# - Permissions is like: [part].[name], for example player.name
# - As the global permission you can use player.* to give access to the entire player class
# - Command and player execution is under "exec.[player|server]"
# - Permission for receive event: "event.[event_name]"
permissions:
myTestToken1:
- '*'
myTestToken2:
- player.*
- server.playerList
- exec.server
# Event settings
event-socket-token: myEventTestToken # This toke will be used by the event websocket client to connect. Il will have * as permission
event-close-token: myCloseToken # This token will be used by the server manager to prompt a shutdown command to all connected clients
# Utils
waiting-connection-time: 1 # The time the server waits before establishing internal WebSocket connections
full_logs: false # Should the plugin share the WSS server logs with the console?
# Enable or disable some event listeners
on_player_move: false
on_block_update: false
...