3
0
Mirror von https://github.com/PaperMC/Velocity.git synchronisiert 2024-11-17 05:20:14 +01:00

Undeprecate CommandManager#register(String, Command, String...)

This is a very convenient shorthand so let's save it from being axed. This is a change I made for an eventual Velocity 2.0.0 but it is backwards compatible for 1.1.0.
Dieser Commit ist enthalten in:
Andrew Steinborn 2020-10-22 00:14:41 -04:00
Ursprung a6e708c98e
Commit e3eace6a56

Datei anzeigen

@ -46,9 +46,7 @@ public interface CommandManager {
* @param command the command to register * @param command the command to register
* @param otherAliases additional aliases * @param otherAliases additional aliases
* @throws IllegalArgumentException if one of the given aliases is already registered * @throws IllegalArgumentException if one of the given aliases is already registered
* @deprecated Prefer {@link #register(CommandMeta, Command)} instead.
*/ */
@Deprecated
void register(String alias, Command command, String... otherAliases); void register(String alias, Command command, String... otherAliases);
/** /**