1package com.osroyale.game.task.impl;
3import com.osroyale.game.task.Task;
4import com.osroyale.net.packet.out.SendMessage;
5import com.osroyale.net.packet.out.SendWidget;
6import com.osroyale.game.world.entity.mob.player.Player;
36public class TeleblockTask
extends Task {
38 private final Player player;
40 public TeleblockTask(
Player player) {
47 if (player ==
null || !player.isValid()) {
52 if (player.teleblockTimer.decrementAndGet() <= 0) {
60 player.send(
new SendMessage(
"You feel the effects of the tele-block spell go away."));
synchronized final void cancel()
Task(boolean instant, int delay)
void onCancel(boolean logout)