/[projects]/miscJava/bukkit-minecraft-plugins/HoerupUtils/src/main/java/dk/thoerup/bukkit/hoeruputils/chests/AdvancedChest.java
ViewVC logotype

Diff of /miscJava/bukkit-minecraft-plugins/HoerupUtils/src/main/java/dk/thoerup/bukkit/hoeruputils/chests/AdvancedChest.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3132 by torben, Mon Mar 9 14:00:35 2015 UTC revision 3133 by torben, Fri Nov 18 13:14:07 2016 UTC
# Line 183  public class AdvancedChest  implements L Line 183  public class AdvancedChest  implements L
183                                  return true;                                  return true;
184                          }                          }
185                                                    
186                          @SuppressWarnings("deprecation")//user by name is our only option here                          //@SuppressWarnings("deprecation")//user by name is our only option here
187                          OfflinePlayer p2 = server.getOfflinePlayer(args[1]);                          OfflinePlayer p2 = server.getOfflinePlayer(args[1]);
188                                                    
189                          if ( p2.hasPlayedBefore() == false && p2.isOnline() == false) {                          if ( p2.hasPlayedBefore() == false && p2.isOnline() == false) {
# Line 211  public class AdvancedChest  implements L Line 211  public class AdvancedChest  implements L
211                                  return true;                                  return true;
212                          }                          }
213                                                    
214                          @SuppressWarnings("deprecation")//user by name is our only option here                          //@SuppressWarnings("deprecation")//user by name is our only option here
215                          OfflinePlayer p2 = server.getOfflinePlayer(args[1]);                          OfflinePlayer p2 = server.getOfflinePlayer(args[1]);
216                          if ( p2.hasPlayedBefore() == false && p2.isOnline() == false) {                          if ( p2.hasPlayedBefore() == false && p2.isOnline() == false) {
217                                  player.sendMessage("Unknown user: " + args[1] );                                  player.sendMessage("Unknown user: " + args[1] );

Legend:
Removed from v.3132  
changed lines
  Added in v.3133

  ViewVC Help
Powered by ViewVC 1.1.20