Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

17
LINES

< > BotCompany Repo | #1025346 // lavaPlayer_playerManager

JavaX fragment (include)

static AudioPlayerManager lavaPlayer_playerManager;
svoid cleanMeUp_lavaPlayer_playerManager {
  if (lavaPlayer_playerManager != null) pcall {
    lavaPlayer_playerManager.shutdown();
  }
  lavaPlayer_playerManager = null;
}

static AudioPlayerManager lavaPlayer_playerManager() {
  if (lavaPlayer_playerManager == null) {
    new DefaultAudioPlayerManager playerManager;
    AudioSourceManagers.registerLocalSource(playerManager);
    AudioSourceManagers.registerRemoteSources(playerManager);
    lavaPlayer_playerManager = playerManager;
  }
  ret lavaPlayer_playerManager;
}

download  show line numbers  debug dex  old transpilations   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1025346
Snippet name: lavaPlayer_playerManager
Eternal ID of this version: #1025346/4
Text MD5: 01f610bda846d26c3b3dfa249ea5800f
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-10-19 23:07:17
Source code size: 593 bytes / 17 lines
Pitched / IR pitched: No / No
Views / Downloads: 209 / 233
Version history: 3 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1025956 - lavaPlayer_createPlayer