From e7a24c75b4001484e58f306b699b6a6a627d5478 Mon Sep 17 00:00:00 2001 From: Isaac Date: Sat, 8 Sep 2018 22:44:32 +0200 Subject: [PATCH] Update version to 1.2.4, add setCloseable(boolean) to fix #26 --- README.md | 4 ++-- build.gradle | 2 +- src/main/java/fr/minuskube/inv/SmartInventory.java | 2 ++ src/main/resources/plugin.yml | 2 +- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index f6a93ff4..938ac3f1 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,7 @@ repositories { } dependencies { - compile 'fr.minuskube.inv:smart-invs:1.2.3' + compile 'fr.minuskube.inv:smart-invs:1.2.4' } ``` @@ -45,7 +45,7 @@ dependencies { fr.minuskube.inv smart-invs - 1.2.3 + 1.2.4 ``` diff --git a/build.gradle b/build.gradle index 75d7f6fe..1e440bea 100644 --- a/build.gradle +++ b/build.gradle @@ -1,5 +1,5 @@ group 'fr.minuskube.inv' -version '1.2.3' +version '1.2.4' apply plugin: 'java' apply plugin: 'maven' diff --git a/src/main/java/fr/minuskube/inv/SmartInventory.java b/src/main/java/fr/minuskube/inv/SmartInventory.java index 13c6d95b..ac54b44a 100644 --- a/src/main/java/fr/minuskube/inv/SmartInventory.java +++ b/src/main/java/fr/minuskube/inv/SmartInventory.java @@ -78,7 +78,9 @@ public void close(Player player) { public InventoryType getType() { return type; } public int getRows() { return rows; } public int getColumns() { return columns; } + public boolean isCloseable() { return closeable; } + public void setCloseable(boolean closeable) { this.closeable = closeable; } public InventoryProvider getProvider() { return provider; } public Optional getParent() { return Optional.ofNullable(parent); } diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index c86a0891..a839891b 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -1,5 +1,5 @@ name: SmartInvs -version: 1.2.3 +version: 1.2.4 description: Inventory API for your Bukkit Plugins. author: MinusKube website: https://github.com/MinusKube/SmartInvs