mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-25 12:15:59 +01:00
Fixed item lore requirement bug
This commit is contained in:
parent
fe19fd4fe6
commit
86460d2bdc
16
src/main/java/me/blackvein/quests/GUIListener.java
Normal file
16
src/main/java/me/blackvein/quests/GUIListener.java
Normal 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) {
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
@ -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;
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user