Hey so I'm kind of new to coding and I've been trying to add a working summoning obelisk to my ObjectHandler.java

This is the code:
Code:
					} else if (id == 28716 || id == 67036) {
					     Summoning.sendInterface(player);
					final int maxSummoning = player.getSkills()
									.getLevelForXp(23);
							if (player.getSkills().getLevel(23) < maxSummoning) {
								player.addStopDelay(5L);
								player.getPackets().sendGameMessage(
										"You feel the obelisk", true);
								player.setNextAnimation(new Animation(645));
								WorldTasksManager.schedule(new WorldTask() {

									@Override
									public void run() {
										player.getSkills().restoreSkills();
										player.getPackets()
												.sendGameMessage(
														"...and recharge all your skills.",
														true);
									}
								}, 2);
I receive this error from it:
"The method addStopDelay(long) is undefined for the type Player"

If anyone could help me out this would be greatly appreciated


Edit: I presume this has something to do with Player.java but I don't know what.