mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2024-11-24 19:45:43 +01:00
Don't start an announcer task if there are no scripts
This commit is contained in:
parent
275cba0799
commit
aa74e02f9f
@ -606,7 +606,9 @@ public class DungeonsXL extends BRPlugin {
|
||||
* start a new AnnouncerTask
|
||||
*/
|
||||
public void startAnnouncerTask(long period) {
|
||||
announcerTask = new AnnouncerTask(announcers).runTaskTimer(this, 0L, period);
|
||||
if (!announcers.getAnnouncers().isEmpty()) {
|
||||
announcerTask = new AnnouncerTask(announcers).runTaskTimer(this, 0L, period);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user