Use correct value

This commit is contained in:
Trent Hensler 2017-12-19 00:22:00 -08:00
parent a907dab432
commit ea36ee37a2

View File

@ -366,7 +366,7 @@ public class EssentialsPlayerListener implements Listener {
Date banExpiry = banEntry.getExpiration();
if (banExpiry != null) {
String expiry = DateUtil.formatDateDiff(banExpiry.getTime());
event.setKickMessage(tl("tempbanJoin", banExpiry.getTime(), banEntry.getReason()));
event.setKickMessage(tl("tempbanJoin", expiry, banEntry.getReason()));
} else {
event.setKickMessage(tl("banJoin", banEntry.getReason()));
}