1package com.runehive.content;
3import com.runehive.content.achievement.AchievementHandler;
4import com.runehive.game.world.entity.mob.player.Player;
5import com.runehive.game.world.entity.mob.player.PlayerRight;
6import com.runehive.game.world.entity.skill.Skill;
7import com.runehive.net.packet.out.SendMessage;
8import com.runehive.net.packet.out.SendPlayerIndex;
9import com.runehive.net.packet.out.SendString;
10import com.runehive.net.packet.out.SendTooltip;
11import com.runehive.util.Utility;
13import java.util.Optional;
30 "Kills/Deaths/KDR",
"" + player.kill +
"/" + player.death +
"/" + player.
playerAssistant.
kdr() +
"",
44 player.
message(
"You must get closer to that player if you want to view their profile!");
49 player.
send(
new SendMessage(
"You can't view profiles whilst in combat!"));
53 for (
int index = 0,
string = 51832; index <
Skill.
SKILL_COUNT; index++,
string += 2) {
56 player.
send(
new SendString(
skill.getMaxLevel() +
"<col=" + color +
"></col>/<col=" + color +
">" +
skill.getMaxLevel(),
string));
60 for (String context :
string(other)) {
68 player.managing = Optional.of(other);
Handles viewing other player's profiles.
static void open(Player player, Player other)
Opens the profile interface.
static String[] string(Player player)
Gets the main strings to display.
Handles the achievements.
static int getTotalCompleted(Player player)
Gets the total amount of achievements completed.
int getPrestigeColor(int skill)
Gets the current prestige color of the player.
final SkillManager skills
void open(int identification)
Opens an interface for the player.
String kdr()
Gets the KDR of the player.
This class represents a character controlled by a player.
void message(String message)
String getName()
Gets the name of this entity.
boolean equals(Object obj)
final InterfaceManager interfaceManager
void send(OutgoingPacket encoder)
Combat< Player > getCombat()
The combat of the mob.
final PlayerAssistant playerAssistant
final Killstreak killstreak
Represents a trainable and usable skill.
static final int SKILL_COUNT
The amount of available skills.
int getCombatLevel()
Gets the mob's combat level.
Skill get(int id)
Gets the skill for an id.
int getTotalLevel()
Gets the total level of the mob.
boolean isWithinDistance(Position other, int radius)
Checks if this location is within range of another.
The OutgoingPacket that sends a message to a Players chatbox in the client.
Sends a player index to the client.
The OutgoingPacket that sends a string to a Players itemcontainer in the client.
Handles miscellaneous methods.
static String formatDigits(final int amount)
Formats digits for integers.
static String getTime()
Gets the current server time and formats it.
static String formatPrice(final long amount)
Formats a price for longs.
Holds all the player right data.
String getName()
Gets the name of the rank.
static String getCrown(Player player)
Gets the crown display.
static boolean isModerator(Player player)
Checks if the player is a management member.