Skip to content

Commit af44a27

Browse files
committed
Do not interrupt system when switching lobby
1 parent f4c720c commit af44a27

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/main/java/net/clementraynaud/skoice/bot/BotVoiceChannel.java

+2-3
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,11 @@ public BotVoiceChannel(Skoice plugin) {
4141

4242
public void setup(VoiceChannel channel, User user) {
4343
VoiceChannel oldVoiceChannel = this.plugin.getConfigYamlFile().getVoiceChannel();
44+
this.plugin.getConfigYamlFile().set(ConfigField.VOICE_CHANNEL_ID.toString(), channel.getId());
4445
if (oldVoiceChannel != null) {
4546
oldVoiceChannel.modifyStatus("").queue();
46-
new InterruptSystemTask(this.plugin).run();
47+
this.plugin.getListenerManager().update(user);
4748
}
48-
this.plugin.getConfigYamlFile().set(ConfigField.VOICE_CHANNEL_ID.toString(), channel.getId());
49-
this.plugin.getListenerManager().update(user);
5049
}
5150

5251
public VoiceChannel getVoiceChannel() {

0 commit comments

Comments
 (0)