mirror of
https://github.com/Zrips/Jobs.git
synced 2025-01-16 21:21:20 +01:00
Version up
This commit is contained in:
parent
b7f6de7965
commit
35e4b81b1d
2
pom.xml
2
pom.xml
@ -5,7 +5,7 @@
|
|||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>Jobs</groupId>
|
<groupId>Jobs</groupId>
|
||||||
<artifactId>jobs</artifactId>
|
<artifactId>jobs</artifactId>
|
||||||
<version>5.1.2.2</version>
|
<version>5.1.3.0</version>
|
||||||
<name>Jobs</name>
|
<name>Jobs</name>
|
||||||
<url>http://maven.apache.org</url>
|
<url>http://maven.apache.org</url>
|
||||||
|
|
||||||
|
@ -539,13 +539,6 @@ public class JobsListener implements Listener {
|
|||||||
|
|
||||||
@EventHandler(ignoreCancelled = true)
|
@EventHandler(ignoreCancelled = true)
|
||||||
public void onInventoryClick(InventoryClickEvent event) {
|
public void onInventoryClick(InventoryClickEvent event) {
|
||||||
boolean shift = false, numberkey = false;
|
|
||||||
|
|
||||||
if (event.getClick() == ClickType.SHIFT_LEFT || event.getClick() == ClickType.SHIFT_RIGHT)
|
|
||||||
shift = true;
|
|
||||||
|
|
||||||
if (event.getClick() == ClickType.NUMBER_KEY)
|
|
||||||
numberkey = true;
|
|
||||||
|
|
||||||
SlotType slotType = event.getSlotType();
|
SlotType slotType = event.getSlotType();
|
||||||
|
|
||||||
@ -555,6 +548,8 @@ public class JobsListener implements Listener {
|
|||||||
if (!(event.getWhoClicked() instanceof Player) || event.getCurrentItem() == null)
|
if (!(event.getWhoClicked() instanceof Player) || event.getCurrentItem() == null)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
boolean shift = event.getClick() == ClickType.SHIFT_LEFT || event.getClick() == ClickType.SHIFT_RIGHT;
|
||||||
|
|
||||||
ArmorTypes newArmorType = ArmorTypes.matchType(shift ? event.getCurrentItem() : event.getCursor());
|
ArmorTypes newArmorType = ArmorTypes.matchType(shift ? event.getCurrentItem() : event.getCursor());
|
||||||
if (!shift && newArmorType != null && event.getRawSlot() != newArmorType.getSlot())
|
if (!shift && newArmorType != null && event.getRawSlot() != newArmorType.getSlot())
|
||||||
return;
|
return;
|
||||||
@ -587,6 +582,9 @@ public class JobsListener implements Listener {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
|
boolean numberkey = event.getClick() == ClickType.NUMBER_KEY;
|
||||||
|
|
||||||
ItemStack newArmorPiece = event.getCursor();
|
ItemStack newArmorPiece = event.getCursor();
|
||||||
ItemStack oldArmorPiece = event.getCurrentItem();
|
ItemStack oldArmorPiece = event.getCurrentItem();
|
||||||
if (numberkey) {
|
if (numberkey) {
|
||||||
|
Loading…
Reference in New Issue
Block a user