1package com.runehive.game.task.impl;
3import com.runehive.game.task.Task;
4import com.runehive.net.packet.out.SendMessage;
5import com.runehive.net.packet.out.SendWidget;
6import com.runehive.game.world.entity.mob.player.Player;
29 if (
player.teleblockTimer.decrementAndGet() <= 0) {
37 player.send(
new SendMessage(
"You feel the effects of the tele-block spell go away."));
synchronized final void cancel()
Cancels all subsequent executions.
Task(boolean instant, int delay)
Creates a new Task.
void execute()
A function representing the unit of work that will be carried out.
TeleblockTask(Player player)
void onCancel(boolean logout)
A function executed on cancellation.
This class represents a character controlled by a player.
The OutgoingPacket that sends a message to a Players chatbox in the client.