-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathconfig.yml
More file actions
75 lines (75 loc) · 2.57 KB
/
Copy pathconfig.yml
File metadata and controls
75 lines (75 loc) · 2.57 KB
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
68
69
70
71
72
73
74
75
# You can use Placeholder API placeholders in these messages. To do so put the placeholder like <papi:placeholder> so for
# something like %player_username% you would do <papi:player_username> instead.
# Provided placeholders are <displayname> for display name, and <username> for user name
format:
normal: "<displayname>"
social-spy: "<username>"
# Other messages can be configured in locale.yml
mysql:
enabled: false
ip: "localhost:3306"
name: homes
username: username1
password: badpassword!
allow-messaging:
hidden-players: false
console: true
valid-console-names:
- server
- console
# This sends a specific message to console with the same socialspy format.
# Useful for searching logs, but also may cause clutter
console-has-social-spy: true
console-has-command-spy: false
command-spy:
enabled: false
commands: # have social spy also spy on these commands:
- /minecraft:w
- /minecraft:tell
- /minecraft:msg
- /minecraft:say
- /minecraft:me
- /minecraft:op
- /op
- /gmc
- /gamemode
- /give
sounds:
received:
enabled: false
sound: minecraft:block.note_block.xylophone
pitch: 1.8
volume: 0.5
sent:
enabled: false
sound: minecraft:entity.allay.item_thrown
pitch: 1.8
volume: 0.5
spy:
enabled: false
sound: minecraft:entity.item_frame.rotate_item
pitch: 1.8
volume: 0.5
###
# This adds Webhook Support focused for Discord
###
webhook:
enabled: false
url: ""
# This is the JSON Body to send to the webhook.
# The default value is modeled after https://docs.discord.com/developers/resources/webhook#execute-webhook
# These are the placeholders that can be used:
# <sender>: Sender's Username
# <sender_display_name>: Sender's Display Name (Nickname), Non-players will have the same name as <sender>
# <sender_uuid>: Sender's UUID, formatted as xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx, this is blank for non-players.
# <recipient>: Recipient's Username
# <recipient_display_name>: Recipient's Display Name (Nickname), Non-players will have the same name as <recipient>
# <recipient_uuid>: Recipient's UUID, formatted as xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx, this is blank for non-players.
# <message>: The message sent through SimplePMs.
# <timestamp>: Unix Timestamp (https://www.unixtimestamp.com/)
json-body: |
{
"content": "{message}\n-# {sender_display_name} ({sender}) sent {recipient_display_name} ({recipient}) this on <t:{timestamp}>",
"avatar_url": "https://mc-heads.net/avatar/{sender_uuid}",
"username": "{sender} > {recipient}"
}