Permalink
Browse files

fixed hold times?, build Preview 10b

  • Loading branch information...
1 parent fc72187 commit ed6f0bb4e92c0468cb182ada9c7feecb76a263ca @Animosity committed Mar 7, 2011
Showing with 6 additions and 6 deletions.
  1. BIN beta/preview/CraftIRC.jar
  2. +5 −5 com/ensifera/animosity/craftirc/CraftIRC.java
  3. +1 −1 plugin.yml
Binary file not shown.
@@ -136,27 +136,27 @@ public void onEnable() {
Date now = new Date();
if (cHold("chat") > 0) {
hold.put(HoldType.CHAT, true);
- holdTimer.schedule(new RemoveHoldTask(this, HoldType.CHAT), now.getTime() + cHold("chat"));
+ holdTimer.schedule(new RemoveHoldTask(this, HoldType.CHAT), cHold("chat"));
} else
hold.put(HoldType.CHAT, false);
if (cHold("joins") > 0) {
hold.put(HoldType.JOINS, true);
- holdTimer.schedule(new RemoveHoldTask(this, HoldType.JOINS), now.getTime() + cHold("joins"));
+ holdTimer.schedule(new RemoveHoldTask(this, HoldType.JOINS), cHold("joins"));
} else
hold.put(HoldType.JOINS, false);
if (cHold("quits") > 0) {
hold.put(HoldType.QUITS, true);
- holdTimer.schedule(new RemoveHoldTask(this, HoldType.QUITS), now.getTime() + cHold("quits"));
+ holdTimer.schedule(new RemoveHoldTask(this, HoldType.QUITS), cHold("quits"));
} else
hold.put(HoldType.QUITS, false);
if (cHold("kicks") > 0) {
hold.put(HoldType.KICKS, true);
- holdTimer.schedule(new RemoveHoldTask(this, HoldType.KICKS), now.getTime() + cHold("kicks"));
+ holdTimer.schedule(new RemoveHoldTask(this, HoldType.KICKS), cHold("kicks"));
} else
hold.put(HoldType.KICKS, false);
if (cHold("bans") > 0) {
hold.put(HoldType.BANS, true);
- holdTimer.schedule(new RemoveHoldTask(this, HoldType.BANS), now.getTime() + cHold("bans"));
+ holdTimer.schedule(new RemoveHoldTask(this, HoldType.BANS), cHold("bans"));
} else
hold.put(HoldType.BANS, false);
View
@@ -1,6 +1,6 @@
name: CraftIRC
main: com.ensifera.animosity.craftirc.CraftIRC
-version: 2.0 Preview 10
+version: 2.0 Preview 10b
commands:
irc:
description: Sends a message to all IRC channels

0 comments on commit ed6f0bb

Please sign in to comment.