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 Details

    • ServiceDiscordSRV

      public ServiceDiscordSRV()
  • Method Details

    • enable

      public void enable()
      Specified by:
      enable in interface org.kingdoms.services.Service
    • init

      public static void init(boolean forceInit)
      Should not be moved as enable() the bot needs to load.
    • onPlayerJoinKingdom

      public void onPlayerJoinKingdom(KingdomJoinEvent event)
    • onLeaveKingdom

      public void onLeaveKingdom(KingdomLeaveEvent event)
    • kingdomJoinNationEvent

      public void kingdomJoinNationEvent(NationJoinEvent event)
    • kingdomLeaveNationEvent

      public void kingdomLeaveNationEvent(NationLeaveEvent event)
    • disable

      public void disable()
      Specified by:
      disable in interface org.kingdoms.services.Service
    • logGlobalMessage

      public static void logGlobalMessage(org.bukkit.entity.Player player, String str)
    • logPrivateMessages

      public static void logPrivateMessages(org.bukkit.entity.Player player, String str)
    • 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)