diff --git a/damnspam.py b/damnspam.py index a86dc97..576f00e 100644 --- a/damnspam.py +++ b/damnspam.py @@ -127,5 +127,7 @@ def onInteract(event): checktime = data["timeout_on"] if powered else data["timeout_off"] if data["last_time"] + checktime < now(): event.setCancelled(True) - plugHeader("DamnSpam") - msg(sender, "&cThis %s has a timeout of %ss." % (btype, checktime)) \ No newline at end of file + plugHeader(sender, "DamnSpam") + msg(sender, "&cThis %s has a timeout of %ss." % (btype, checktime)) + else: + inputs["last_time"] = int(now()) \ No newline at end of file