9.0.0 release

This commit is contained in:
mfnalex 2021-01-03 19:54:30 +01:00
parent 008419694d
commit 2894ee3966
7 changed files with 27 additions and 6 deletions

View File

@ -1,7 +1,10 @@
# Changelog
## 8.19.0
- Improved API for ItemJoin
## 9.0.0
THIS UPDATE IS IMPORTANT WHEN YOU ARE USING PLUGINS THAT INTERACT WITH CHESTSORT
Note: When you are using other plugins that depend on the ChestSortAPI 2.0.0+ (e.g. probably the next release of ItemJoin AFAIK) you need at least this version of ChestSort.
- Improved API, especially for plugins that want to prevent specific items from being moved.
- Implements ChestSortAPI version 2.0.0
## 8.18.1
- Improved API

View File

@ -19,7 +19,7 @@ You can use maven to add ChestSort as a dependency to your Spigot-/Bukkit-Plugin
<dependency>
<groupId>de.jeff_media</groupId>
<artifactId>ChestSortAPI</artifactId>
<version>1.1.0</version> <!-- The API version is independent of the ChestSort version -->
<version>2.0.0</version> <!-- The API version is independent of the ChestSort version -->
<scope>compile</scope>
</dependency>
</dependencies>

View File

@ -9,7 +9,7 @@
<name>ChestSort</name>
<url>https://www.chestsort.de</url>
<description>Automatically sorts your chests!</description>
<version>8.19.0-SNAPSHOT</version>
<version>9.0.0</version>
<packaging>jar</packaging>
<properties>
@ -123,7 +123,7 @@
<dependency>
<groupId>de.jeff_media</groupId>
<artifactId>ChestSortAPI</artifactId>
<version>1.1.0</version>
<version>2.0.0</version>
<scope>compile</scope>
</dependency>
<dependency>

View File

@ -30,4 +30,15 @@ public class ChestSortAPIHandler implements ChestSortAPI {
return plugin.isSortingEnabled(p);
}
@Override
public String getChestSortVersion() {
return plugin.getDescription().getVersion();
}
@Override
public String getChestSortAPIVersion() {
return "1.2.0";
}
}

View File

@ -564,6 +564,7 @@ public class ChestSortListener implements Listener {
ChestSortEvent chestSortEvent = new ChestSortEvent(e.getInventory());
chestSortEvent.setPlayer(e.getWhoClicked());
chestSortEvent.setLocation(e.getWhoClicked().getLocation());
chestSortEvent.setSortableMaps(new HashMap<ItemStack, Map<String, String>>());

View File

@ -476,6 +476,12 @@ public class ChestSortOrganizer {
}
if(inv.getHolder() != null) {
if(inv.getHolder() instanceof HumanEntity) {
chestSortEvent.setPlayer((HumanEntity) inv.getHolder());
}
}
chestSortEvent.setSortableMaps(new HashMap<ItemStack, Map<String, String>>());
for (ItemStack item : inv.getContents()) {
chestSortEvent.getSortableMaps().put(item, getSortableMap(item));

View File

@ -1,6 +1,6 @@
main: de.jeff_media.ChestSort.ChestSortPlugin
name: ChestSort
version: 8.18.1
version: 9.0.0
api-version: "1.13"
description: Allows automatic chest sorting
author: mfnalex