reapply issue is fixed, remove debug
This commit is contained in:
parent
79f0355288
commit
0f1b512dac
@ -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()));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user