From 50b8aea7ace48dec8c145207944440b6f72fba6d Mon Sep 17 00:00:00 2001 From: Rsl1122 Date: Thu, 21 Jun 2018 11:40:14 +0300 Subject: [PATCH] Deprecated more of the Action stuff --- .../java/com/djrapitops/plan/data/container/PlayerKill.java | 1 + .../java/com/djrapitops/plan/system/cache/SessionCache.java | 6 ++++++ .../system/database/databases/sql/tables/ActionsTable.java | 1 + 3 files changed, 8 insertions(+) diff --git a/Plan/src/main/java/com/djrapitops/plan/data/container/PlayerKill.java b/Plan/src/main/java/com/djrapitops/plan/data/container/PlayerKill.java index a882c8d8a..a1075e671 100644 --- a/Plan/src/main/java/com/djrapitops/plan/data/container/PlayerKill.java +++ b/Plan/src/main/java/com/djrapitops/plan/data/container/PlayerKill.java @@ -55,6 +55,7 @@ public class PlayerKill implements DateHolder { return weapon; } + @Deprecated public Action convertToAction() { String name = DataCache.getInstance().getName(victim); return new Action(date, Actions.KILLED, name + " with " + weapon); diff --git a/Plan/src/main/java/com/djrapitops/plan/system/cache/SessionCache.java b/Plan/src/main/java/com/djrapitops/plan/system/cache/SessionCache.java index 7981571a1..e654f68d5 100644 --- a/Plan/src/main/java/com/djrapitops/plan/system/cache/SessionCache.java +++ b/Plan/src/main/java/com/djrapitops/plan/system/cache/SessionCache.java @@ -93,6 +93,7 @@ public class SessionCache { * * @param uuid UUID of the new player. */ + @Deprecated public void markFirstSession(UUID uuid) { firstSessionInformation.put(uuid, 0); } @@ -103,24 +104,29 @@ public class SessionCache { * @param uuid UUID of the player * @return true / false */ + @Deprecated public boolean isFirstSession(UUID uuid) { return firstSessionInformation.containsKey(uuid); } + @Deprecated public void endFirstSessionActionTracking(UUID uuid) { firstSessionInformation.remove(uuid); } + @Deprecated public void firstSessionMessageSent(UUID uuid) { Integer msgCount = firstSessionInformation.getOrDefault(uuid, 0); msgCount++; firstSessionInformation.put(uuid, msgCount); } + @Deprecated public int getFirstSessionMsgCount(UUID uuid) { return firstSessionInformation.getOrDefault(uuid, 0); } + @Deprecated public Map getFirstSessionMsgCounts() { return firstSessionInformation; } diff --git a/Plan/src/main/java/com/djrapitops/plan/system/database/databases/sql/tables/ActionsTable.java b/Plan/src/main/java/com/djrapitops/plan/system/database/databases/sql/tables/ActionsTable.java index bc1159896..5adeece38 100644 --- a/Plan/src/main/java/com/djrapitops/plan/system/database/databases/sql/tables/ActionsTable.java +++ b/Plan/src/main/java/com/djrapitops/plan/system/database/databases/sql/tables/ActionsTable.java @@ -33,6 +33,7 @@ import java.util.*; * @author Rsl1122 * @see Action */ +@Deprecated public class ActionsTable extends UserIDTable { public ActionsTable(SQLDB db) {