Skip to content

Commit

Permalink
~ change scanner.next() to scanner.nextLine() to allow spaces in serv…
Browse files Browse the repository at this point in the history
…er commands (cheating, etc.)

~ fix small spelling error in cheat()
  • Loading branch information
milanvanzanten committed Jul 1, 2015
1 parent 2509d05 commit 1a339b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/server/Server.java
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ public void cheat(String text) {
return;
}
if(newRoundCount <= 0) {
log(Level.INFO, "If cheat, cheat right. Round count below zero.");
log(Level.INFO, "If cheat, cheat right. Round count below one.");
return;
}
match.setRoundCount(newRoundCount);
Expand Down
2 changes: 1 addition & 1 deletion src/server/shells/LineShell.java
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public void run() {
//noinspection InfiniteLoopStatement
while (true) {
System.out.print("sb> ");
String rawCmd = scanner.next();
String rawCmd = scanner.nextLine();

CommandParser.parse(rawCmd, server);
}
Expand Down

0 comments on commit 1a339b7

Please sign in to comment.