mirror of
https://github.com/TotalFreedomMC/TotalFreedomMod.git
synced 2025-07-04 04:51:42 +00:00
Forgot to optimize this. (#12)
This commit is contained in:
parent
6a09b23331
commit
7e524da928
1 changed files with 2 additions and 6 deletions
|
@ -31,13 +31,9 @@ public class Discord extends FreedomService
|
|||
|
||||
public void startBot()
|
||||
{
|
||||
if (!Strings.isNullOrEmpty(ConfigEntry.DISCORD_TOKEN.getString()))
|
||||
enabled = !Strings.isNullOrEmpty(ConfigEntry.DISCORD_TOKEN.getString());
|
||||
if (!enabled)
|
||||
{
|
||||
enabled = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
enabled = false;
|
||||
return;
|
||||
}
|
||||
if (bot != null)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue