SteamWar/SpigotCore
Archiviert
13
0

Fix SWCommand add HelpRegisters

Dieser Commit ist enthalten in:
yoyosource 2021-03-30 13:54:53 +02:00
Ursprung c9e8b31aa4
Commit 501803b05c

Datei anzeigen

@ -90,7 +90,7 @@ public abstract class SWCommand {
addMapper(ClassMapper.class, method, i -> i == 0, false, TypeMapper.class, (anno, typeMapper) -> {
SWCommandUtils.addMapper(anno.value().getTypeName(), typeMapper);
});
add(Register.class, method, i -> i > 2, true, null, (anno, parameters) -> {
add(Register.class, method, i -> i > 0, true, null, (anno, parameters) -> {
if (!anno.help()) {
return;
}