SHARE
TWEET

Skill level

a guest Jul 27th, 2017 49 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. int kills = 584;
  2. int deaths 475;
  3.  
  4. double kdr = kills / deaths;
  5.  
  6. if(kdr > 1){
  7. #Player already called o_O
  8. player.sendMessage("Good boy");
  9.  
  10. double skill = kdr;
  11.  
  12. switch(skill){
  13. case: 1.1
  14. system.out.println("Player's skill level is greater than 6");
  15. break;
  16.  
  17. case: 1.2
  18. system.out.println("Player's skill level is greater than 7");
  19. break;
  20.  
  21. case: 1.3
  22. system.out.println("Player's skill level is greater than 8");
  23. break;
  24.  
  25. case: 1.4
  26. system.out.println("Player's skill level is greater than 9");
  27. break;
  28. default:
  29. system.out.println("Trash...");
  30. break;
  31.  
  32. }
  33. } else {
  34. player.sendMessage("Bad boy");
  35. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top