Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(args[0].equalsIgnoreCase("give") && p.hasPermission("points.modify")) {
- String casa = args[1];
- String puntos = args[2];
- int base = main.puntosConfiguration.getInt(casa);
- if(main.puntosConfiguration.contains(casa)){
- try {
- int moneyInt = Integer.parseInt(puntos);
- p.sendMessage(main.color("§2Has añadido " + moneyInt + " §2a la casa " + casa));
- main.puntosConfiguration.set("Gryffondor", base + puntos);
- main.guardarConfiguracion();
- }catch(NumberFormatException e){
- e.printStackTrace();
- return true;
- }
- }else{
- p.sendMessage(main.color("§4The house " + casa + " is not registered!"));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement