mirror of
https://github.com/Aust1n46/VentureChat.git
synced 2025-05-23 02:19:05 +00:00
Return hashset to remove duplicates caused by aliases.
This commit is contained in:
parent
dc3affef76
commit
3f411d73d5
@ -3,6 +3,7 @@ package mineverse.Aust1n46.chat.channel;
|
|||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
|
import java.util.HashSet;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import org.bukkit.ChatColor;
|
import org.bukkit.ChatColor;
|
||||||
@ -99,10 +100,10 @@ public class ChatChannel {
|
|||||||
/**
|
/**
|
||||||
* Get list of chat channels.
|
* Get list of chat channels.
|
||||||
*
|
*
|
||||||
* @return {@link List}<{@link ChatChannel}>
|
* @return {@link Collection}<{@link ChatChannel}>
|
||||||
*/
|
*/
|
||||||
public static Collection<ChatChannel> getChatChannels() {
|
public static Collection<ChatChannel> getChatChannels() {
|
||||||
return chatChannels.values();
|
return new HashSet<ChatChannel>(chatChannels.values());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user