daily pastebin goal
80%
SHARE
TWEET

asdasd

a guest May 27th, 2018 101 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package sonc.game;
  2.  
  3. public class Player {
  4.    
  5.     String user, pass, userCode;
  6.    
  7.     Player(java.lang.String user, java.lang.String pass){  
  8.         this.user = user;
  9.         this.pass = pass;
  10.     }
  11.  
  12.     public boolean authenticate(String oldPassword) {
  13.         if(oldPassword.equals(pass))
  14.             return true;
  15.         return false;
  16.     }
  17.  
  18.     public void setPassword(String newPassword) {
  19.         this.pass=newPassword;
  20.     }
  21.  
  22.     public String getCode() {
  23.         return userCode;
  24.     }
  25.  
  26.     public void setCode(String code) {
  27.         userCode = code;
  28.     }
  29.  
  30.     public void checkCode() {
  31.        
  32.     }
  33. }
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