32 public static void printReferralLog(
Player player) {
34 BufferedWriter bf =
new BufferedWriter(
new FileWriter(
"backup/logs/referrals.txt",
true));
35 bf.write(
"[" + DateFormat.getDateTimeInstance().format(
new Date()) +
"] Referral claimed. Player: " + player.getUsername() +
"IP: " + player.lastHost);
37 }
catch (IOException ignored) {
40 public static void printToplist(
Player player, String toplist) {
42 BufferedWriter bf =
new BufferedWriter(
new FileWriter(
"backup/logs/"+toplist+
".txt",
true));
43 bf.write(
"[" + DateFormat.getDateTimeInstance().format(
new Date()) +
"] Player: " + player.getUsername());
45 }
catch (IOException ignored) {