Hakens

Untitled

Dec 20th, 2016
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.43 KB | None | 0 0
  1. List<Channel> channels = api.getChannels();
  2.                 Map<Integer, Channel> channelMap = new HashMap<>(channels.size());
  3.                 for (Channel channel : channels) {
  4.                     channelMap.put(channel.getId(), channel);
  5.                 }// List all clients in the console
  6.                 for (Channel d : api.getChannels()) {
  7.                    
  8.                     // Get the client's channel
  9.                     Channel channel = channelMap.get(d.getParentChannelId());
  10.                     if (d.getParentChannelId()==2446){
  11.                         String[] tab = new String[10];
  12.                         int i = 0;
  13.                         //int i="";
  14.                         tab[i] = i + d.getName();
  15.                     String nowe = d.getName();
  16.                
  17.                     // Write the client and channel name into the console
  18.                     System.out.println(d.getName()+"||||||||||"+tab[i]);
  19.                    
  20.                     final HashMap<ChannelProperty, String> propertiesa = new HashMap<>();
  21.                    
  22.                     //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]);
  23.                     //api.editChannel(2446, propertiesa);
  24.                     }}
Advertisement
Add Comment
Please, Sign In to add comment