Dieser Commit ist enthalten in:
Ursprung
d10cd22ecd
Commit
ea9b11c263
@ -50,7 +50,7 @@ dependencies {
|
|||||||
compileOnly 'com.viaversion:viaversion-api:4.3.1'
|
compileOnly 'com.viaversion:viaversion-api:4.3.1'
|
||||||
compileOnly 'it.unimi.dsi:fastutil:8.5.6'
|
compileOnly 'it.unimi.dsi:fastutil:8.5.6'
|
||||||
compileOnly swdep("WorldEdit-1.12")
|
compileOnly swdep("WorldEdit-1.12")
|
||||||
implementation 'net.wesjd:anvilgui:1.5.3-SNAPSHOT'
|
implementation 'net.wesjd:anvilgui:1.6.3-SNAPSHOT'
|
||||||
|
|
||||||
compileOnly 'org.projectlombok:lombok:1.18.22'
|
compileOnly 'org.projectlombok:lombok:1.18.22'
|
||||||
annotationProcessor 'org.projectlombok:lombok:1.18.22'
|
annotationProcessor 'org.projectlombok:lombok:1.18.22'
|
||||||
|
@ -25,6 +25,7 @@ import org.bukkit.Material;
|
|||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
import java.util.Collections;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.function.Consumer;
|
import java.util.function.Consumer;
|
||||||
|
|
||||||
@ -78,10 +79,10 @@ public class SWAnvilInv {
|
|||||||
builder.open(player);
|
builder.open(player);
|
||||||
}
|
}
|
||||||
|
|
||||||
private AnvilGUI.Response onResult(Player player, String s) {
|
private List<AnvilGUI.ResponseAction> onResult(Player player, String s) {
|
||||||
if(s.startsWith("»"))
|
if(s.startsWith("»"))
|
||||||
s = s.substring(1);
|
s = s.substring(1);
|
||||||
callback.accept(s);
|
callback.accept(s);
|
||||||
return AnvilGUI.Response.close();
|
return Collections.singletonList(AnvilGUI.ResponseAction.close());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren