File tree Expand file tree Collapse file tree 4 files changed +18
-12
lines changed
src/main/java/xyz/theprogramsrc/supercoreapi Expand file tree Collapse file tree 4 files changed +18
-12
lines changed Original file line number Diff line number Diff line change 6
6
7
7
<groupId >xyz.theprogramsrc</groupId >
8
8
<artifactId >SuperCoreAPI</artifactId >
9
- <version >5.0.0 -SNAPSHOT</version >
9
+ <version >5.0.1 -SNAPSHOT</version >
10
10
<packaging >jar</packaging >
11
11
12
12
<name >SuperCoreAPI</name >
Original file line number Diff line number Diff line change 24
24
*/
25
25
package xyz .theprogramsrc .supercoreapi .global .dependencies ;
26
26
27
- import com .google .common .collect .ImmutableSet ;
28
- import com .google .common .io .ByteStreams ;
29
- import xyz .theprogramsrc .supercoreapi .SuperPlugin ;
30
- import xyz .theprogramsrc .supercoreapi .global .dependencies .classloader .IsolatedClassLoader ;
31
- import xyz .theprogramsrc .supercoreapi .global .dependencies .classloader .PluginClassLoader ;
32
- import xyz .theprogramsrc .supercoreapi .global .utils .Utils ;
33
-
34
27
import java .io .File ;
35
28
import java .io .InputStream ;
36
29
import java .net .MalformedURLException ;
40
33
import java .nio .file .Path ;
41
34
import java .security .MessageDigest ;
42
35
import java .security .NoSuchAlgorithmException ;
43
- import java .util .*;
36
+ import java .util .ArrayList ;
37
+ import java .util .Arrays ;
38
+ import java .util .Base64 ;
39
+ import java .util .HashMap ;
40
+ import java .util .List ;
41
+ import java .util .Map ;
44
42
import java .util .concurrent .TimeUnit ;
45
43
44
+ import com .google .common .collect .ImmutableSet ;
45
+ import com .google .common .io .ByteStreams ;
46
+
47
+ import xyz .theprogramsrc .supercoreapi .SuperPlugin ;
48
+ import xyz .theprogramsrc .supercoreapi .global .dependencies .classloader .IsolatedClassLoader ;
49
+ import xyz .theprogramsrc .supercoreapi .global .dependencies .classloader .PluginClassLoader ;
50
+
46
51
/**
47
52
* Responsible for loading runtime dependencies.
48
53
*/
Original file line number Diff line number Diff line change 1
1
package xyz .theprogramsrc .supercoreapi .global .placeholders ;
2
2
3
- import org .bukkit .entity .Player ;
4
-
5
3
import java .util .Collection ;
6
4
import java .util .LinkedList ;
7
5
import java .util .Map ;
Original file line number Diff line number Diff line change 1
1
package xyz .theprogramsrc .supercoreapi .spigot .utils .tasks ;
2
2
3
+ import org .bukkit .Bukkit ;
3
4
import org .bukkit .scheduler .BukkitScheduler ;
4
5
import org .bukkit .scheduler .BukkitTask ;
6
+
5
7
import xyz .theprogramsrc .supercoreapi .global .objects .RecurringTask ;
6
8
import xyz .theprogramsrc .supercoreapi .spigot .SpigotModule ;
7
9
import xyz .theprogramsrc .supercoreapi .spigot .SpigotPlugin ;
@@ -98,7 +100,8 @@ public void start() {
98
100
this .task = builder .get ();
99
101
}
100
102
101
- if (this .task .isCancelled ()){
103
+
104
+ if (!Bukkit .getScheduler ().isCurrentlyRunning (this .task .getTaskId ())){
102
105
this .task = builder .get ();
103
106
}
104
107
}
You can’t perform that action at this time.
0 commit comments