<groupId>de.ddnss.eternal.utils</groupId>
<artifactId>utils</artifactId>
- <version>1.3</version>
+ <version>1.3.1</version>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
return this;
};
+ /**
+ * Binds arguments to the command
+ *
+ * @param key HashMap key
+ * @param value HashMap value
+ * @return the {@link Command} object itself
+ * @since 1.3.1
+ */
+ public Command bindArguments(String key, String value) {
+ this.arguments.put(key, value);
+ return this;
+ };
+
/**
* Executes a command with a {@link GenericCommandOption}
*
return this;
};
+ /**
+ * Binds arguments to the command
+ *
+ * @param key HashMap key
+ * @param value HashMap value
+ * @return the {@link Command} object itself
+ * @since 1.3.1
+ */
+ public GenericCommand<E> bindArguments(String key, E value) {
+ this.arguments.put(key, value);
+ return this;
+ };
+
/**
* Executes a command with a {@link GenericCommandOption}
*
break;
}
- command.getCommand().bindArguments(new CommandOption("SAY", parts[0])).exec();
+ command.getCommand().bindArguments(new CommandOption()).exec();
}
}
}