From bec74faf7cb4362ccf340ff0db82e4c719254c84 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Sat, 29 Aug 2020 18:42:10 +0200 Subject: [PATCH] Implementing semipersistent storage --- src/de/steamwar/bungeecore/Storage.java | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 src/de/steamwar/bungeecore/Storage.java diff --git a/src/de/steamwar/bungeecore/Storage.java b/src/de/steamwar/bungeecore/Storage.java new file mode 100644 index 0000000..8988cd3 --- /dev/null +++ b/src/de/steamwar/bungeecore/Storage.java @@ -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> challenges = new HashMap<>(); + + public static final Map lastChats = new HashMap<>(); + + public static final Map> teamInvitations = new HashMap<>(); // UserID -> List + + public static final Map sessions = new HashMap<>(); // Contains session start timestamp + + public static final Map eventServer = new HashMap<>(); // TeamID -> Subserver map +}