1package com.runehive.game.task.impl;
3import com.runehive.game.task.Task;
4import com.runehive.game.world.entity.mob.player.Player;
5import com.runehive.game.world.entity.mob.player.PlayerOption;
6import com.runehive.game.world.position.Area;
7import com.runehive.net.packet.out.SendPlayerOption;
8import com.runehive.net.packet.out.SendString;
10import java.util.concurrent.TimeUnit;
13 private static final int[]
TIMES = { 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, -1 };
25 player.hasPvPTimer =
true;
30 int time =
TIMES[(int)
player.pvpTimer.elapsedTime(TimeUnit.SECONDS)];
42 player.getCombat().reset();
46 player.hasPvPTimer =
false;
synchronized final void cancel()
Cancels all subsequent executions.
Task(boolean instant, int delay)
Creates a new Task.
PvPTimerTask(Player player)
void execute()
A function representing the unit of work that will be carried out.
void onSchedule()
A function executed on registration.
void onCancel(boolean logout)
A function executed on cancellation.
This class represents a character controlled by a player.
Handles checking if mobs are in a certain area.
static boolean inPvP(Interactable entity)
Shows a player options such as right clicking a player.
The OutgoingPacket that sends a string to a Players itemcontainer in the client.
Represents the options for right-clicking players.
DUEL_REQUEST
The option for challenging another player to a duel.
ATTACK
The option for attacking another player.