Advertisement
Guest User

Untitled

a guest
Jun 24th, 2018
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.71 KB | None | 0 0
  1.                     if(args[0].equalsIgnoreCase("give") && p.hasPermission("points.modify")) {
  2.                         String casa = args[1];
  3.                         String puntos = args[2];
  4.                         int base = main.puntosConfiguration.getInt(casa);
  5.                         if(main.puntosConfiguration.contains(casa)){
  6.                             try {
  7.                                 int moneyInt = Integer.parseInt(puntos);
  8.                                 p.sendMessage(main.color("§2Has añadido " + moneyInt + " §2a la casa " + casa));
  9.                                 main.puntosConfiguration.set("Gryffondor", base + puntos);
  10.                                 main.guardarConfiguracion();
  11.                             }catch(NumberFormatException e){
  12.                                 e.printStackTrace();
  13.                                 return true;
  14.                             }
  15.                         }else{
  16.                             p.sendMessage(main.color("§4The house " + casa + " is not registered!"));
  17.                         }
  18.                     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement