mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-12-21 05:50:18 +08:00
Deprecated more of the Action stuff
This commit is contained in:
parent
c4c5b374f8
commit
50b8aea7ac
@ -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);
|
||||
|
@ -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<UUID, Integer> getFirstSessionMsgCounts() {
|
||||
return firstSessionInformation;
|
||||
}
|
||||
|
@ -33,6 +33,7 @@ import java.util.*;
|
||||
* @author Rsl1122
|
||||
* @see Action
|
||||
*/
|
||||
@Deprecated
|
||||
public class ActionsTable extends UserIDTable {
|
||||
|
||||
public ActionsTable(SQLDB db) {
|
||||
|
Loading…
Reference in New Issue
Block a user