Code Cleanup
Dieser Commit ist enthalten in:
Ursprung
ee7e68eaae
Commit
fddfe288dc
@ -45,9 +45,7 @@ public class InventoryHandler implements BungeeHandler {
|
|||||||
for (int i = 0; i < length; i++) {
|
for (int i = 0; i < length; i++) {
|
||||||
JsonObject itemJson = array.get(i).getAsJsonObject();
|
JsonObject itemJson = array.get(i).getAsJsonObject();
|
||||||
SWItem item = SWItem.getItemFromJson(itemJson);
|
SWItem item = SWItem.getItemFromJson(itemJson);
|
||||||
item.setCallback(click -> {
|
item.setCallback(click -> new InventoryCallbackPacket(itemJson, click, player).send(Bukkit.getPlayer(player)));
|
||||||
new InventoryCallbackPacket(itemJson, click, player).send(Bukkit.getPlayer(player));
|
|
||||||
});
|
|
||||||
items.put(itemJson.get("position").getAsInt(), item);
|
items.put(itemJson.get("position").getAsInt(), item);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren