Advertisement
Joshb_

Untitled

Nov 9th, 2020
889
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.71 KB | None | 0 0
  1.  private void initializeDiscord(){
  2.         if(Settings.getInstance().getConfig().getBoolean("Discord.Discord-Hook")){
  3.             if(Bukkit.getPluginManager().getPlugin("DiscordSRV") != null){
  4.                 DiscordData.getInstance().initialize();
  5.                 discordMessageListener = new DiscordSRVListener();
  6.                 System.out.println("[TicketGUI] DiscordSRV found. Enabling Hook. Registering Listeners");
  7.                 DiscordSRV.api.subscribe(discordMessageListener);
  8.             } else {
  9.                 System.out.println("[TicketGUI] DiscordSRV not found. Not Enabling Hook. Set this to false in" +
  10.                         " settings.yml if you are not using this.");
  11.             }
  12.         }
  13.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement