Skip to content
This repository has been archived by the owner on Oct 14, 2023. It is now read-only.

Commit

Permalink
Changes -> Added file created timer
Browse files Browse the repository at this point in the history
  • Loading branch information
EinfacheSache committed Jul 14, 2023
1 parent f4e46ee commit e879bc3
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ public void run() {
public void run() {
instance.getCore().getExecutorService().submit(() -> {
try {
long startTime = System.currentTimeMillis();
File file = new File("plugins/NeoProtect/debug" + "/" + new Timestamp(System.currentTimeMillis()) + ".yml");
YamlConfiguration configuration = new YamlConfiguration();

Expand Down Expand Up @@ -288,7 +289,7 @@ public void run() {

configuration.save(file);
instance.getCore().getDebugPingResponses().clear();
instance.sendMessage(sender, localization.get("debug.finished.first"));
instance.sendMessage(sender, localization.get("debug.finished.first") + " (took " + (System.currentTimeMillis() - startTime) + "ms)");
instance.sendMessage(sender, localization.get("debug.finished.second") + file.getAbsolutePath() + " " + localization.get("utils.copy"), "COPY_TO_CLIPBOARD", file.getAbsolutePath(), null, null);
instance.getCore().setDebugRunning(false);
} catch (Exception e) {
Expand Down

0 comments on commit e879bc3

Please sign in to comment.