Package org.kingdoms.services
Class ServiceDiscordSRV
java.lang.Object
org.kingdoms.services.ServiceDiscordSRV
- All Implemented Interfaces:
org.bukkit.event.Listener,org.kingdoms.services.Service
public final class ServiceDiscordSRV
extends Object
implements org.bukkit.event.Listener, org.kingdoms.services.Service
https://github.com/DiscordSRV/DiscordSRV/blob/1590dc9e5f59db1f301b6c48ec504a715b5d4bbd/src/main/java/github/scarsz/discordsrv/DiscordSRV.java#L1667
https://github.com/DiscordSRV/DiscordSRV/blob/master/src/main/java/github/scarsz/discordsrv/util/WebhookUtil.java
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic github.scarsz.discordsrv.dependencies.jda.api.entities.MessageEmbedbuildEmbed(ConfigSection section, MessageBuilder settings) voiddisable()voidenable()static github.scarsz.discordsrv.dependencies.jda.api.entities.TextChannelstatic github.scarsz.discordsrv.dependencies.jda.api.entities.TextChannelstatic voidinit(boolean forceInit) Should not be moved asenable()the bot needs to load.voidvoidstatic voidlogGlobalMessage(org.bukkit.entity.Player player, String str) static voidlogPrivateMessages(org.bukkit.entity.Player player, String str) voidonBotLoad(github.scarsz.discordsrv.api.events.DiscordReadyEvent event) voidonLeaveKingdom(KingdomLeaveEvent event) voidstatic voidsendMessage(github.scarsz.discordsrv.dependencies.jda.api.entities.TextChannel channel, ConfigSection section, MessageBuilder settings) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.kingdoms.services.Service
isAvailable
-
Constructor Details
-
ServiceDiscordSRV
public ServiceDiscordSRV()
-
-
Method Details
-
enable
public void enable()- Specified by:
enablein interfaceorg.kingdoms.services.Service
-
init
public static void init(boolean forceInit) Should not be moved asenable()the bot needs to load. -
onPlayerJoinKingdom
-
onLeaveKingdom
-
kingdomJoinNationEvent
-
kingdomLeaveNationEvent
-
disable
public void disable()- Specified by:
disablein interfaceorg.kingdoms.services.Service
-
logGlobalMessage
-
logPrivateMessages
-
getChannelWithoutChecks
public static github.scarsz.discordsrv.dependencies.jda.api.entities.TextChannel getChannelWithoutChecks(String str) -
getChannelCheckSpecified
public static github.scarsz.discordsrv.dependencies.jda.api.entities.TextChannel getChannelCheckSpecified(KeyedYamlConfigAccessor option) -
sendMessage
public static void sendMessage(github.scarsz.discordsrv.dependencies.jda.api.entities.TextChannel channel, ConfigSection section, MessageBuilder settings) -
buildEmbed
public static github.scarsz.discordsrv.dependencies.jda.api.entities.MessageEmbed buildEmbed(ConfigSection section, MessageBuilder settings) -
onBotLoad
public void onBotLoad(github.scarsz.discordsrv.api.events.DiscordReadyEvent event)
-