RuneHive-Game
Loading...
Searching...
No Matches
com.runehive.util.tools.LogReader Class Reference

Static Public Member Functions

static boolean alreadyClaimedReferral (Player player)

Static Private Attributes

static String fileLine = ""

Detailed Description

Definition at line 11 of file LogReader.java.

Member Function Documentation

◆ alreadyClaimedReferral()

boolean com.runehive.util.tools.LogReader.alreadyClaimedReferral ( Player player)
static

Definition at line 14 of file LogReader.java.

14 {
15 try {
16 BufferedReader file = new BufferedReader(new FileReader("backup/logs/referrals.txt"));
17 String line;
18 while ((line = file.readLine()) != null) {
19 fileLine = line;
20 if (fileLine.contains(player.lastHost) || fileLine.contains(player.getUsername())) {
21 return true;
22 }
23 }
24 } catch (FileNotFoundException e) {
25 throw new RuntimeException(e);
26 } catch (IOException e) {
27 if (fileLine.contains(player.lastHost) || fileLine.contains(player.getUsername())) {
28 return true;
29 } else {
30 return false;
31 }
32 }
33 return false;
34 }

References fileLine, com.runehive.game.world.entity.mob.player.Player.getUsername(), and com.runehive.game.world.entity.mob.player.Player.lastHost.

Here is the call graph for this function:

Member Data Documentation

◆ fileLine

String com.runehive.util.tools.LogReader.fileLine = ""
staticprivate

Definition at line 12 of file LogReader.java.

Referenced by alreadyClaimedReferral().


The documentation for this class was generated from the following file: