Always dump the modlist to discord webhook when committing the settings
This commit is contained in:
parent
c06176c900
commit
c88065befd
3 changed files with 12 additions and 2 deletions
|
@ -1,3 +1,3 @@
|
||||||
class Consts {
|
class Consts {
|
||||||
static const VERSION = "1.1.112324.1707";
|
static const VERSION = "1.1.112324.1742";
|
||||||
}
|
}
|
||||||
|
|
|
@ -355,6 +355,16 @@ class C2SUploadSettingsPacket implements IPacket {
|
||||||
return PacketResponse.nil;
|
return PacketResponse.nil;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Send a webhook with all the mods listed
|
||||||
|
String modListText = "";
|
||||||
|
for (var entry in settings.inst!.mods) {
|
||||||
|
modListText += "${entry.mod_name}\n";
|
||||||
|
}
|
||||||
|
|
||||||
|
modListText = modListText.trim();
|
||||||
|
DiscordHookHelper.sendWebHook(settings.inst!.discord,
|
||||||
|
DiscordHookProps.INACTIVE, "Mod List", modListText);
|
||||||
|
|
||||||
// Check if server is running, if not, stop immediately
|
// Check if server is running, if not, stop immediately
|
||||||
// If server is running, schedule restart for 1 minute and send a alert to all players, then perform stop or restart depending on if running in Pterodactyl Compatibility mode
|
// If server is running, schedule restart for 1 minute and send a alert to all players, then perform stop or restart depending on if running in Pterodactyl Compatibility mode
|
||||||
SessionData.shutdownMessage = "Server wrapper restart";
|
SessionData.shutdownMessage = "Server wrapper restart";
|
||||||
|
|
|
@ -16,7 +16,7 @@ publish_to: "none" # Remove this line if you wish to publish to pub.dev
|
||||||
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
|
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
|
||||||
# In Windows, build-name is used as the major, minor, and patch parts
|
# In Windows, build-name is used as the major, minor, and patch parts
|
||||||
# of the product and file versions while build-number is used as the build suffix.
|
# of the product and file versions while build-number is used as the build suffix.
|
||||||
version: 1.1.112324+1707
|
version: 1.1.112324+1742
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: ">=3.1.4 <4.0.0"
|
sdk: ">=3.1.4 <4.0.0"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue