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.items.SpecialItem;
|
||||
import org.bukkit.Material;
|
||||
import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.block.Action;
|
||||
import org.bukkit.event.entity.ProjectileHitEvent;
|
||||
@ -48,9 +49,11 @@ public class ItemListener extends BasicListener {
|
||||
if (SpecialItem.handleUse(item, e.getPlayer())){
|
||||
item.setAmount(item.getAmount()-1);
|
||||
e.getPlayer().updateInventory();
|
||||
if (item.getType() != Material.SPLASH_POTION) {
|
||||
e.setCancelled(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@EventHandler
|
||||
public void onThrow(ProjectileLaunchEvent e) {
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren