Skip to content

Commit

Permalink
use ticks instead of milliseconds with the scheduler
Browse files Browse the repository at this point in the history
  • Loading branch information
grandwazir committed May 30, 2013
1 parent 6bcf71d commit 263d574
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
Changelog for Hearthstone (v1.4.1-SNAPSHOT)

2013-05-30 18:12:06 +0100 set static variables on ScheduledTeleport (James Richardson)
2013-05-30 18:10:48 +0100 remove prefix from old keys (James Richardson)
2013-05-30 18:08:00 +0100 set command now breaks correctly and scheduled teleport schedules itself (James Richardson)
2013-05-30 18:03:38 +0100 prevent players setting homes at spawn (James Richardson)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ private boolean isLocationObstructed() {
private void schedule() {
if (this.player.hasPermission("hearthstone.teleport.warmup")) {
this.player.sendMessage(this.getMessage("notice.teleport-warmup", ScheduledTeleport.warmupTime));
BUKKIT_SCHEDULER.scheduleSyncDelayedTask(ScheduledTeleport.getPlugin(), this, ScheduledTeleport.warmup);
BUKKIT_SCHEDULER.scheduleSyncDelayedTask(ScheduledTeleport.getPlugin(), this, ((ScheduledTeleport.warmup / 1000) * 20));
} else {
BUKKIT_SCHEDULER.scheduleSyncDelayedTask(plugin, this);
}
Expand Down

0 comments on commit 263d574

Please sign in to comment.