Merge pull request #503 from Maxetto/patch-1

Fix /fawe version showing 2016.
This commit is contained in:
Jesse Boyd 2017-04-17 22:11:52 +10:00 committed by GitHub
commit 13c7e77be2

View File

@ -35,7 +35,7 @@ public class Reload extends FaweCommand {
MainUtil.sendMessage(player, "No version information available.");
return false;
}
Date date = new GregorianCalendar(2000 + version.year - 1, version.month - 1, version.day).getTime();
Date date = new GregorianCalendar(2000 + version.year, version.month - 1, version.day).getTime();
MainUtil.sendMessage(player, "Version Date: " + date.toLocaleString());
MainUtil.sendMessage(player, "Version Commit: " + Integer.toHexString(version.hash));
MainUtil.sendMessage(player, "Version Build: #" + version.build);