13
0

Implementing semipersistent storage

Dieser Commit ist enthalten in:
Lixfel 2020-08-29 18:42:10 +02:00
Ursprung ead6c3d25e
Commit bec74faf7c

Datei anzeigen

@ -0,0 +1,22 @@
package de.steamwar.bungeecore;
import net.md_5.bungee.api.connection.ProxiedPlayer;
import java.sql.Timestamp;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class Storage {
private Storage(){}
public static final Map<ProxiedPlayer, List<ProxiedPlayer>> challenges = new HashMap<>();
public static final Map<ProxiedPlayer, ProxiedPlayer> lastChats = new HashMap<>();
public static final Map<Integer, List<Integer>> teamInvitations = new HashMap<>(); // UserID -> List<TeamIDs>
public static final Map<ProxiedPlayer, Timestamp> sessions = new HashMap<>(); // Contains session start timestamp
public static final Map<Integer, Subserver> eventServer = new HashMap<>(); // TeamID -> Subserver map
}