From 7272b58d7237f2e90389fdbdabc4cbfd142936d5 Mon Sep 17 00:00:00 2001 From: Ghost_chu <2908803755@qq.com> Date: Mon, 6 Apr 2020 16:03:34 +0800 Subject: [PATCH] Fix typo in MsgUtil Former-commit-id: 94462f5683e79243067e5c87a545b0bcb5bddd2f --- .../java/org/maxgamer/quickshop/util/MsgUtil.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/main/java/org/maxgamer/quickshop/util/MsgUtil.java b/src/main/java/org/maxgamer/quickshop/util/MsgUtil.java index 2386237ed..c8f1da6ea 100644 --- a/src/main/java/org/maxgamer/quickshop/util/MsgUtil.java +++ b/src/main/java/org/maxgamer/quickshop/util/MsgUtil.java @@ -95,8 +95,7 @@ public class MsgUtil { .getLogger() .info("Cleaning purchase messages from the database that are over a week old..."); // 604800,000 msec = 1 week. - long weekAgo = System.currentTimeMillis() - 604800000; - plugin.getDatabaseHelper().cleanMessage(weekAgo); + plugin.getDatabaseHelper().cleanMessage(System.currentTimeMillis() - 604800000); } /** @@ -317,7 +316,7 @@ public class MsgUtil { } public static void loadEnchi18n() { - plugin.getLogger().info("Starting loading Enchantment i18n..."); + plugin.getLogger().info("Starting loading enchantments translation..."); File enchi18nFile = new File(plugin.getDataFolder(), "enchi18n.yml"); if (!enchi18nFile.exists()) { plugin.getLogger().info("Creating enchi18n.yml"); @@ -351,13 +350,14 @@ public class MsgUtil { Level.WARNING, "Could not load/save transaction enchname from enchi18n.yml. Skipping."); } - plugin.getLogger().info("Complete to load enchname i18n."); + plugin.getLogger().info("Complete to load enchantments translation."); } /** * Load Itemi18n fron file */ public static void loadItemi18n() { + plugin.getLogger().info("Starting loading items translation..."); File itemi18nFile = new File(plugin.getDataFolder(), "itemi18n.yml"); if (!itemi18nFile.exists()) { plugin.getLogger().info("Creating itemi18n.yml"); @@ -393,11 +393,11 @@ public class MsgUtil { Level.WARNING, "Could not load/save transaction itemname from itemi18n.yml. Skipping."); } - plugin.getLogger().info("Complete to load Itemname i18n."); + plugin.getLogger().info("Complete to load items translation."); } public static void loadPotioni18n() { - plugin.getLogger().info("Starting loading Potion i18n..."); + plugin.getLogger().info("Starting loading potions translation..."); File potioni18nFile = new File(plugin.getDataFolder(), "potioni18n.yml"); if (!potioni18nFile.exists()) { plugin.getLogger().info("Creating potioni18n.yml"); @@ -430,7 +430,7 @@ public class MsgUtil { Level.WARNING, "Could not load/save transaction potionname from potioni18n.yml. Skipping."); } - plugin.getLogger().info("Complete to load potionname i18n."); + plugin.getLogger().info("Complete to load potions effect translation."); } /**