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

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

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

revision 1752 by torben, Mon Mar 19 08:09:08 2012 UTC revision 1755 by torben, Mon Mar 19 10:01:12 2012 UTC
# Line 53  public class TemplateCommand implements Line 53  public class TemplateCommand implements
53                          return true;                          return true;
54                  }                                }              
55    
56                  File templateFile = new File( plugin.getDataFolder(), "template_" + args[0] + ".txt");                            File templateFile = new File( plugin.getDataFolder(), "templates/" + args[0] + ".txt");        
57                  if (! templateFile.exists()  ) {                  if (! templateFile.exists()  ) {
58                          sender.sendMessage( ChatColor.YELLOW + "Template not found" );                          sender.sendMessage( ChatColor.YELLOW + "Template not found" );
59                          return true;                          return true;
# Line 122  public class TemplateCommand implements Line 122  public class TemplateCommand implements
122    
123                          if (line.charAt(0) == '-')                          if (line.charAt(0) == '-')
124                                  continue;                                  continue;
125                            
126                            if ( y >= ysize) {
127                                    throw new Exception( "Template: found more levels in file than specified in header" );
128                            }
129    
130                          String elements[] = line.split(",");                          String elements[] = line.split(",");
131                          if (elements.length != zsize) {                          if (elements.length != zsize) {

Legend:
Removed from v.1752  
changed lines
  Added in v.1755

  ViewVC Help
Powered by ViewVC 1.1.20