Interface DataManager

All Known Implementing Classes:
MySQLDataManager, RedisDataManager, SQLDataManager, SQLiteDataManager

public interface DataManager
  • Method Details

    • registerChannel

      void registerChannel(@NotNull @NotNull Channel channel)
    • unregisterChannel

      void unregisterChannel(@NotNull @NotNull String channelName)
    • getActivePlayerChannel

      CompletionStage<String> getActivePlayerChannel(@NotNull @NotNull String playerName, Map<String,Channel> registeredChannels)
    • getChannels

      CompletionStage<List<Channel>> getChannels()
    • getReplyName

      CompletionStage<Optional<String>> getReplyName(@NotNull @NotNull String requesterName)
    • setReplyName

      void setReplyName(@NotNull @NotNull String nameReceiver, @NotNull @NotNull String requesterName)
    • getPlayerPlaceholders

      CompletionStage<Map<String,String>> getPlayerPlaceholders(@NotNull @NotNull String playerName)
    • setPlayerPlaceholders

      void setPlayerPlaceholders(@NotNull @NotNull String playerName, @NotNull @NotNull Map<String,String> placeholders)
    • isRateLimited

      boolean isRateLimited(@NotNull @NotNull String playerName, @NotNull @NotNull Channel channel)
    • isSpying

      CompletionStage<Boolean> isSpying(@NotNull @NotNull String playerName)
    • setSpying

      void setSpying(@NotNull @NotNull String playerName, boolean spy)
    • addInventory

      void addInventory(@NotNull @NotNull String name, org.bukkit.inventory.ItemStack[] inv)
    • addItem

      void addItem(@NotNull @NotNull String name, org.bukkit.inventory.ItemStack item)
    • addEnderchest

      void addEnderchest(@NotNull @NotNull String name, org.bukkit.inventory.ItemStack[] inv)
    • clearInvShareCache

      void clearInvShareCache()
    • getPlayerItem

      CompletionStage<org.bukkit.inventory.ItemStack> getPlayerItem(@NotNull @NotNull String playerName)
    • getPlayerInventory

      CompletionStage<org.bukkit.inventory.ItemStack[]> getPlayerInventory(@NotNull @NotNull String playerName)
    • getPlayerEnderchest

      CompletionStage<org.bukkit.inventory.ItemStack[]> getPlayerEnderchest(@NotNull @NotNull String playerName)
    • getPlayerPrivateMail

      CompletionStage<List<Mail>> getPlayerPrivateMail(@NotNull @NotNull String playerName)
    • setPlayerPrivateMail

      CompletionStage<Boolean> setPlayerPrivateMail(@NotNull @NotNull Mail mail)
    • setPublicMail

      CompletionStage<Boolean> setPublicMail(@NotNull @NotNull Mail mail)
    • getPublicMails

      CompletableFuture<List<Mail>> getPublicMails(@NotNull @NotNull String playerName)
    • setMailRead

      CompletionStage<Boolean> setMailRead(@NotNull @NotNull String playerName, @NotNull @NotNull Mail mail)
    • deleteMail

      CompletionStage<Boolean> deleteMail(@NotNull @NotNull Mail mail)
    • setActivePlayerChannel

      void setActivePlayerChannel(String playerName, String channelName)
    • setMutedEntities

      void setMutedEntities(@NotNull @NotNull String playerName, @NotNull @NotNull Set<String> mutedChannels)
    • getAllMutedEntities

      CompletionStage<Map<String,Set<String>>> getAllMutedEntities()
    • getWhitelistEnabledPlayers

      CompletionStage<Set<String>> getWhitelistEnabledPlayers()
    • setWhitelistEnabledPlayer

      void setWhitelistEnabledPlayer(@NotNull @NotNull String playerName, boolean enabled)
    • sendChatMessage

      void sendChatMessage(@NotNull @NotNull ChatMessage chatMessage)
    • publishPlayerList

      void publishPlayerList(@NotNull @NotNull List<String> playerNames)
    • sendRejoin

      void sendRejoin(@NotNull @NotNull String playerName)
    • close

      void close()
    • serialize

      default String serialize(org.bukkit.inventory.ItemStack... items)
    • deserialize

      default org.bukkit.inventory.ItemStack[] deserialize(String source)
    • serializePlayerPlaceholders

      default String serializePlayerPlaceholders(Map<String,String> placeholders)
    • deserializePlayerPlaceholders

      default Map<String,String> deserializePlayerPlaceholders(String source)