File tree Expand file tree Collapse file tree
src/me/truemb/discordnotify/utils Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ public void disconnectDiscordBot() {
7575 if (this .getDiscordBot () != null && this .getDiscordBot ().isReady ()) {
7676
7777 //SEND SHUTDOWN MESSAGE TO DISCORD
78- if (!this .instance .getUniversalServer ().isProxy () && !this .instance .getUniversalServer ().isProxySubServer ())
78+ if (!this .instance .getUniversalServer ().isProxy () && !this .instance .getUniversalServer ().isProxySubServer () && this . instance . getConfigManager (). isFeatureEnabled ( FeatureType . ServerStatus ) )
7979 this .announceServerStatus (false );
8080
8181 //ADDONS
@@ -122,7 +122,7 @@ public void prepareDiscordBot() {
122122 this .getDiscordBot ().getJda ().addEventListener (this .broadcastListener );
123123
124124 //SEND START MESSAGE TO DISCORD
125- if (!this .instance .getUniversalServer ().isProxy () && !this .instance .getUniversalServer ().isProxySubServer ())
125+ if (!this .instance .getUniversalServer ().isProxy () && !this .instance .getUniversalServer ().isProxySubServer () && this . instance . getConfigManager (). isFeatureEnabled ( FeatureType . ServerStatus ) )
126126 this .announceServerStatus (true );
127127
128128 this .instance .getUniversalServer ().getLogger ().info ("Connected with Discord BOT." );
You can’t perform that action at this time.
0 commit comments