Dieser Commit ist enthalten in:
Ursprung
20185f0264
Commit
4ef9bd1fb7
@ -21,6 +21,7 @@ package de.steamwar.misslewars.listener;
|
|||||||
|
|
||||||
import de.steamwar.misslewars.FightState;
|
import de.steamwar.misslewars.FightState;
|
||||||
import de.steamwar.misslewars.items.SpecialItem;
|
import de.steamwar.misslewars.items.SpecialItem;
|
||||||
|
import org.bukkit.Material;
|
||||||
import org.bukkit.event.EventHandler;
|
import org.bukkit.event.EventHandler;
|
||||||
import org.bukkit.event.block.Action;
|
import org.bukkit.event.block.Action;
|
||||||
import org.bukkit.event.entity.ProjectileHitEvent;
|
import org.bukkit.event.entity.ProjectileHitEvent;
|
||||||
@ -48,7 +49,9 @@ public class ItemListener extends BasicListener {
|
|||||||
if (SpecialItem.handleUse(item, e.getPlayer())){
|
if (SpecialItem.handleUse(item, e.getPlayer())){
|
||||||
item.setAmount(item.getAmount()-1);
|
item.setAmount(item.getAmount()-1);
|
||||||
e.getPlayer().updateInventory();
|
e.getPlayer().updateInventory();
|
||||||
e.setCancelled(true);
|
if (item.getType() != Material.SPLASH_POTION) {
|
||||||
|
e.setCancelled(true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren