Deprecated more of the Action stuff

This commit is contained in:
Rsl1122 2018-06-21 11:40:14 +03:00
parent c4c5b374f8
commit 50b8aea7ac
3 changed files with 8 additions and 0 deletions

View File

@ -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);

View File

@ -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;
}

View File

@ -33,6 +33,7 @@ import java.util.*;
* @author Rsl1122
* @see Action
*/
@Deprecated
public class ActionsTable extends UserIDTable {
public ActionsTable(SQLDB db) {