Fixed item lore requirement bug

This commit is contained in:
Blackvein 2014-03-10 13:26:06 -07:00
parent fe19fd4fe6
commit 86460d2bdc
3 changed files with 17 additions and 3 deletions

View File

@ -0,0 +1,16 @@
package me.blackvein.quests;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.inventory.InventoryClickEvent;
public class GUIListener implements Listener {
@EventHandler
public void onInventoryClick(InventoryClickEvent evt) {
}
}

View File

@ -3,7 +3,6 @@ package me.blackvein.quests;
import java.io.File;
import java.io.IOException;
import java.sql.Timestamp;
import java.util.Calendar;
import java.util.Collections;
import java.util.Comparator;
import java.util.EnumMap;

View File

@ -45,7 +45,6 @@ public class ItemUtil implements ColorUtil{
return -4;
else if(one.hasItemMeta() == false && two.hasItemMeta())
return -4;
else if(one.getItemMeta().hasDisplayName() && two.getItemMeta().hasDisplayName() == false)
return -4;
else if(one.getItemMeta().hasDisplayName() == false && two.getItemMeta().hasDisplayName())
@ -56,7 +55,7 @@ public class ItemUtil implements ColorUtil{
else if(one.getItemMeta().hasLore() == false && two.getItemMeta().hasLore())
return -4;
else if(ChatColor.stripColor(one.getItemMeta().getDisplayName()).equals(ChatColor.stripColor(two.getItemMeta().getDisplayName())) == false)
else if(one.getItemMeta().hasDisplayName() && two.getItemMeta().hasDisplayName() && ChatColor.stripColor(one.getItemMeta().getDisplayName()).equals(ChatColor.stripColor(two.getItemMeta().getDisplayName())) == false)
return -4;
else if(one.getItemMeta().hasLore() && two.getItemMeta().hasLore() && one.getItemMeta().getLore().equals(two.getItemMeta().getLore()) == false)