Signed-off-by: Chaoscaot <chaoscaot444@gmail.com>
Dieser Commit ist enthalten in:
Ursprung
36f782f1de
Commit
40ee3209a2
@ -270,7 +270,9 @@ public class SchematicSelector {
|
|||||||
SWAnvilInv swAnvilInv = new SWAnvilInv(player, Core.MESSAGE.parse("SCHEM_SELECTOR_FILTER_ENTER_OWNER", player));
|
SWAnvilInv swAnvilInv = new SWAnvilInv(player, Core.MESSAGE.parse("SCHEM_SELECTOR_FILTER_ENTER_OWNER", player));
|
||||||
swAnvilInv.setItem(Material.PLAYER_HEAD);
|
swAnvilInv.setItem(Material.PLAYER_HEAD);
|
||||||
swAnvilInv.setCallback(s -> {
|
swAnvilInv.setCallback(s -> {
|
||||||
filter.setOwner(SteamwarUser.get(s).getId());
|
if(SteamwarUser.get(s) != null) {
|
||||||
|
filter.setOwner(SteamwarUser.get(s).getId());
|
||||||
|
}
|
||||||
openFilter();
|
openFilter();
|
||||||
});
|
});
|
||||||
swAnvilInv.open();
|
swAnvilInv.open();
|
||||||
@ -335,11 +337,13 @@ public class SchematicSelector {
|
|||||||
|
|
||||||
inv.setItem(7, SWItem.getDye(1), Core.MESSAGE.parse("SCHEM_SELECTOR_CANCEL", player), clickType -> {
|
inv.setItem(7, SWItem.getDye(1), Core.MESSAGE.parse("SCHEM_SELECTOR_CANCEL", player), clickType -> {
|
||||||
filter.reset();
|
filter.reset();
|
||||||
|
depth = 0;
|
||||||
openList(null);
|
openList(null);
|
||||||
});
|
});
|
||||||
inv.setItem(8, SWItem.getDye(10), Core.MESSAGE.parse("SCHEM_SELECTOR_GO", player), clickType -> {
|
inv.setItem(8, SWItem.getDye(10), Core.MESSAGE.parse("SCHEM_SELECTOR_GO", player), clickType -> {
|
||||||
filter.setFilter(true);
|
filter.setFilter(true);
|
||||||
injectable.onFilterApply(this);
|
injectable.onFilterApply(this);
|
||||||
|
depth = 0;
|
||||||
openList(null);
|
openList(null);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren