From 81608eb64993b7d25dd3575bdeaf81aebceb2a23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=9D=8F=E9=BB=91?= Date: Fri, 12 Jul 2019 00:09:47 +0800 Subject: [PATCH] Fix TSchedule --- .../scala/io/izzel/taboolib/module/inject/TScheduleLoader.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/scala/io/izzel/taboolib/module/inject/TScheduleLoader.java b/src/main/scala/io/izzel/taboolib/module/inject/TScheduleLoader.java index b6510bd..6775521 100644 --- a/src/main/scala/io/izzel/taboolib/module/inject/TScheduleLoader.java +++ b/src/main/scala/io/izzel/taboolib/module/inject/TScheduleLoader.java @@ -22,7 +22,7 @@ public class TScheduleLoader implements TabooLibLoader.Loader { static Map> schedules = Maps.newHashMap(); public static void run(Plugin plugin) { - List list = schedules.get(plugin.getName()); + List list = schedules.remove(plugin.getName()); if (list != null) { list.forEach(data -> run(plugin, data.getRunnable(), data.getAnnotation().delay(), data.getAnnotation().period(), data.getAnnotation().async())); }