Skip to content

Commit

Permalink
fix(token): If token isn't specified then print the message before di…
Browse files Browse the repository at this point in the history
…sabling the plugin
  • Loading branch information
Zielin0 committed Jan 11, 2022
1 parent c0227de commit 520a1b8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ public void onEnable() {

String botToken = getConfig().getString("BOT_TOKEN");
if (botToken == null) {
getServer().getPluginManager().disablePlugin(this);
getLogger().severe(ChatColor.RED + "Please provide a BOT_TOKEN in the config.yml file.");
getServer().getPluginManager().disablePlugin(this);
return;
}

Expand Down

0 comments on commit 520a1b8

Please sign in to comment.