gt22

Untitled

Nov 4th, 2016
476
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.63 KB | None | 0 0
  1. public DataList getBlacklistedChannels()
  2.     {
  3.         return getTag("channels").getList("blacklist");
  4.     }
  5.    
  6.     public void addBlacklistedChannel(String id)
  7.     {
  8.         getBlacklistedChannels().add(new DataString(id));
  9.         saveToFile();
  10.     }
  11.    
  12.     public void removeBlacklistedChannel(String id)
  13.     {
  14.         getBlacklistedChannels().remove(new DataString(id));
  15.         saveToFile();
  16.     }
  17.    
  18.     public boolean isBlacklistedChannel(String id)
  19.     {
  20.         return getBlacklistedChannels().contains(new DataString(id));
  21.     }
  22.    
  23.     public boolean hasBlacklistedChannels()
  24.     {
  25.         return getBlacklistedChannels().size() != 0;
  26.     }
  27.    
  28.    
  29.    
  30.     public DataList getWhitelistedChannels()
  31.     {
  32.         return getTag("channels").getList("whitelist");
  33.     }
  34.    
  35.     public void addWhitelistedChannel(String id)
  36.     {
  37.         getWhitelistedChannels().add(new DataString(id));
  38.         saveToFile();
  39.     }
  40.    
  41.     public void removeWhitelistedChannel(String id)
  42.     {
  43.         getWhitelistedChannels().remove(new DataString(id));
  44.         saveToFile();
  45.     }
  46.    
  47.     public boolean isWhitelistedChannel(String id)
  48.     {
  49.         return getWhitelistedChannels().contains(new DataString(id));
  50.     }
  51.    
  52.     public boolean hasWhitelistedChannels()
  53.     {
  54.         return getWhitelistedChannels().size() != 0;
  55.     }
  56.    
  57.    
  58.    
  59.     public DataList getBotonlyChannels()
  60.     {
  61.         return getTag("channels").getList("botonly");
  62.     }
  63.    
  64.     public void addBotonlyChannel(String id)
  65.     {
  66.         getBotonlyChannels().add(new DataString(id));
  67.         saveToFile();
  68.     }
  69.    
  70.     public void removeBotonlyChannel(String id)
  71.     {
  72.         getBotonlyChannels().remove(new DataString(id));
  73.         saveToFile();
  74.     }
  75.    
  76.     public boolean isBotonlyChannel(String id)
  77.     {
  78.         return getBotonlyChannels().contains(new DataString(id));
  79.     }
  80.    
  81.     public boolean hasBotonlyChannels()
  82.     {
  83.         return getBotonlyChannels().size() != 0;
  84.     }
Advertisement
Add Comment
Please, Sign In to add comment