Suppressed deprecation warnings for use of getPlayer(), which is deprecated because of the new Minecraft UUID system. Since we are not storing user information and are only using player names to have Herobrine interact, getPlayer() will serve our purposes just fine.

This commit is contained in:
David Berdik 2015-02-03 19:11:38 -05:00
parent 1d76b8a692
commit b1c07e0596
3 changed files with 3 additions and 0 deletions

View File

@ -25,6 +25,7 @@ public class Heads extends Core {
headList = new ArrayList<Block>();
}
@SuppressWarnings("deprecation")
@Override
public CoreResult callCore(final Object[] data) {
if (isCalled) {

View File

@ -22,6 +22,7 @@ public class Totem extends Core {
return TotemCall((Location) data[0], (String) data[1]);
}
@SuppressWarnings("deprecation")
public CoreResult TotemCall(final Location loc, final String caller) {
AICore.isTotemCalled = false;
loc.getWorld().strikeLightning(loc);

View File

@ -25,6 +25,7 @@ public class CmdExecutor implements CommandExecutor {
log = HerobrineAI.log;
}
@SuppressWarnings("deprecation")
@Override
public boolean onCommand(final CommandSender sender, final Command cmd, final String commandLabel, final String[] args) {
if (sender instanceof Player) {