diff --git a/.idea/.name b/.idea/.name
new file mode 100644
index 0000000..8d082ba
--- /dev/null
+++ b/.idea/.name
@@ -0,0 +1 @@
+CommandPanels
\ No newline at end of file
diff --git a/.idea/artifacts/CommandPanels.xml b/.idea/artifacts/CommandPanels.xml
new file mode 100644
index 0000000..fab8697
--- /dev/null
+++ b/.idea/artifacts/CommandPanels.xml
@@ -0,0 +1,9 @@
+
+
+ $PROJECT_DIR$/out/artifacts/CommandPanels
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/artifacts/Command_Panels.xml b/.idea/artifacts/Command_Panels.xml
deleted file mode 100644
index d17b089..0000000
--- a/.idea/artifacts/Command_Panels.xml
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
- $PROJECT_DIR$/out/artifacts/Command_Panels
-
-
-
-
-
-
\ No newline at end of file
diff --git a/.idea/compiler.xml b/.idea/compiler.xml
new file mode 100644
index 0000000..5f2fe3a
--- /dev/null
+++ b/.idea/compiler.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/jarRepositories.xml b/.idea/jarRepositories.xml
new file mode 100644
index 0000000..712ab9d
--- /dev/null
+++ b/.idea/jarRepositories.xml
@@ -0,0 +1,20 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/spigot_1_16_4.xml b/.idea/libraries/spigot.xml
similarity index 65%
rename from .idea/libraries/spigot_1_16_4.xml
rename to .idea/libraries/spigot.xml
index c80a683..19a6d11 100644
--- a/.idea/libraries/spigot_1_16_4.xml
+++ b/.idea/libraries/spigot.xml
@@ -1,11 +1,11 @@
-
+
-
+
-
+
\ No newline at end of file
diff --git a/.idea/libraries/spigot_api_1_18_rc3_R0_1_SNAPSHOT.xml b/.idea/libraries/spigot_api_1_18_rc3_R0_1_SNAPSHOT.xml
new file mode 100644
index 0000000..43ca72b
--- /dev/null
+++ b/.idea/libraries/spigot_api_1_18_rc3_R0_1_SNAPSHOT.xml
@@ -0,0 +1,9 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/misc.xml b/.idea/misc.xml
index 0548357..5755a99 100644
--- a/.idea/misc.xml
+++ b/.idea/misc.xml
@@ -1,5 +1,12 @@
+
+
+
diff --git a/.idea/modules.xml b/.idea/modules.xml
index 580e50f..19a4f17 100644
--- a/.idea/modules.xml
+++ b/.idea/modules.xml
@@ -2,7 +2,7 @@
-
+
\ No newline at end of file
diff --git a/Command Panels.iml b/CommandPanels.iml
similarity index 68%
rename from Command Panels.iml
rename to CommandPanels.iml
index 6937f0e..7e2177e 100644
--- a/Command Panels.iml
+++ b/CommandPanels.iml
@@ -1,10 +1,12 @@
-
-
-
+
+
+
+
+
@@ -12,12 +14,13 @@
-
-
+
+
+
\ No newline at end of file
diff --git a/pom.xml b/pom.xml
new file mode 100644
index 0000000..0dc0ce9
--- /dev/null
+++ b/pom.xml
@@ -0,0 +1,16 @@
+
+
+ 4.0.0
+
+ groupId
+ CommandPanels
+ 1.0-SNAPSHOT
+
+
+ 8
+ 8
+
+
+
\ No newline at end of file
diff --git a/resource/plugin.yml b/resource/plugin.yml
index d17417e..71616b6 100644
--- a/resource/plugin.yml
+++ b/resource/plugin.yml
@@ -1,4 +1,4 @@
-version: 3.17.2.0
+version: 3.17.2.1
main: me.rockyhawk.commandpanels.CommandPanels
name: CommandPanels
author: RockyHawk
diff --git a/src/me/rockyhawk/commandpanels/CommandPanels.java b/src/me/rockyhawk/commandpanels/CommandPanels.java
index 5b6d9a8..a627862 100644
--- a/src/me/rockyhawk/commandpanels/CommandPanels.java
+++ b/src/me/rockyhawk/commandpanels/CommandPanels.java
@@ -68,7 +68,6 @@ import java.io.InputStream;
import java.io.Reader;
import java.util.*;
import java.util.concurrent.Callable;
-import java.util.stream.Collectors;
public class CommandPanels extends JavaPlugin{
public YamlConfiguration config;
@@ -501,7 +500,7 @@ public class CommandPanels extends JavaPlugin{
public Reader getReaderFromStream(InputStream initialStream) throws IOException {
//this reads the encrypted resource files in the jar file
- if(legacy.LOCAL_VERSION.lessThanOrEqualTo(MinecraftVersions.v1_13)){
+ if(legacy.LOCAL_VERSION.lessThanOrEqualTo(MinecraftVersions.v1_13) || legacy.LOCAL_VERSION.greaterThanOrEqualTo(MinecraftVersions.v1_18)){
return new Sequence_1_13(this).getReaderFromStream(initialStream);
}else{
return new Sequence_1_14(this).getReaderFromStream(initialStream);
diff --git a/src/me/rockyhawk/commandpanels/api/CommandPanelsAPI.java b/src/me/rockyhawk/commandpanels/api/CommandPanelsAPI.java
index 091809e..a0b5164 100644
--- a/src/me/rockyhawk/commandpanels/api/CommandPanelsAPI.java
+++ b/src/me/rockyhawk/commandpanels/api/CommandPanelsAPI.java
@@ -12,7 +12,9 @@ import java.io.IOException;
import java.util.List;
public class CommandPanelsAPI {
+ //set to public to adjust any public settings within the plugin through the API
public CommandPanels plugin;
+
public CommandPanelsAPI(CommandPanels pl) {
this.plugin = pl;
}
diff --git a/src/me/rockyhawk/commandpanels/ioclasses/Sequence_1_13.java b/src/me/rockyhawk/commandpanels/ioclasses/Sequence_1_13.java
index 223a9f2..ef343fa 100644
--- a/src/me/rockyhawk/commandpanels/ioclasses/Sequence_1_13.java
+++ b/src/me/rockyhawk/commandpanels/ioclasses/Sequence_1_13.java
@@ -1,6 +1,6 @@
package me.rockyhawk.commandpanels.ioclasses;
-//1.13- Imports
+//1.13 and below, 1.18+ Imports
import me.rockyhawk.commandpanels.CommandPanels;
import org.apache.commons.io.IOUtils;
import org.apache.commons.io.input.CharSequenceReader;
diff --git a/src/me/rockyhawk/commandpanels/ioclasses/Sequence_1_14.java b/src/me/rockyhawk/commandpanels/ioclasses/Sequence_1_14.java
index a0e494a..28b874a 100644
--- a/src/me/rockyhawk/commandpanels/ioclasses/Sequence_1_14.java
+++ b/src/me/rockyhawk/commandpanels/ioclasses/Sequence_1_14.java
@@ -1,6 +1,6 @@
package me.rockyhawk.commandpanels.ioclasses;
-//1.14+ Imports
+//1.14-1.17 Imports
import me.rockyhawk.commandpanels.CommandPanels;
import org.bukkit.craftbukkit.libs.org.apache.commons.io.IOUtils;
import org.bukkit.craftbukkit.libs.org.apache.commons.io.input.CharSequenceReader;
diff --git a/src/me/rockyhawk/commandpanels/openpanelsmanager/UtilsPanelsLoader.java b/src/me/rockyhawk/commandpanels/openpanelsmanager/UtilsPanelsLoader.java
index c9b168e..7971550 100644
--- a/src/me/rockyhawk/commandpanels/openpanelsmanager/UtilsPanelsLoader.java
+++ b/src/me/rockyhawk/commandpanels/openpanelsmanager/UtilsPanelsLoader.java
@@ -3,7 +3,6 @@ package me.rockyhawk.commandpanels.openpanelsmanager;
import me.rockyhawk.commandpanels.CommandPanels;
import me.rockyhawk.commandpanels.api.Panel;
import me.rockyhawk.commandpanels.api.PanelClosedEvent;
-import me.rockyhawk.commandpanels.ioclasses.nbt.NBT_1_13;
import org.bukkit.Bukkit;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;