Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
matsu1213 committed Aug 5, 2024
1 parent 8101467 commit 2c938c6
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,15 @@
import org.bukkit.entity.Player;
import org.bukkit.entity.Snowball;
import org.bukkit.event.EventHandler;
import org.bukkit.event.EventPriority;
import org.bukkit.event.Listener;
import org.bukkit.event.entity.ProjectileHitEvent;
import org.bukkit.metadata.MetadataValue;
import org.bukkit.potion.PotionEffect;

public class WeaponPotionListener implements Listener {

@EventHandler
@EventHandler(priority = EventPriority.LOW)
public void onDamage(ProjectileHitEvent e){
if(!(e.getHitEntity() instanceof Player)) return;
if(!(e.getEntity().getShooter() instanceof Player)) return;
Expand Down

0 comments on commit 2c938c6

Please sign in to comment.