Merge branch 'general-devel' into feature/default-perms
This commit is contained in:
commit
c4dcf9bec1
2 changed files with 15 additions and 2 deletions
13
.github/workflows/wiki-notify.yml
vendored
Normal file
13
.github/workflows/wiki-notify.yml
vendored
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
name: Wiki Changed Discord Notification
|
||||||
|
|
||||||
|
on:
|
||||||
|
gollum
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
notify:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: 'oznu/gh-wiki-edit-discord-notification@dfc866fd048f04c239ad113eef3c6c73504d333e'
|
||||||
|
with:
|
||||||
|
discord-webhook-url: ${{ secrets.DISCORD_WEBHOOK_WIKI_EDIT }}
|
||||||
|
ignore-collaborators: false
|
||||||
|
|
@ -1469,8 +1469,8 @@ namespace TShockAPI
|
||||||
Hooks.PlayerHooks.OnPlayerLogout(tsplr);
|
Hooks.PlayerHooks.OnPlayerLogout(tsplr);
|
||||||
}
|
}
|
||||||
|
|
||||||
// The last player will leave after this hook is executed.
|
// If this is the last player online, update the console title and save the world if needed
|
||||||
if (Utils.GetActivePlayerCount() == 1)
|
if (Utils.GetActivePlayerCount() == 0)
|
||||||
{
|
{
|
||||||
if (Config.Settings.SaveWorldOnLastPlayerExit)
|
if (Config.Settings.SaveWorldOnLastPlayerExit)
|
||||||
SaveManager.Instance.SaveWorld();
|
SaveManager.Instance.SaveWorld();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue