Interface UrlMutation


public interface UrlMutation
URL mutations can be used to register custom server-side media hooks or source translators. An example use case would be a custom media server aliased by hypixel:, which can be resolved to https://hypixel.com/media/* by a mutation. See the media api for more information.
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull String
    onRequest(@NotNull String original)
    Translate a custom source to a full media URL.
  • Method Details

    • onRequest

      @NotNull @NotNull String onRequest(@NotNull @NotNull String original)
      Translate a custom source to a full media URL.
      Parameters:
      original - The original source as given in the createMedia method or any command
      Returns:
      the URL that should be used for playback