Implementing semipersistent storage #5
22
src/de/steamwar/bungeecore/Storage.java
Normale Datei
22
src/de/steamwar/bungeecore/Storage.java
Normale Datei
@ -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
|
||||
}
|
In neuem Issue referenzieren
Einen Benutzer sperren