Skip to content

Commit

Permalink
Disable interval if set to 0 ticks
Browse files Browse the repository at this point in the history
  • Loading branch information
osvein committed Apr 19, 2015
1 parent 5936dbb commit 7a42414
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/no/atc/osvein/bukkit/tips/TipsPlugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ public void onEnable() {
this.loadTips();

// schedule broadcasts
this.task = this.new Broadcaster().runTaskTimer(this, 0L, interval);
if (interval > 0)
this.task = this.new Broadcaster().runTaskTimer(this, 0L, interval);

// log legal notices
String fullName = this.getDescription().getFullName();
Expand Down

0 comments on commit 7a42414

Please sign in to comment.