From 5e86fa42b2d01c19cecd2ea2d069b329e6938f3a Mon Sep 17 00:00:00 2001 From: George Hotten Date: Thu, 1 Feb 2024 16:29:09 +0000 Subject: [PATCH] 1.3.1 --- README.md | 4 ++-- build.gradle | 19 ++++++++++++++----- jitpack.yml | 7 ------- src/main/java/uk/hotten/gxui/GUIItem.java | 3 ++- 4 files changed, 18 insertions(+), 15 deletions(-) delete mode 100644 jitpack.yml diff --git a/README.md b/README.md index 3e56d35..e4a3974 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,3 @@ -# GxGUI +# GxUI -Gxorge's GUI library updated for 1.19 by https://true-og.net +My GUI Lib. To use, use the following repo URL: `https://repo.hotten.cloud/releases`, the following package: `uk.hotten.gxui`, and artifact: `gxui:1.3.1`. diff --git a/build.gradle b/build.gradle index 31f5a59..3b89c04 100644 --- a/build.gradle +++ b/build.gradle @@ -15,7 +15,7 @@ java { } group = "uk.hotten.gxui" // Declare bundle identifier. -version = "1.1" // Declare plugin version (will be in .jar). +version = "1.3.1" // Declare plugin version (will be in .jar). def apiVersion = "1.19" // Declare minecraft server target version. @@ -97,12 +97,21 @@ tasks.withType(JavaCompile).configureEach { } publishing { + repositories { + maven { + name = "hottenRepo" + url = "https://repo.hotten.cloud/releases" + credentials(PasswordCredentials) + authentication { + basic(BasicAuthentication) + } + } + } publications { maven(MavenPublication) { - groupId = 'uk.hotten.gxui' - artifactId = 'gxgui' - version = '1.1' - + groupId = "uk.hotten.gxui" + artifactId = "gxui" + version = "1.3.1" from components.java } } diff --git a/jitpack.yml b/jitpack.yml deleted file mode 100644 index bc5f0b4..0000000 --- a/jitpack.yml +++ /dev/null @@ -1,7 +0,0 @@ -jdk: - - 17.0.8 -before_install: - - sdk install java 17.0.8-graalce - - sdk use java 17.0.8-graalce -install: - - ./gradlew build publishToMavenLocal \ No newline at end of file diff --git a/src/main/java/uk/hotten/gxui/GUIItem.java b/src/main/java/uk/hotten/gxui/GUIItem.java index 9c59fac..818b3a9 100644 --- a/src/main/java/uk/hotten/gxui/GUIItem.java +++ b/src/main/java/uk/hotten/gxui/GUIItem.java @@ -31,6 +31,7 @@ public class GUIItem { private String skullOwner; private HashMap enchantments = new HashMap<>(); + @Getter @Setter private boolean unbreakable = false; @Getter @Setter private GUIButton button; @@ -104,8 +105,8 @@ public class GUIItem { m.setOwningPlayer(Bukkit.getOfflinePlayer(skullOwner)); if (!displayName.equals("Not Set")) m.displayName(displayNameTextComponent); + i.setUnbreakable(unbreakable); m.lore(loreTextComponent); - i.setUnbreakable(true); i.setItemMeta(m); } } catch (Exception e) {