From 1dbf68af9ca391dcac5dd127e22d78950cea49ab Mon Sep 17 00:00:00 2001 From: Eric Date: Tue, 24 Jul 2018 18:15:26 +0200 Subject: [PATCH] Fix typos --- src/main/java/de/epiceric/shopchest/config/Config.java | 6 +++--- src/main/java/de/epiceric/shopchest/sql/Database.java | 2 +- src/main/resources/config.yml | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/de/epiceric/shopchest/config/Config.java b/src/main/java/de/epiceric/shopchest/config/Config.java index c1e8f05..3ef9c26 100644 --- a/src/main/java/de/epiceric/shopchest/config/Config.java +++ b/src/main/java/de/epiceric/shopchest/config/Config.java @@ -163,7 +163,7 @@ public class Config { /** * Whether buys and sells should be logged in the database **/ - public static boolean enableEcomomyLog; + public static boolean enableEconomyLog; /** * Whether WorldGuard integration should be enabled @@ -484,8 +484,8 @@ public class Config { enableQualityMode = plugin.getConfig().getBoolean("enable-quality-mode"); enableHologramInteraction = plugin.getConfig().getBoolean("enable-hologram-interaction"); enableDebugLog = plugin.getConfig().getBoolean("enable-debug-log"); - enableEcomomyLog = plugin.getConfig().getBoolean("enable-economy-log"); - cleanupEconomyLogDays = plugin.getConfig().getInt("cleanup-ecomomy-log-days"); + enableEconomyLog = plugin.getConfig().getBoolean("enable-economy-log"); + cleanupEconomyLogDays = plugin.getConfig().getInt("cleanup-economy-log-days"); enableWorldGuardIntegration = plugin.getConfig().getBoolean("enable-worldguard-integration"); enableTownyIntegration = plugin.getConfig().getBoolean("enable-towny-integration"); enableAuthMeIntegration = plugin.getConfig().getBoolean("enable-authme-integration"); diff --git a/src/main/java/de/epiceric/shopchest/sql/Database.java b/src/main/java/de/epiceric/shopchest/sql/Database.java index db3ccd7..28fb5a4 100644 --- a/src/main/java/de/epiceric/shopchest/sql/Database.java +++ b/src/main/java/de/epiceric/shopchest/sql/Database.java @@ -391,7 +391,7 @@ public abstract class Database { * @param callback Callback that - if succeeded - returns {@code null} */ public void logEconomy(final Player executor, final ItemStack product, final OfflinePlayer vendor, final ShopType shopType, final Location location, final double price, final ShopBuySellEvent.Type type, final Callback callback) { - if (Config.enableEcomomyLog) { + if (Config.enableEconomyLog) { new BukkitRunnable() { @Override public void run() { diff --git a/src/main/resources/config.yml b/src/main/resources/config.yml index cf9b321..573304b 100644 --- a/src/main/resources/config.yml +++ b/src/main/resources/config.yml @@ -43,7 +43,7 @@ enable-economy-log: false # Sets the time limit for cleaning up the economy log in days. # All log entries older than this will be deleted on server start. # Set this to 0 in order to disable this feature. -cleanup-ecomomy-log-days: 30 +cleanup-economy-log-days: 30 # Set whether a debug log file should be created. # The file may get large! Please enable this setting when reporting bugs.