/[projects]/miscJava/bukkit-minecraft-plugins/HoerupUtils/src/main/java/dk/thoerup/bukkit/hoeruputils/TemplateCommand.java |
Parent Directory | Revision Log | Patch
revision 1743 by torben, Sun Mar 18 10:52:16 2012 UTC | revision 1744 by torben, Sun Mar 18 11:00:09 2012 UTC | |
---|---|---|
# | Line 127 public class TemplateCommand implements | Line 127 public class TemplateCommand implements |
127 | String element = elements[i].trim(); | String element = elements[i].trim(); |
128 | int val = Integer.parseInt( element ); | int val = Integer.parseInt( element ); |
129 | ||
130 | if (val < 0 || val>255) { | |
131 | plugin.getLogger().info( "Template: invalid value on line " + lines + ": " + val ); | |
132 | return null; | |
133 | } | |
134 | array[x][y][i] = val; | array[x][y][i] = val; |
135 | ||
136 | } catch (Exception e) { | } catch (Exception e) { |
|
ViewVC Help | |
Powered by ViewVC 1.1.20 |