Advertisement
Guest User

Untitled

a guest
Dec 19th, 2014
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.46 KB | None | 0 0
  1.     public static void WykonajAwans(Player player){
  2.         if (pobierzDoswiadczenieGracza(player) > 100){
  3.             ustawPoziomGracza(player, 1);
  4.         }
  5.     }
  6.     public static void ustawPoziomGracza(Player player, Integer poziom){
  7.         player.setLevel(pobierzPoziomGracza(player) + poziom);
  8.     }
  9.     public static Integer pobierzPoziomGracza(Player player){
  10.         return player.getLevel();
  11.     }
  12.     public static Float pobierzDoswiadczenieGracza(Player player){
  13.         return player.getExp();
  14.        
  15.     }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement