reapply issue is fixed, remove debug

This commit is contained in:
ArcticZeroo 2018-01-09 20:59:52 -05:00 committed by Alexander Meech
parent 79f0355288
commit 0f1b512dac

View File

@ -318,22 +318,15 @@ public abstract class PunishPage extends ShopPageBase<Punish, PunishShop>
return;
}
Bukkit.broadcastMessage("Remaining: " + punishment.GetRemaining());
Bukkit.broadcastMessage("In hours: " + (long) Math.floor(punishment.GetRemaining() / UtilTime.TimeUnit.HOURS.getMilliseconds()));
Bukkit.broadcastMessage("Is permanent: " + ((punishment.GetRemaining() < 0) ? "yes" : "no"));
_reason = punishment.GetReason() + " - Reapplied";
if ('c' != 'c')
if (punishment.GetRemaining() == -1)
{
_reason = punishment.GetReason() + " - Reapplied";
if (punishment.GetRemaining() == -1)
{
doPunishment(punishment.GetCategory(), punishment.GetSeverity(), -1);
}
else
{
doPunishment(punishment.GetCategory(), punishment.GetSeverity(), (long) Math.floor(punishment.GetRemaining() / UtilTime.TimeUnit.HOURS.getMilliseconds()));
}
doPunishment(punishment.GetCategory(), punishment.GetSeverity(), -1);
}
else
{
doPunishment(punishment.GetCategory(), punishment.GetSeverity(), (long) Math.floor(punishment.GetRemaining() / UtilTime.TimeUnit.HOURS.getMilliseconds()));
}
}