- Add /mute & /unmute
- Add /i - Don't clear inv when there are no items to add
This commit is contained in:
@@ -223,7 +223,9 @@ public class Inventories implements Listener {
|
||||
}
|
||||
|
||||
public static void addInvItems(Player P) {
|
||||
P.getInventory().clear();
|
||||
if (!itemPositions.isEmpty()) {
|
||||
P.getInventory().clear();
|
||||
}
|
||||
for (Entry<String, Integer> item : itemPositions.entrySet()) {
|
||||
P.getInventory().setItem(item.getValue(), getItem(item.getKey(), P));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user