-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
i moved all toml getBoolean/getString stuff to a Config::loadConfigs method because i want a reload command. this should allow me to call loadConfigs() again at some point to effectively reload the plugin.
- Loading branch information
confor
committed
Jan 10, 2022
1 parent
b57f13f
commit a9dae77
Showing
5 changed files
with
90 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,34 @@ | ||
config_version = 2 | ||
config_version = 3 | ||
|
||
[chat] | ||
# enable global chat? | ||
enable = true | ||
|
||
# should the chat messages be echoed to velocity's console? | ||
log_to_console = true | ||
log_to_console = false | ||
|
||
# should chat messages be passed through to the minecraft server? | ||
# it will show duplicate messages in the senders chat | ||
# if enabled, it will show duplicate messages in the senders chat | ||
passthrough = false | ||
|
||
# should chat messages be parsed through minimessage? | ||
# player will be able to use styles such as <rainbow>hello</rainbow> in their messages | ||
parse_player_messages = false | ||
|
||
# when a player connects to velocity | ||
msg_join = "<yellow><player> connected</yellow>" | ||
# global chat format, you can use minimessage tags here. | ||
format = "<player>: <message>" | ||
|
||
# when a player disconnects from velocity | ||
msg_quit = "<yellow><player> disconnected</yellow>" | ||
[join] | ||
# send a chat message when a player connects to velocity? | ||
enable = true | ||
format = "<yellow><player> connected</yellow>" | ||
|
||
# when a player speaks | ||
msg_chat = "<player>: <message>" | ||
[quit] | ||
# send a chat message when a player disconnects? | ||
enable = true | ||
format = "<yellow><player> disconnected</yellow>" | ||
|
||
# shown when a player switches to another minecraft server | ||
msg_switch = "<yellow><player> moved to <server></yellow>" | ||
[switch] | ||
# send a chat message when a player connects to a minecraft server? | ||
enable = true | ||
format = "<yellow><player> moved to <server></yellow>" |