Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
GIGABAIT93 committed Mar 21, 2024
1 parent 4ce367e commit 039cb94
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@ global:
enabled: true
alias: '!'
command: g
# If empty, everyone can use this chat and see the messages
permission: vcmi.chat.global
see_all: true
format: '&8[&6G&8] &a{player} &6=> &f{message}'
Expand All @@ -223,13 +224,13 @@ staff:
alias: '@'
command: s
permission: vcmi.chat.staff
see_all: false
format: '&8&l[&4&lS&8&l] &b&l{server} &a&l{player} &6&l=> &f&l{message}'
# Alert chat
alert:
enabled: true
alias: ''
command: alert
# If empty, everyone can use this chat and see the messages
permission: vcmi.chat.alert
see_all: true
format: '&8[&4ALERT&8] &f{message}'
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/com/vcmi/config/data/ChatYAML.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ public static void reload() {
setConfigValue("global.enabled", true);
setConfigValue("global.alias", "!");
setConfigValue("global.command", "g");
setConfigValue("global.permission", "vcmi.chat.global");
yamlFile.setComment("global.permission", "If empty, everyone can use this chat and see the messages");
setConfigValue("global.permission", "");
setConfigValue("global.see_all", true);
setConfigValue("global.format", "&8[&6G&8] &a{player} &6=> &f{message}");

Expand All @@ -40,14 +41,13 @@ public static void reload() {
setConfigValue("staff.alias", "@");
setConfigValue("staff.command", "s");
setConfigValue("staff.permission", "vcmi.chat.staff");
setConfigValue("global.see_all", false);
setConfigValue("staff.see_all", false);
setConfigValue("staff.format", "&8&l[&4&lS&8&l] &b&l{server} &a&l{player} &6&l=> &f&l{message}");

yamlFile.setComment("alert", "Alert chat");
setConfigValue("alert.enabled", true);
setConfigValue("alert.alias", "");
setConfigValue("alert.command", "alert");
yamlFile.setComment("alert.permission", "If empty, everyone can use this chat and see the messages");
setConfigValue("alert.permission", "");
setConfigValue("alert.see_all", true);
setConfigValue("alert.format", "&8[&4ALERT&8] &f{message}");
Expand Down

0 comments on commit 039cb94

Please sign in to comment.