The DiscordRoundWinner plugin will send the round winner to a Discord channel.
The DiscordRoundEnded plugin will send the round winner to a Discord channel.
discordThe ID of the channel to log admin broadcasts to.
+The ID of the channel to log round end events to.
667741905228136459
@@ -654,9 +654,9 @@ Grafana:
The DiscordRoundEnded plugin will send the round winner to a Discord channel.
The DiscordRoundWinner plugin will send the round winner to a Discord channel.
discordThe ID of the channel to log round end events to.
+The ID of the channel to log admin broadcasts to.
667741905228136459
diff --git a/config.json b/config.json
index f07dbe29..ec0c90c3 100644
--- a/config.json
+++ b/config.json
@@ -167,14 +167,14 @@
"prependAdminNameInBroadcast": false
},
{
- "plugin": "DiscordRoundWinner",
+ "plugin": "DiscordRoundEnded",
"enabled": true,
"discordClient": "discord",
"channelID": "",
"color": 16761867
},
{
- "plugin": "DiscordRoundEnded",
+ "plugin": "DiscordRoundWinner",
"enabled": true,
"discordClient": "discord",
"channelID": "",
diff --git a/squad-server/factory.js b/squad-server/factory.js
index 93f03831..7d84c8b4 100644
--- a/squad-server/factory.js
+++ b/squad-server/factory.js
@@ -187,7 +187,7 @@ export default class SquadServerFactory {
const template = SquadServerFactory.parseConfig(templateString);
const pluginKeys = Object.keys(plugins).sort((a, b) =>
- a.name < b.name ? -1 : a.name > b.name ? 1 : 0
+ a < b ? -1 : a > b ? 1 : 0
);
for (const pluginKey of pluginKeys) {
@@ -216,7 +216,7 @@ export default class SquadServerFactory {
const plugins = await Plugins.getPlugins();
const pluginKeys = Object.keys(plugins).sort((a, b) =>
- a.name < b.name ? -1 : a.name > b.name ? 1 : 0
+ a < b ? -1 : a > b ? 1 : 0
);
const pluginInfo = [];