Class HostedDiscordPlatform
java.lang.Object
net.lucypoulton.squirtgun.discord.DiscordPlatform
net.lucypoulton.squirtgun.discord.hosted.HostedDiscordPlatform
- All Implemented Interfaces:
net.lucypoulton.squirtgun.platform.Platform
-
Constructor Summary
ConstructorDescriptionHostedDiscordPlatform(net.dv8tion.jda.api.JDA jda, net.lucypoulton.squirtgun.platform.Platform parent, String prefix, DiscordLinkHandler linkHandler)
-
Method Summary
Modifier and TypeMethodDescriptiongetConfigPath(net.lucypoulton.squirtgun.plugin.SquirtgunPlugin<?> plugin)
net.lucypoulton.squirtgun.platform.audience.SquirtgunUser
net.lucypoulton.squirtgun.platform.event.EventManager
@Nullable DiscordUser
Gets a DiscordUser from a user's Minecraft username.Gets a DiscordUser from a user's Minecraft UUID.net.lucypoulton.squirtgun.platform.scheduler.TaskScheduler
net.lucypoulton.squirtgun.platform.Platform
parent()
Methods inherited from class net.lucypoulton.squirtgun.discord.DiscordPlatform
audiences, getAuthMode, getOnlinePlayers, jda, log, name, registerCommand
-
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
-
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
Description copied from class:DiscordPlatform
Gets a DiscordUser from a user's Minecraft UUID.- Specified by:
getPlayer
in interfacenet.lucypoulton.squirtgun.platform.Platform
- Specified by:
getPlayer
in classDiscordPlatform
- 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
Description copied from class:DiscordPlatform
Gets a DiscordUser from a user's Minecraft username.- Specified by:
getPlayer
in interfacenet.lucypoulton.squirtgun.platform.Platform
- Specified by:
getPlayer
in classDiscordPlatform
- 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
-