Browse Source

refactoring: compressed return of getUseMessage()

remotes/origin/fight-engine
fdai7430 2 years ago
parent
commit
5304e84c6c
  1. 3
      src/main/java/org/bitbiome/commands/UseCommand.java

3
src/main/java/org/bitbiome/commands/UseCommand.java

@ -10,8 +10,7 @@ public class UseCommand implements CommandAPI {
private String getUseMessage(String msg) {
String message[] = msg.split(" on ");
String returnString = useItem(message[0], message[1]);
return returnString;
return useItem(message[0], message[1]);
}
private String useItem(String item, String target) {

Loading…
Cancel
Save