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:
parent
1d76b8a692
commit
b1c07e0596
@ -25,6 +25,7 @@ public class Heads extends Core {
|
||||
headList = new ArrayList<Block>();
|
||||
}
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
@Override
|
||||
public CoreResult callCore(final Object[] data) {
|
||||
if (isCalled) {
|
||||
|
@ -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);
|
||||
|
@ -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) {
|
||||
|
Reference in New Issue
Block a user