mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2025-06-11 21:43:54 +00:00
Lots of formatting fixes and removal of useless things (#10)
This commit is contained in:
@ -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);
|
||||
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user