Skip to content

Commit e9e61bc

Browse files
committed
Release version 3.0
1 parent 6b3c9f9 commit e9e61bc

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# FastInv
2+
[![JitPack](https://jitpack.io/v/fr.mrmicky/FastInv.svg)](https://jitpack.io/#fr.mrmicky/FastInv)
23
[![Discord](https://img.shields.io/discord/390919659874156560.svg?colorB=7289da&label=discord&logo=discord&logoColor=white)](https://discord.gg/q9UwaBT)
34

45
Small and easy Bukkit inventory API with 1.7 to 1.13.2 support !
@@ -94,10 +95,10 @@ public class ExampleInventory extends FastInv {
9495
setItem(22, new ItemStack(Material.IRON_SWORD), e -> e.getWhoClicked().sendMessage("You clicked on the sword"));
9596

9697
// Add some blocks to the borders
97-
setItems(getBorders(), new ItemBuilder(Material.LAPIS_BLOCK).name("").build());
98+
setItems(getBorders(), new ItemBuilder(Material.LAPIS_BLOCK).name(" ").build());
9899

99100
// Add a simple item to prevent closing the inventory
100-
setItem(34, new ItemStack(Material.BARRIER), e -> preventClose.set(!preventClose.get()));
101+
setItem(34, new ItemBuilder(Material.BARRIER).name(ChatColor.RED + "Prevent close").build(), e -> preventClose.set(!preventClose.get()));
101102

102103
// Prevent from closing when preventClose is to true
103104
setCloseFilter(p -> preventClose.get());
@@ -118,7 +119,6 @@ public class ExampleInventory extends FastInv {
118119
// do something
119120
}
120121
}
121-
122122
```
123123

124124
And open the inventory

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>fr.mrmicky</groupId>
88
<artifactId>fastinv</artifactId>
9-
<version>3.0.0-SNAPSHOT</version>
9+
<version>3.0</version>
1010

1111
<name>FastInv</name>
1212
<url>https://github.com/MrMicky-FR/FastInv</url>

0 commit comments

Comments
 (0)