mirror of
https://github.com/JamesPeters98/ChestsPlusPlus.git
synced 2024-11-13 06:05:43 +01:00
Fixed Anvil UI not working
Updated AnvilGUI.
This commit is contained in:
parent
f6c07e8db1
commit
630cbbf015
@ -8,7 +8,7 @@ MAVEN_DIR="$HOME/.m2"
|
||||
CRAFTBUKKIT="${MAVEN_DIR}/repository/org/bukkit/craftbukkit"
|
||||
|
||||
#Versions
|
||||
array=("1.16.4" "1.16.3" "1.16.1" "1.15.2" "1.14.4")
|
||||
array=("1.16.5" "1.16.4" "1.16.3" "1.16.1" "1.15.2" "1.14.4")
|
||||
|
||||
#Download BuildTools jar
|
||||
curl -s -o BuildTools.jar https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar
|
||||
|
@ -45,6 +45,11 @@
|
||||
<id>jitpack.io</id>
|
||||
<url>https://jitpack.io</url>
|
||||
</repository>
|
||||
|
||||
<repository>
|
||||
<id>codemc-snapshots</id>
|
||||
<url>https://repo.codemc.io/repository/maven-snapshots/</url>
|
||||
</repository>
|
||||
</repositories>
|
||||
|
||||
<dependencies>
|
||||
@ -81,9 +86,9 @@
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.github.WesJD.AnvilGUI</groupId>
|
||||
<groupId>net.wesjd</groupId>
|
||||
<artifactId>anvilgui</artifactId>
|
||||
<version>master-SNAPSHOT</version>
|
||||
<version>1.4.0-SNAPSHOT</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
@ -162,7 +167,7 @@
|
||||
<artifactSet>
|
||||
<includes>
|
||||
<include>fr.minuskube.inv*:*</include>
|
||||
<include>com.github.WesJD.AnvilGUI*:*</include>
|
||||
<include>net.wesjd:anvilgui*</include>
|
||||
<include>org.bstats*:*</include>
|
||||
<include>com.jamesdpeters.minecraft.chests</include>
|
||||
</includes>
|
||||
@ -177,10 +182,10 @@
|
||||
<pattern>fr.minuskube.inv</pattern>
|
||||
<shadedPattern>com.jamesdpeters.minecraft.chests</shadedPattern>
|
||||
</relocation>
|
||||
<relocation>
|
||||
<pattern>com.github.WesJD.AnvilGUI</pattern>
|
||||
<shadedPattern>com.jamesdpeters.minecraft.chests</shadedPattern>
|
||||
</relocation>
|
||||
<!-- <relocation>-->
|
||||
<!-- <pattern>net.wesjd.anvilgui</pattern>-->
|
||||
<!-- <shadedPattern>com.jamesdpeters.minecraft.chests</shadedPattern>-->
|
||||
<!-- </relocation>-->
|
||||
</relocations>
|
||||
</configuration>
|
||||
|
||||
|
@ -7,10 +7,10 @@ import java.util.function.BiFunction;
|
||||
|
||||
public class TextInputUI {
|
||||
|
||||
|
||||
public static void getInput(Player player, String title, BiFunction<Player, String, AnvilGUI.Response> responseBiFunction) {
|
||||
new AnvilGUI.Builder()
|
||||
.onComplete(responseBiFunction)
|
||||
.text("Enter Name")
|
||||
.title(title)
|
||||
.plugin(ChestsPlusPlus.PLUGIN)
|
||||
.open(player);
|
||||
|
Loading…
Reference in New Issue
Block a user