RuneHive-Game
Loading...
Searching...
No Matches
DailySlayerTaskTeleport.java
Go to the documentation of this file.
1package com.runehive.content.dailyeffect.impl;
2
3import com.runehive.content.dailyeffect.DailyEffect;
4import com.runehive.game.world.entity.mob.player.Player;
5import com.runehive.game.world.entity.mob.player.PlayerRight;
6
7public class DailySlayerTaskTeleport extends DailyEffect {
8
9 @Override
10 public int maxUses(Player player) {
11 if (PlayerRight.isElite(player)) {
12 return 10;
13 } else if (PlayerRight.isExtreme(player)) {
14 return 8;
15 } else if (PlayerRight.isSuper(player)) {
16 return 6;
17 } else if (PlayerRight.isDonator(player)) {
18 return 4;
19 }
20 return 2;
21 }
22}
This class represents a character controlled by a player.
Definition Player.java:125
static boolean isDonator(Player player)
Checks if the player has donator status.
static boolean isSuper(Player player)
Checks if the player has super donator status.
static boolean isElite(Player player)
Checks if the player has elite donator status.
static boolean isExtreme(Player player)
Checks if the player has extreme donator status.