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

17
LINES

< > BotCompany Repo | #1025346 // lavaPlayer_playerManager

JavaX fragment (include)

1  
static AudioPlayerManager lavaPlayer_playerManager;
2  
svoid cleanMeUp_lavaPlayer_playerManager {
3  
  if (lavaPlayer_playerManager != null) pcall {
4  
    lavaPlayer_playerManager.shutdown();
5  
  }
6  
  lavaPlayer_playerManager = null;
7  
}
8  
9  
static AudioPlayerManager lavaPlayer_playerManager() {
10  
  if (lavaPlayer_playerManager == null) {
11  
    new DefaultAudioPlayerManager playerManager;
12  
    AudioSourceManagers.registerLocalSource(playerManager);
13  
    AudioSourceManagers.registerRemoteSources(playerManager);
14  
    lavaPlayer_playerManager = playerManager;
15  
  }
16  
  ret lavaPlayer_playerManager;
17  
}

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: 210 / 235
Version history: 3 change(s)
Referenced in: [show references]