Advertisement
Guest User

Untitled

a guest
Jul 30th, 2015
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 2.62 KB | None | 0 0
  1. if (getConfig().get("PlayerStats." + p.getUniqueId() + ".Kills") == null) {
  2. /*  267: 281 */         this.kills = 0;
  3. /*  268:     */       } else {
  4. /*  269: 283 */         this.kills = getConfig().getInt("PlayerStats." + p.getUniqueId() + ".Kills");
  5. /*  270:     */       }
  6. /*  271: 286 */       if (getConfig().get("PlayerStats." + p.getUniqueId() + ".Deaths") == null) {
  7. /*  272: 287 */         this.Deaths = 0;
  8. /*  273:     */       } else {
  9. /*  274: 289 */         this.Deaths = getConfig().getInt("PlayerStats." + p.getUniqueId() + ".Deaths");
  10. /*  275:     */       }
  11. /*  276: 292 */       if (getConfig().get("PlayerStats." + p.getUniqueId() + ".Bandaged") == null) {
  12. /*  277: 293 */         this.Bandaged = 0;
  13. /*  278:     */       } else {
  14. /*  279: 295 */         this.Bandaged = getConfig().getInt("PlayerStats." + p.getUniqueId() + ".Bandaged");
  15. /*  280:     */       }
  16. /*  281: 298 */       this.KD = 0;
  17. /*  282: 300 */       if ((this.Deaths == 0) &&
  18. /*  283: 301 */         (this.kills == 0)) {
  19. /*  284: 302 */         this.KD = 0;
  20. /*  285:     */       }
  21. /*  286: 306 */       if (this.kills >= this.Deaths)
  22. /*  287:     */       {
  23. /*  288: 307 */         if (this.Deaths == 0) {
  24. /*  289: 308 */           this.KD = this.kills;
  25. /*  290:     */         } else {
  26. /*  291: 310 */           this.KD = (this.kills / this.Deaths);
  27. /*  292:     */         }
  28. /*  293:     */       }
  29. /*  294: 312 */       else if (this.Deaths >= this.kills)
  30. /*  295:     */       {
  31. /*  296: 313 */         if (this.Deaths == 0) {
  32. /*  297: 314 */           this.KD = this.kills;
  33. /*  298: 316 */         } else if (this.kills == 0) {
  34. /*  299: 317 */           this.KD = (this.Deaths - this.Deaths * 2);
  35. /*  300:     */         } else {
  36. /*  301: 319 */           this.KD = (this.Deaths / this.kills);
  37. /*  302:     */         }
  38. /*  303:     */       }
  39. /*  304: 322 */       else if (this.Deaths == 0)
  40. /*  305:     */       {
  41. /*  306: 323 */         if (this.kills > 0) {
  42. /*  307: 324 */           this.KD = this.kills;
  43. /*  308:     */         } else {
  44. /*  309: 326 */           this.KD = 0;
  45. /*  310:     */         }
  46. /*  311:     */       }
  47. /*  312: 328 */       else if (this.kills == 0)
  48. /*  313:     */       {
  49. /*  314: 329 */         if (this.Deaths > 0) {
  50. /*  315: 330 */           this.KD = (this.Deaths - this.Deaths * 2);
  51. /*  316:     */         } else {
  52. /*  317: 332 */           this.KD = 0;
  53. /*  318:     */         }
  54. /*  319:     */       }
  55. /*  320: 334 */       else if ((this.Deaths > 0) &&
  56. /*  321: 335 */         (this.kills == 0)) {
  57. /*  322: 336 */         this.KD = (this.Deaths - this.Deaths * 2);
  58. /*  323:     */       }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement