Skip to content

Commit

Permalink
Refined version info in chat
Browse files Browse the repository at this point in the history
  • Loading branch information
toydotgame committed Feb 7, 2021
1 parent 234827c commit 9e20cc8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/io/github/Toydotgame/Thisway.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,11 @@ public boolean onCommand(CommandSender sender, Command command, String label, St
DataStorage.debug = true;
sender.sendMessage(ChatColor.YELLOW + "=== THISWAY DEBUG START ==="); // Debug header in player chat.
sender.sendMessage("Plugin version: " + DataStorage.version);
if(DataStorage.isUpToDate != true) {
sender.sendMessage(ChatColor.RED + "Thisway is not up to date!");
} else; // This is a threat.
if(DataStorage.isUpToDate == true) {
sender.sendMessage(ChatColor.GREEN + "Thisway is up-to-date.");
} else {
sender.sendMessage(ChatColor.RED + "Thisway is not up-to-date!");
}

thisway(sender, args);
sender.sendMessage(ChatColor.YELLOW + "=== THISWAY DEBUG END ==="); // Debug footer.
Expand Down

0 comments on commit 9e20cc8

Please sign in to comment.