Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Mindgamesnl committed May 6, 2024
1 parent 0f58745 commit 19febe7
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion plugin/src/main/bash/data.bin
Original file line number Diff line number Diff line change
@@ -1 +1 @@
BUILD_NUM="1429"
BUILD_NUM="1430"
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ public void onExecute(User sender, String[] args) {
}

// is the target already in a channel?
for (ClientConnection member : channel.getMembers()) {
if (member.getOwner().getUniqueId().equals(target.getUniqueId())) {
for (Client member : channel.getMembers()) {
if (member.getActor().getUniqueId().equals(target.getUniqueId())) {
throw new CommandError(StorageKey.MESSAGE_VOICE_CHANNEL_TARGET_ALREADY_MEMBER.getString());
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.craftmend.openaudiomc.spigot.modules.voicechat.commands;

import com.craftmend.openaudiomc.api.clients.Client;
import com.craftmend.openaudiomc.generic.client.objects.ClientConnection;
import com.craftmend.openaudiomc.generic.commands.interfaces.SubCommand;
import com.craftmend.openaudiomc.generic.commands.objects.Argument;
Expand Down Expand Up @@ -39,14 +40,14 @@ public void onExecute(User sender, String[] args) {

for (Channel channel : channels) {
StringBuilder readableOccupants;
Collection<ClientConnection> occupants = channel.getMembers();
Collection<Client> occupants = channel.getMembers();
if (occupants.isEmpty()) {
readableOccupants = new StringBuilder(OaColor.RED + "[empty]");
} else {
int size = occupants.size();
int i = 0;
readableOccupants = new StringBuilder(OaColor.GREEN + "[");
for (ClientConnection occupant : occupants) {
for (Client occupant : occupants) {
readableOccupants.append(occupant.getActor().getName());
if (i < size - 1) {
readableOccupants.append(", ");
Expand Down
2 changes: 1 addition & 1 deletion plugin/src/main/resources/data.bin
Original file line number Diff line number Diff line change
@@ -1 +1 @@
BUILD_NUM="1429"
BUILD_NUM="1430"
4 changes: 2 additions & 2 deletions plugin/src/main/resources/openaudiomc-build.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
BUILD_VERSION="1429"
BUILD_COMMIT="f389fefd73f2cf59f26c92e5dd3946b3eca89d92"
BUILD_VERSION="1430"
BUILD_COMMIT="0f58745da86bedcc0dd4ec12109fa5c6fd3a5c8e"
BUILD_AUTHOR="Mats"

0 comments on commit 19febe7

Please sign in to comment.