Class StorageConfig.RemoteConnection

java.lang.Object
xyz.srnyx.annoyingapi.storage.StorageConfig.RemoteConnection
Enclosing class:
StorageConfig

public class StorageConfig.RemoteConnection extends Object
The remote connection details/properties
  • Field Details

    • host

      @NotNull public final @NotNull String host
      The remote host
    • port

      public final int port
      The remote port
    • database

      @NotNull public final @NotNull String database
      The remote database name
    • username

      @Nullable public final @Nullable String username
      The remote username
    • password

      @Nullable public final @Nullable String password
      The remote password
    • tablePrefix

      @NotNull public final @NotNull String tablePrefix
      The table prefix for the remote database
      Defaults to the plugin name in lowercase with all non-alphanumeric characters removed + an underscore
    • properties

      @NotNull public final @NotNull Map<String,String> properties
      Additional custom properties for the remote connection
  • Constructor Details

    • RemoteConnection

      public RemoteConnection(@NotNull @NotNull org.bukkit.configuration.ConfigurationSection section)
      Construct a new StorageConfig.RemoteConnection instance to parse the remote-connection section
      Parameters:
      section - the remote-connection section