1package com.runehive.content.activity.record;
3import com.runehive.content.activity.ActivityType;
4import com.runehive.game.world.entity.mob.player.Player;
5import com.runehive.game.world.entity.mob.player.PlayerRight;
6import com.runehive.net.packet.out.*;
7import com.runehive.util.Utility;
16 private Map<ActivityType, TreeSet<GameRecord>>
personalRecord =
new HashMap<>();
23 time = System.currentTimeMillis();
31 long record = System.currentTimeMillis() -
time;
51 if (personal.size() < 10) {
52 personal.add(tracker);
53 }
else if (tracker.
time < personal.first().time) {
55 personal.add(tracker);
61 for (
int count = 0; count < (size < 25 ? 25 : size); count++) {
73 String[] marquee =
new String[5];
81 for (
int index = 0; index < marquee.length; index++) {
84 activities.remove(type);
119 player.interfaceManager.open(32300);
final ActivityType activityType
long end(ActivityType activity, boolean track)
void display(ActivityType activity)
void display(boolean global, ActivityType activity)
void add(GameRecord tracker)
Map< ActivityType, TreeSet< GameRecord > > personalRecord
void showActivities(ActivityType viewing)
PlayerRecord(Player player)
long end(ActivityType activity)
This class represents a character controlled by a player.
The OutgoingPacket responsible for changing settings on a client.
The OutgoingPacket that sends a string to a Players itemcontainer in the client.
Handles miscellaneous methods.
static String formatName(final String input)
static< T > T randomElement(Collection< T > collection)
Picks a random element out of any array type.
static String getTime()
Gets the current server time and formats it.
static String formatEnum(final String string)
Formats name of enum.
Holds all activity types that are timed.
static List< ActivityType > getRecordable()
Holds all the player right data.
static boolean isAdministrator(Player player)
Checks if the player is a privileged member.