mirror of
https://github.com/PikaMug/Quests.git
synced 2025-01-03 06:57:58 +01:00
Revert building against Spigot, suppress getShooter() warning
This commit is contained in:
parent
efd161e97f
commit
822b0f32d5
6
pom.xml
6
pom.xml
@ -29,12 +29,6 @@
|
||||
<scope>system</scope>
|
||||
<systemPath>${project.basedir}/lib/craftbukkit-1.8.jar</systemPath>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.bukkit</groupId>
|
||||
<artifactId>bukkit</artifactId>
|
||||
<version>1.8-R0.1-SNAPSHOT</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.bukkit</groupId>
|
||||
<artifactId>craftbukkit1</artifactId>
|
||||
|
@ -2,11 +2,14 @@ package me.blackvein.quests;
|
||||
|
||||
import com.sk89q.worldguard.protection.managers.RegionManager;
|
||||
import com.sk89q.worldguard.protection.regions.ProtectedRegion;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.Iterator;
|
||||
|
||||
import me.blackvein.quests.util.ItemUtil;
|
||||
import me.blackvein.quests.util.Lang;
|
||||
import net.citizensnpcs.api.CitizensAPI;
|
||||
|
||||
import org.bukkit.ChatColor;
|
||||
import org.bukkit.Location;
|
||||
import org.bukkit.Material;
|
||||
@ -575,9 +578,10 @@ public class PlayerListener implements Listener, ColorUtil {
|
||||
|
||||
if (damager instanceof Projectile) {
|
||||
Projectile projectile = (Projectile)damager;
|
||||
ProjectileSource source = projectile.getShooter();
|
||||
@SuppressWarnings("deprecation")
|
||||
ProjectileSource source = projectile.getShooter();
|
||||
|
||||
if(source instanceof Player) {
|
||||
if (source instanceof Player) {
|
||||
|
||||
Player player = (Player) source;
|
||||
boolean okay = true;
|
||||
|
Loading…
Reference in New Issue
Block a user