Revert building against Spigot, suppress getShooter() warning

This commit is contained in:
HappyPikachu 2015-02-18 14:12:58 -05:00
parent efd161e97f
commit 822b0f32d5
2 changed files with 6 additions and 8 deletions

View File

@ -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>

View File

@ -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;