Update for 1.14

This commit is contained in:
mfnalex 2019-04-25 09:32:00 +02:00
parent 9ad840e605
commit 7f30528b42
4 changed files with 16 additions and 16 deletions

View File

@ -1,11 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<classpath> <classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8">
<attributes> <attributes>
<attribute name="module" value="true"/> <attribute name="module" value="true"/>
</attributes> </attributes>
</classpathentry> </classpathentry>
<classpathentry kind="src" path="src"/> <classpathentry kind="src" path="src"/>
<classpathentry kind="lib" path="P:/BuildTools/Spigot/Spigot-API/target/spigot-api-1.13.2-R0.1-SNAPSHOT-shaded.jar"/> <classpathentry kind="lib" path="/home/alex/buildtools/Spigot/Spigot-API/target/spigot-api-1.13.2-R0.1-SNAPSHOT-shaded.jar"/>
<classpathentry kind="output" path="bin"/> <classpathentry kind="output" path="bin"/>
</classpath> </classpath>

View File

@ -1,6 +1,6 @@
main: de.jeffclan.JeffChestSort.JeffChestSortPlugin main: de.jeffclan.JeffChestSort.JeffChestSortPlugin
name: ChestSort name: ChestSort
version: 3.4 version: 3.5
api-version: 1.13 api-version: 1.13
description: Allows automatic chest sorting description: Allows automatic chest sorting
author: mfnalex author: mfnalex

View File

@ -26,9 +26,9 @@ public class JeffChestSortListener implements Listener {
@EventHandler @EventHandler
public void onPlayerJoin(PlayerJoinEvent event) { public void onPlayerJoin(PlayerJoinEvent event) {
if (event.getPlayer().getName().equalsIgnoreCase("mfnalex")) { //if (event.getPlayer().getName().equalsIgnoreCase("mfnalex")) {
plugin.debug = true; // plugin.debug = true;
} //}
if (event.getPlayer().isOp()) { if (event.getPlayer().isOp()) {
plugin.updateChecker.sendUpdateMessage(event.getPlayer()); plugin.updateChecker.sendUpdateMessage(event.getPlayer());

View File

@ -249,7 +249,7 @@ public class JeffChestSortOrganizer {
// put everything back in a temporary inventory to combine ItemStacks even when using strict slot sorting // put everything back in a temporary inventory to combine ItemStacks even when using strict slot sorting
// Thanks to SnackMix for this idea! // Thanks to SnackMix for this idea!
Inventory tempInventory = Bukkit.createInventory(null, 54); Inventory tempInventory = Bukkit.createInventory(null, 54); //cannot be bigger than 54 as of 1.14
for(ItemStack item : nonNullItems) { for(ItemStack item : nonNullItems) {
if(plugin.debug) System.out.println(getSortableString(item)); if(plugin.debug) System.out.println(getSortableString(item));