mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-25 03:55:35 +01:00
Unstable
This commit is contained in:
parent
f86765c90e
commit
97a48db886
@ -261,7 +261,7 @@ public class PlayerListener implements Listener {
|
||||
|
||||
@EventHandler
|
||||
public void onCraftItem(CraftItemEvent evt) {
|
||||
|
||||
|
||||
if (evt.getWhoClicked() instanceof Player) {
|
||||
|
||||
Player p = (Player) evt.getWhoClicked();
|
||||
@ -274,6 +274,12 @@ public class PlayerListener implements Listener {
|
||||
|
||||
}
|
||||
|
||||
if(evt.isShiftClick()){
|
||||
|
||||
evt.
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@ -505,7 +511,7 @@ public class PlayerListener implements Listener {
|
||||
|
||||
if(evt.getInventory().getType().equals(InventoryType.CRAFTING) && evt.getRawSlot() == 0)
|
||||
return;
|
||||
|
||||
|
||||
List<Integer> changedSlots = Quester.getChangedSlots(evt.getInventory(), evt.getCurrentItem());
|
||||
boolean can = true;
|
||||
for (int i : changedSlots) {
|
||||
|
@ -3799,4 +3799,10 @@ public class Quests extends JavaPlugin implements ConversationAbandonedListener
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
public int getCraftTimes(Inventory i, Recipe r){
|
||||
|
||||
return 0;
|
||||
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user