Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2019
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. ConfigurationSection section_Checkpoint = getConfig().getConfigurationSection("checkpoints");
  2.  
  3. if(!section_Checkpoint.getKeys(false).isEmpty()){
  4. for(String checkpoint : section_Checkpoint.getKeys(false)) {
  5. int number = section_Checkpoint.getInt(checkpoint + ".number");
  6. String location = section_Checkpoint.getString(checkpoint + ".location");
  7. this.checkpoints.add(new CheckPoint(number, getParseLoc(location)));
  8. }
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement