/[projects]/miscJava/minecraft-plugins/hoeruputils/src/HoerupUtils.java
ViewVC logotype

Diff of /miscJava/minecraft-plugins/hoeruputils/src/HoerupUtils.java

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

revision 1201 by torben, Sat Dec 4 11:38:36 2010 UTC revision 1202 by torben, Sat Dec 4 21:32:52 2010 UTC
# Line 261  public class HoerupUtils extends Plugin Line 261  public class HoerupUtils extends Plugin
261                  }                  }
262    
263                  private void setSurface(Player player, String[] split) {                  private void setSurface(Player player, String[] split) {
264                          int valid_block_array[] = {1, 2, 3, 4, 5, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 35, 41, 42, 43, 44, 45, 46, 48, 49, 56, 57, 73, 74, 79, 80, 82} ;                          int valid_block_array[] = {1, 2, 3, 4, 5, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 35, 41, 42, 43, 44, 45, 48, 49, 56, 57, 73, 74, 79, 80, 82} ;
265    
266                          final int BLOCK_MAX = 86;                          final int BLOCK_MAX = 86;
267    
# Line 345  public class HoerupUtils extends Plugin Line 345  public class HoerupUtils extends Plugin
345                          }                          }
346                                                    
347                          if (split.length == 3) {                          if (split.length == 3) {
348                                    int id;
349                                  try {                                  try {
350                                          Integer.parseInt( split[2] );                                          id = Integer.parseInt( split[2] );
351                                  } catch (Exception e) {                                  } catch (Exception e) {
352                                          player.sendMessage(split[0] + ": radius must be an integer");                                          player.sendMessage(split[0] + ": id must be an integer");
353                                          return false;                                          return false;
354                                  }                                  }
355                                    if ( id == 46) {
356                                            player.sendMessage("Sorry dave, i can't do that");
357                                            return false;
358                                    }
359                                    
360                          }                          }
361    
362                          return true;                          return true;

Legend:
Removed from v.1201  
changed lines
  Added in v.1202

  ViewVC Help
Powered by ViewVC 1.1.20