Remove API module

This commit is contained in:
Len
2022-08-07 17:28:38 +02:00
parent aeb6d79495
commit 5ccd5b6f0c
34 changed files with 88 additions and 263 deletions
@@ -0,0 +1,8 @@
package com.alttd.playershops.utils;
public class AMath {
public static double round (double value, int precision) {
int scale = (int) Math.pow(10, precision);
return (double) Math.round(value * scale) / scale;
}
}
@@ -0,0 +1,29 @@
package com.alttd.playershops.utils;
import net.md_5.bungee.api.ChatColor;
import org.bukkit.Bukkit;
import java.util.logging.Level;
public class Logger
{
public static void info(String str) {
log(Level.INFO,"&e" + str);
}
public static void warn(String str) {
log(Level.SEVERE,"&6" + str);
}
public static void severe(String str) {
log(Level.SEVERE,"&c" + str);
}
public static void log(Level level, String str) {
Bukkit.getLogger().log(level,
ChatColor.translateAlternateColorCodes('&',
"&r " + str));
}
}