diff --git a/.idea/.gitignore b/.idea/.gitignore deleted file mode 100644 index 26d3352..0000000 --- a/.idea/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -# Default ignored files -/shelf/ -/workspace.xml diff --git a/.idea/compiler.xml b/.idea/compiler.xml deleted file mode 100644 index d7afc93..0000000 --- a/.idea/compiler.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/encodings.xml b/.idea/encodings.xml deleted file mode 100644 index aa00ffa..0000000 --- a/.idea/encodings.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml deleted file mode 100644 index 7ae5ed7..0000000 --- a/.idea/inspectionProfiles/Project_Default.xml +++ /dev/null @@ -1,54 +0,0 @@ - - - - \ No newline at end of file diff --git a/.idea/jarRepositories.xml b/.idea/jarRepositories.xml deleted file mode 100644 index 4f3d965..0000000 --- a/.idea/jarRepositories.xml +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/libraries/Maven__com_destroystokyo_paper_paper_api_1_16_4_R0_1_SNAPSHOT.xml b/.idea/libraries/Maven__com_destroystokyo_paper_paper_api_1_16_4_R0_1_SNAPSHOT.xml deleted file mode 100644 index 1ae0fed..0000000 --- a/.idea/libraries/Maven__com_destroystokyo_paper_paper_api_1_16_4_R0_1_SNAPSHOT.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/libraries/Maven__com_google_code_findbugs_jsr305_1_3_9.xml b/.idea/libraries/Maven__com_google_code_findbugs_jsr305_1_3_9.xml deleted file mode 100644 index 0e66824..0000000 --- a/.idea/libraries/Maven__com_google_code_findbugs_jsr305_1_3_9.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/libraries/Maven__com_google_code_gson_gson_2_8_0.xml b/.idea/libraries/Maven__com_google_code_gson_gson_2_8_0.xml deleted file mode 100644 index 6e5d5b7..0000000 --- a/.idea/libraries/Maven__com_google_code_gson_gson_2_8_0.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/libraries/Maven__com_google_guava_guava_21_0.xml b/.idea/libraries/Maven__com_google_guava_guava_21_0.xml deleted file mode 100644 index a923456..0000000 --- a/.idea/libraries/Maven__com_google_guava_guava_21_0.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/libraries/Maven__com_googlecode_json_simple_json_simple_1_1_1.xml b/.idea/libraries/Maven__com_googlecode_json_simple_json_simple_1_1_1.xml deleted file mode 100644 index f3f3738..0000000 --- a/.idea/libraries/Maven__com_googlecode_json_simple_json_simple_1_1_1.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/libraries/Maven__commons_lang_commons_lang_2_6.xml b/.idea/libraries/Maven__commons_lang_commons_lang_2_6.xml deleted file mode 100644 index 2ec8376..0000000 --- a/.idea/libraries/Maven__commons_lang_commons_lang_2_6.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/libraries/Maven__junit_junit_4_10.xml b/.idea/libraries/Maven__junit_junit_4_10.xml deleted file mode 100644 index ed8bf5f..0000000 --- a/.idea/libraries/Maven__junit_junit_4_10.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/libraries/Maven__net_md_5_bungeecord_chat_1_16_R0_3.xml b/.idea/libraries/Maven__net_md_5_bungeecord_chat_1_16_R0_3.xml deleted file mode 100644 index 2019f9a..0000000 --- a/.idea/libraries/Maven__net_md_5_bungeecord_chat_1_16_R0_3.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/libraries/Maven__org_hamcrest_hamcrest_core_1_1.xml b/.idea/libraries/Maven__org_hamcrest_hamcrest_core_1_1.xml deleted file mode 100644 index acdf443..0000000 --- a/.idea/libraries/Maven__org_hamcrest_hamcrest_core_1_1.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/libraries/Maven__org_javassist_javassist_3_26_0_GA.xml b/.idea/libraries/Maven__org_javassist_javassist_3_26_0_GA.xml deleted file mode 100644 index e150186..0000000 --- a/.idea/libraries/Maven__org_javassist_javassist_3_26_0_GA.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/libraries/Maven__org_jetbrains_annotations_20_1_0.xml b/.idea/libraries/Maven__org_jetbrains_annotations_20_1_0.xml deleted file mode 100644 index de125e3..0000000 --- a/.idea/libraries/Maven__org_jetbrains_annotations_20_1_0.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/libraries/Maven__org_ow2_asm_asm_8_0_1.xml b/.idea/libraries/Maven__org_ow2_asm_asm_8_0_1.xml deleted file mode 100644 index 5a04654..0000000 --- a/.idea/libraries/Maven__org_ow2_asm_asm_8_0_1.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/libraries/Maven__org_ow2_asm_asm_analysis_8_0_1.xml b/.idea/libraries/Maven__org_ow2_asm_asm_analysis_8_0_1.xml deleted file mode 100644 index 33917b7..0000000 --- a/.idea/libraries/Maven__org_ow2_asm_asm_analysis_8_0_1.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/libraries/Maven__org_ow2_asm_asm_commons_8_0_1.xml b/.idea/libraries/Maven__org_ow2_asm_asm_commons_8_0_1.xml deleted file mode 100644 index 5e98909..0000000 --- a/.idea/libraries/Maven__org_ow2_asm_asm_commons_8_0_1.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/libraries/Maven__org_ow2_asm_asm_tree_8_0_1.xml b/.idea/libraries/Maven__org_ow2_asm_asm_tree_8_0_1.xml deleted file mode 100644 index a5adaf2..0000000 --- a/.idea/libraries/Maven__org_ow2_asm_asm_tree_8_0_1.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/libraries/Maven__org_reflections_reflections_0_9_12.xml b/.idea/libraries/Maven__org_reflections_reflections_0_9_12.xml deleted file mode 100644 index bedc96e..0000000 --- a/.idea/libraries/Maven__org_reflections_reflections_0_9_12.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/libraries/Maven__org_slf4j_slf4j_api_1_7_25.xml b/.idea/libraries/Maven__org_slf4j_slf4j_api_1_7_25.xml deleted file mode 100644 index 20e8163..0000000 --- a/.idea/libraries/Maven__org_slf4j_slf4j_api_1_7_25.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/libraries/Maven__org_yaml_snakeyaml_1_26.xml b/.idea/libraries/Maven__org_yaml_snakeyaml_1_26.xml deleted file mode 100644 index e998675..0000000 --- a/.idea/libraries/Maven__org_yaml_snakeyaml_1_26.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml deleted file mode 100644 index 17bca28..0000000 --- a/.idea/misc.xml +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml deleted file mode 100644 index ff5c20e..0000000 --- a/.idea/modules.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/.idea/uiDesigner.xml b/.idea/uiDesigner.xml deleted file mode 100644 index e96534f..0000000 --- a/.idea/uiDesigner.xml +++ /dev/null @@ -1,124 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml deleted file mode 100644 index 94a25f7..0000000 --- a/.idea/vcs.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.idea/workspace.xml b/.idea/workspace.xml new file mode 100644 index 0000000..8bb14d8 --- /dev/null +++ b/.idea/workspace.xml @@ -0,0 +1,135 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1607535386097 + + + + + + + \ No newline at end of file diff --git a/src/main/java/io/github/paldiu/simplexcore/future/FutureFactory.java b/src/main/java/io/github/paldiu/simplexcore/future/FutureFactory.java new file mode 100644 index 0000000..32eaa9f --- /dev/null +++ b/src/main/java/io/github/paldiu/simplexcore/future/FutureFactory.java @@ -0,0 +1,17 @@ +package io.github.paldiu.simplexcore.future; + +import java.util.LinkedList; +import java.util.concurrent.CompletionStage; + +public class FutureFactory { + private final T object; + private final LinkedList> tree = new LinkedList<>(); + + public FutureFactory(T object) { + this.object = object; + } + + public T getObject() { + return object; + } +} diff --git a/src/main/java/io/github/paldiu/simplexcore/future/ScheduledTask.java b/src/main/java/io/github/paldiu/simplexcore/future/ScheduledTask.java new file mode 100644 index 0000000..5c20035 --- /dev/null +++ b/src/main/java/io/github/paldiu/simplexcore/future/ScheduledTask.java @@ -0,0 +1,25 @@ +package io.github.paldiu.simplexcore.future; + +import io.github.paldiu.simplexcore.utils.Constants; +import io.github.paldiu.simplexcore.utils.Utilities; +import org.bukkit.Bukkit; +import org.bukkit.scheduler.BukkitTask; + +import java.util.Date; +import java.util.function.Consumer; + +public abstract class ScheduledTask implements Consumer { + protected Date lastRan = new Date(); + + protected ScheduledTask() { + + } + + public Date getLastRan() { + return lastRan; + } + + public void setLastRan(Date lastRan) { + this.lastRan = lastRan; + } +} diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index 6801325..58692bd 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -1,6 +1,6 @@ name: SimplexCore version: ${project.version} -main: pw.coomer.simplexcore.SimplexCore +main: io.github.paldiu.simplexcore.SimplexCore api-version: 1.16 prefix: Simplex authors: [ Paldiu ]