8.14.2 release

This commit is contained in:
mfnalex 2020-07-12 17:04:28 +02:00
parent a42c172017
commit 123f16959c
4 changed files with 7 additions and 4 deletions

View File

@ -2,6 +2,7 @@
## 8.14.2
- Made CrateReloaded hook and HeadDatabase hook toggleable
- Fixed wrong version number in plugin.yml
- Updated Chinese translation
## 8.14.1

View File

@ -1,9 +1,10 @@
package de.jeff_media.ChestSort;
import de.jeff_media.ChestSortAPI.ChestSortAPI;
import org.bukkit.entity.Player;
import org.bukkit.inventory.Inventory;
public class ChestSortAPIHandler implements de.jeff_media.ChestSortAPI.ChestSortAPI {
public class ChestSortAPIHandler implements ChestSortAPI {
final ChestSortPlugin plugin;

View File

@ -4,6 +4,8 @@ import de.jeff_media.ChestSort.hooks.CrateReloadedHook;
import de.jeff_media.ChestSort.hooks.HeadDatabaseHook;
import de.jeff_media.ChestSort.hooks.MinepacksHook;
import de.jeff_media.ChestSort.utils.LlamaUtils;
import de.jeff_media.ChestSortAPI.ChestSortEvent;
import de.jeff_media.ChestSortAPI.ISortable;
import org.bukkit.Bukkit;
import org.bukkit.GameMode;
import org.bukkit.Material;
@ -443,7 +445,7 @@ public class ChestSortListener implements Listener {
}
private boolean isAPICall(Inventory inv) {
return inv.getHolder() instanceof de.jeff_media.ChestSortAPI.ISortable;
return inv.getHolder() instanceof ISortable;
}
@EventHandler
@ -505,7 +507,7 @@ public class ChestSortListener implements Listener {
ChestSortPlayerSetting setting = plugin.perPlayerSettings.get(p.getUniqueId().toString());
de.jeff_media.ChestSortAPI.ChestSortEvent chestSortEvent = new de.jeff_media.ChestSortAPI.ChestSortEvent(e.getInventory());
ChestSortEvent chestSortEvent = new ChestSortEvent(e.getInventory());
chestSortEvent.setLocation(e.getWhoClicked().getLocation());
Bukkit.getPluginManager().callEvent(chestSortEvent);
if (chestSortEvent.isCancelled()) {

View File

@ -2,7 +2,6 @@ package de.jeff_media.ChestSort.hooks;
import de.jeff_media.ChestSort.ChestSortPlugin;
import org.bukkit.inventory.Inventory;
import org.jetbrains.annotations.NotNull;
public class CrateReloadedHook {