Advertisement
xlrnxnlx

searchFrPlayer

Oct 16th, 2014
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.30 KB | None | 0 0
  1. protected PlayerData searchForPlayer(final int id){
  2.   Player temp = PlayerDataAccess.getPlayerInfoById(id);
  3.   if(temp == null)
  4.     throw new NullPointerException("Jogador/id inexistente.");
  5.   PlayerDataHandler plData = (PlayerDataHandler) temp;
  6.   return PlayerData.serialize(plData).use("simple_format");
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement