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; |
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) { |
228 |
continue; |
continue; |
229 |
if (type == 68) // sign |
if (type == 68) // sign |
230 |
continue; |
continue; |
231 |
|
if (type == 65) // ladder |
232 |
|
continue; |
233 |
|
if (type == 67) // steps |
234 |
|
continue; |
235 |
} |
} |
236 |
|
|
237 |
world.getBlockAt(x, y, z).setTypeIdAndData(type, data, true); |
world.getBlockAt(x, y, z).setTypeIdAndData(type, data, true); |