Skip to content
Snippets Groups Projects
Commit 05730d00 authored by leinolm's avatar leinolm
Browse files

fix

parent 0e5d44cd
No related branches found
No related tags found
No related merge requests found
...@@ -18,7 +18,7 @@ public class Commands { ...@@ -18,7 +18,7 @@ public class Commands {
komennot = new ArrayList<Command>(); komennot = new ArrayList<Command>();
add("help",(o,z) -> { add("help",(o,z) -> {
if (z.length<2) {o.printf("Kaytto : help <command>%ntunnetut komennot: "); for (Command c: komennot) o.printf("%s ",c.getNimi()); o.println();} if (z.length<2) {o.printf("Kaytto : help <command>%ntunnetut komennot: "); for (Command c: komennot) o.printf("%s ",c.getNimi()); o.println();}
else System.out.println(get(z[1]).getOhje()); else o.println(get(z[1]).getOhje());
},"help <komento>"); },"help <komento>");
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment