Lots of formatting fixes and removal of useless things (#10)

This commit is contained in:
Seth
2017-12-27 22:50:39 -07:00
committed by Lemon
parent b931cce3bb
commit 1871451ed6
20 changed files with 355 additions and 738 deletions

View File

@ -415,7 +415,7 @@ public class FUtil
return date.getTime() / 1000L;
}
public static String getNmsVersion()
public static String getNMSVersion()
{
String packageName = Bukkit.getServer().getClass().getPackage().getName();
return packageName.substring(packageName.lastIndexOf('.') + 1);

View File

@ -19,7 +19,7 @@ import me.totalfreedom.totalfreedommod.TotalFreedomMod;
public class History
{
public static final DateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
public static final DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
public static void reportHistory(final CommandSender sender, final String username)
{
@ -74,7 +74,7 @@ public class History
for (int i = 1; i < oldNames.length; i++)
{
Date date = new Date(oldNames[i].getChangedToAt());
String formattedDate = df.format(date);
String formattedDate = dateFormat.format(date);
FSync.playerMsg(sender, ChatColor.BLUE + formattedDate + ChatColor.GOLD + " changed to " + ChatColor.GREEN + oldNames[i].getName());
}
}