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 66
77 <groupId >xyz.theprogramsrc</groupId >
88 <artifactId >SuperCoreAPI</artifactId >
9- <version >5.0.0 -SNAPSHOT</version >
9+ <version >5.0.1 -SNAPSHOT</version >
1010 <packaging >jar</packaging >
1111
1212 <name >SuperCoreAPI</name >
Original file line number Diff line number Diff line change 2424 */
2525package xyz .theprogramsrc .supercoreapi .global .dependencies ;
2626
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-
3427import java .io .File ;
3528import java .io .InputStream ;
3629import java .net .MalformedURLException ;
4033import java .nio .file .Path ;
4134import java .security .MessageDigest ;
4235import 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 ;
4442import java .util .concurrent .TimeUnit ;
4543
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+
4651/**
4752 * Responsible for loading runtime dependencies.
4853 */
Original file line number Diff line number Diff line change 11package xyz .theprogramsrc .supercoreapi .global .placeholders ;
22
3- import org .bukkit .entity .Player ;
4-
53import java .util .Collection ;
64import java .util .LinkedList ;
75import java .util .Map ;
Original file line number Diff line number Diff line change 11package xyz .theprogramsrc .supercoreapi .spigot .utils .tasks ;
22
3+ import org .bukkit .Bukkit ;
34import org .bukkit .scheduler .BukkitScheduler ;
45import org .bukkit .scheduler .BukkitTask ;
6+
57import xyz .theprogramsrc .supercoreapi .global .objects .RecurringTask ;
68import xyz .theprogramsrc .supercoreapi .spigot .SpigotModule ;
79import xyz .theprogramsrc .supercoreapi .spigot .SpigotPlugin ;
@@ -98,7 +100,8 @@ public void start() {
98100 this .task = builder .get ();
99101 }
100102
101- if (this .task .isCancelled ()){
103+
104+ if (!Bukkit .getScheduler ().isCurrentlyRunning (this .task .getTaskId ())){
102105 this .task = builder .get ();
103106 }
104107 }
You can’t perform that action at this time.
0 commit comments