private void displayCommand(Command c, Player p) { p.sendMessage("-------------Command Arguments---------------"); p.sendMessage("--------------------------------------------"); for (Argument arg : c.listArguments()) { p.sendMessage(arg.toString()); } }
@Override public String toString() { StringBuilder sb = new StringBuilder("::" + function); if (args.length > 0) { sb.append("("); for (Argument arg : args) { sb.append(arg.toString()); sb.append(", "); } sb.setLength(sb.length() - 2); sb.append(")"); } return sb.toString(); }
public String toString() { return name + "(" + arg1.toString() + "," + arg2.toString() + ")"; }