Class HostedDiscordPlatform

java.lang.Object
net.lucypoulton.squirtgun.discord.DiscordPlatform
net.lucypoulton.squirtgun.discord.hosted.HostedDiscordPlatform
All Implemented Interfaces:
net.lucypoulton.squirtgun.platform.Platform

public class HostedDiscordPlatform extends DiscordPlatform
  • Constructor Details

    • HostedDiscordPlatform

      public HostedDiscordPlatform(net.dv8tion.jda.api.JDA jda, net.lucypoulton.squirtgun.platform.Platform parent, String prefix, DiscordLinkHandler linkHandler)
  • Method Details

    • parent

      public net.lucypoulton.squirtgun.platform.Platform parent()
    • getLogger

      public Logger getLogger()
    • getTaskScheduler

      public net.lucypoulton.squirtgun.platform.scheduler.TaskScheduler getTaskScheduler()
    • getEventManager

      public net.lucypoulton.squirtgun.platform.event.EventManager getEventManager()
    • getConsole

      public net.lucypoulton.squirtgun.platform.audience.SquirtgunUser getConsole()
    • getPlayer

      public DiscordUser getPlayer(UUID uuid)
      Description copied from class: DiscordPlatform
      Gets a DiscordUser from a user's Minecraft UUID.
      Specified by:
      getPlayer in interface net.lucypoulton.squirtgun.platform.Platform
      Specified by:
      getPlayer in class DiscordPlatform
      Parameters:
      uuid - the UUID of the player to get
      Returns:
      a SquirtgunPlayer if the user is known and has a linked Discord account, otherwise null
    • getPlayer

      @Nullable public @Nullable DiscordUser getPlayer(String name)
      Description copied from class: DiscordPlatform
      Gets a DiscordUser from a user's Minecraft username.
      Specified by:
      getPlayer in interface net.lucypoulton.squirtgun.platform.Platform
      Specified by:
      getPlayer in class DiscordPlatform
      Parameters:
      name - the name of the player to get
      Returns:
      a SquirtgunPlayer if the user is known has a linked Discord account, otherwise null
    • getConfigPath

      public Path getConfigPath(net.lucypoulton.squirtgun.plugin.SquirtgunPlugin<?> plugin)