diff options
| author | LMBishop <13875753+LMBishop@users.noreply.github.com> | 2021-06-24 00:55:42 +0100 |
|---|---|---|
| committer | LMBishop <13875753+LMBishop@users.noreply.github.com> | 2021-06-24 00:55:42 +0100 |
| commit | d32d5bd3e3626c49471aa206de2df0d20bd03abb (patch) | |
| tree | 54cccf375225f21f30a33c0976b5f8d55e203077 /common/src | |
| parent | 5e857da1be8a456751bae1d811b9adbd0fcf5def (diff) | |
Fix broken time formatting
- Closes #186
Diffstat (limited to 'common/src')
| -rw-r--r-- | common/src/main/java/com/leonardobishop/quests/common/util/Format.java | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/common/src/main/java/com/leonardobishop/quests/common/util/Format.java b/common/src/main/java/com/leonardobishop/quests/common/util/Format.java deleted file mode 100644 index 410462ee..00000000 --- a/common/src/main/java/com/leonardobishop/quests/common/util/Format.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.leonardobishop.quests.common.util; - -public class Format { - - //TODO reimplement customisation - public static String formatTime(long sec) { - long hours = sec / 3600; - long minutes = (sec % 3600) / 60; - long seconds = ((sec % 3600) % 60) % 60; - -// return Messages.TIME_FORMAT.getMessage() -// .replace("{hours}", String.format("%02d", hours)) -// .replace("{minutes}", String.format("%02d", minutes)) -// .replace("{seconds}", String.format("%02d", seconds)); - return "{houes}h {minutes}m {seconds}s" - .replace("{hours}", String.format("%02d", hours)) - .replace("{minutes}", String.format("%02d", minutes)) - .replace("{seconds}", String.format("%02d", seconds)); - } - -} |
