@@ -7,9 +7,37 @@ Join [my Discord server](https://discord.gg/PuqmUMaJWk) for support and updates
77- ` /shout <message> ` - Sends a message to all players in the server. Op required
88
99### Configuration
10- The file is located at ` config/regional_chat.json `
10+ Since 1.1.0, you can use TOML or JSON5 for your config file! (** [ Quilt Loader] ( https://quiltmc.org/ ) Required** ).
11+ Files for older versions of the mod (1.0.x) are automatically converted to TOML, but you may keep your file in json by moving it to the path below.
12+
13+ The file is located at ` config/regional_chat/regional_chat.toml ` /` regional_chat.json5 ` in Quilt, or ` config/regional_chat.json ` in Fabric
1114
1215#### Default
16+ TOML:
17+ ``` toml
18+ # The range in blocks a player can talk and be heard
19+ # range[0, 32767]
20+ # default: 100
21+ range = 100
22+ # Whether to notify players about the distance a message was sent from
23+ # default: true
24+ notifyDistance = true
25+ # The prefix to use when notifying players about the distance a message was sent from
26+ # default: [From %.0f blocks away]
27+ distancePrefix = " [From %.0f blocks away] "
28+ # Whether to allow operators to bypass the range limit
29+ # default: true
30+ opBypass = true
31+ # The permission level required to bypass the range limit
32+ # range[0, 4]
33+ # default: 3
34+ opRequiredPermissionLevel = 3
35+ # Whether operators should have an unlimited hearing range
36+ # default: false
37+ opUnlimitedRange = false
38+ ```
39+
40+ JSON:
1341``` json
1442{
1543 "range" : 100 ,
@@ -20,13 +48,3 @@ The file is located at `config/regional_chat.json`
2048 "op_unlimited_range" : false
2149}
2250```
23-
24- #### Properties
25- | Property | Type | Description |
26- | ----------------- | -------- | ----------- |
27- | ` range ` | number | The range in blocks a player can talk and be heard. |
28- | ` notify_distance ` | boolean | Whether to notify players about the distance a message was sent from. |
29- | ` distance_prefix ` | string | The prefix to use when notifying players about the distance a message was sent from. |
30- | ` op_bypass ` | boolean | Whether to allow operators to bypass the range limit. |
31- | ` op_required_permission_level ` | number | The permission level required to bypass the range limit. |
32- | ` op_unlimited_range ` | boolean | Whether operators should have an unlimited hearing range. |
0 commit comments