We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f4c720c commit af44a27Copy full SHA for af44a27
src/main/java/net/clementraynaud/skoice/bot/BotVoiceChannel.java
@@ -41,12 +41,11 @@ public BotVoiceChannel(Skoice plugin) {
41
42
public void setup(VoiceChannel channel, User user) {
43
VoiceChannel oldVoiceChannel = this.plugin.getConfigYamlFile().getVoiceChannel();
44
+ this.plugin.getConfigYamlFile().set(ConfigField.VOICE_CHANNEL_ID.toString(), channel.getId());
45
if (oldVoiceChannel != null) {
46
oldVoiceChannel.modifyStatus("").queue();
- new InterruptSystemTask(this.plugin).run();
47
+ this.plugin.getListenerManager().update(user);
48
}
- this.plugin.getConfigYamlFile().set(ConfigField.VOICE_CHANNEL_ID.toString(), channel.getId());
49
- this.plugin.getListenerManager().update(user);
50
51
52
public VoiceChannel getVoiceChannel() {
0 commit comments