Skip to content

Commit a0a1262

Browse files
committed
Revert "Set lobby status and permissions right after selection"
This reverts commit afcf257.
1 parent 85be4a1 commit a0a1262

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,11 @@ public void setup(VoiceChannel channel, User user) {
4545
oldVoiceChannel.modifyStatus("").queue();
4646
}
4747

48-
this.plugin.getBot().getVoiceChannel().setStatus();
49-
this.plugin.getBot().getVoiceChannel().updatePermissions();
50-
5148
if (this.plugin.getBot().getStatus() == BotStatus.READY) {
5249
this.plugin.getBot().getVoiceChannel().notifyUnlinkedUsers();
50+
this.plugin.getBot().getVoiceChannel().setStatus();
51+
this.plugin.getBot().getVoiceChannel().updatePermissions();
52+
this.plugin.getBot().updateVoiceState();
5353
} else {
5454
this.plugin.getListenerManager().update(user);
5555
}

src/main/java/net/clementraynaud/skoice/system/ListenerManager.java

+2
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ public void update(User user) {
7575
this.registerBotListeners();
7676
this.plugin.getLinksYamlFile().refreshOnlineLinkedPlayers();
7777
this.plugin.getBot().getVoiceChannel().notifyUnlinkedUsers();
78+
this.plugin.getBot().getVoiceChannel().setStatus();
79+
this.plugin.getBot().getVoiceChannel().updatePermissions();
7880
this.plugin.getBot().updateVoiceState();
7981
this.plugin.getUpdateNetworksTask().start();
8082
this.plugin.getLogger().info(this.plugin.getLang().getMessage("logger.info.configuration-complete"));

0 commit comments

Comments
 (0)