public Perms(Client client){
        this.c = client;
        try{
          if(!f.exists()) {
            System.out.println("Working Directory = " + System.getProperty("user.dir"));
            URL inputUrl = getClass().getResource("/PermissionsCopy.txt");
            FileUtils.copyURLToFile(inputUrl, f);
          }
          Scanner s = new Scanner(f);
          commandPerms = new TreeMap<Integer, List<String>>();
          userPerms = new TreeMap<String, Integer>();
          while(s.hasNextLine()) {
              commandPerms.put(Integer.parseInt(s.nextLine()), new ArrayList<String>(Arrays.asList(s.nextLine().split(" "))));
          }
          s.close();
          if(usr.exists()){
              Scanner sc = new Scanner(usr);
              while(sc.hasNextLine()){
                  String[] line = sc.nextLine().split(" ");
                  if(line.length > 1){
                     userPerms.put(line[0], Integer.parseInt(line[1]));
                  }else{
                     c.gui.addText(ChatColor.DARK_RED + "Error! Incorect file format found!");  
                  }
              }
              sc.close();
          }
        }catch(FileNotFoundException e){
            c.gui.addText("Warning: Permissions file could not be found");
        }catch(NumberFormatException e){
            c.gui.addText("Warning: Incorect file syntax (what should be a numer was unparsable)");
        } catch (IOException e) {
            c.gui.addText("Fatal IO error: " + e.getMessage());
        }
    }