Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- List<Channel> channels = api.getChannels();
- Map<Integer, Channel> channelMap = new HashMap<>(channels.size());
- for (Channel channel : channels) {
- channelMap.put(channel.getId(), channel);
- }// List all clients in the console
- for (Channel d : api.getChannels()) {
- // Get the client's channel
- Channel channel = channelMap.get(d.getParentChannelId());
- if (d.getParentChannelId()==2446){
- String[] tab = new String[10];
- int i = 0;
- //int i="";
- tab[i] = i + d.getName();
- String nowe = d.getName();
- // Write the client and channel name into the console
- System.out.println(d.getName()+"||||||||||"+tab[i]);
- final HashMap<ChannelProperty, String> propertiesa = new HashMap<>();
- //propertiesa.put(ChannelProperty.CHANNEL_DESCRIPTION, "[center]╔═●═●═●═●═●═●═●═●═●═●═●═●═●═●═●═●═●═╗" + System.lineSeparator() + System.lineSeparator()+ "[color=red][b]Podkanały:[/b][/color]"+System.lineSeparator()+ tab[0]+System.lineSeparator()+ tab[1]+System.lineSeparator()+ tab[2]+System.lineSeparator()+ tab[3]+System.lineSeparator()+ tab[4]+System.lineSeparator()+ tab[5]+System.lineSeparator()+ tab[6]+System.lineSeparator()+ tab[7]+System.lineSeparator()+ tab[8]+System.lineSeparator()+ tab[9]+System.lineSeparator()+ tab[10]);
- //api.editChannel(2446, propertiesa);
- }}
Advertisement
Add Comment
Please, Sign In to add comment