mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2025-02-16 04:31:22 +01:00
Updated plugin logger
This commit is contained in:
parent
8f70b21cde
commit
6aa0fdcc30
@ -26,7 +26,7 @@ public class Magnetic extends EcoEnchant implements EcoRunnable {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
private HashMap<Player, Integer> players = new HashMap<>();
|
private final HashMap<Player, Integer> players = new HashMap<>();
|
||||||
private double initialDistance = 1;
|
private double initialDistance = 1;
|
||||||
private double bonus = 1;
|
private double bonus = 1;
|
||||||
|
|
||||||
|
@ -1,17 +1,20 @@
|
|||||||
package com.willfp.ecoenchants.util;
|
package com.willfp.ecoenchants.util;
|
||||||
|
|
||||||
|
import com.willfp.ecoenchants.EcoEnchantsPlugin;
|
||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
|
|
||||||
public class Logger {
|
public class Logger {
|
||||||
|
private static final EcoEnchantsPlugin INSTANCE = EcoEnchantsPlugin.getInstance();
|
||||||
|
|
||||||
public static void info(String message) {
|
public static void info(String message) {
|
||||||
Bukkit.getLogger().info(StringUtils.translate(message));
|
INSTANCE.getLogger().info(StringUtils.translate(message));
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void warn(String message) {
|
public static void warn(String message) {
|
||||||
Bukkit.getLogger().warning(StringUtils.translate(message));
|
INSTANCE.getLogger().warning(StringUtils.translate(message));
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void error(String message) {
|
public static void error(String message) {
|
||||||
Bukkit.getLogger().severe(StringUtils.translate(message));
|
INSTANCE.getLogger().severe(StringUtils.translate(message));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user