Skip to content

Commit c1a6d5b

Browse files
authored
Merge pull request #9 from Kathund/fix/Command/handler
fix: command using @handler
2 parents 8436fcd + 64ec007 commit c1a6d5b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/org/polyfrost/example/client/ExampleCommand.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import org.polyfrost.example.ExampleConstants;
44
import org.polyfrost.oneconfig.api.commands.v1.factories.annotated.Command;
5+
import org.polyfrost.oneconfig.api.commands.v1.factories.annotated.Handler;
56
import org.polyfrost.oneconfig.utils.v1.dsl.ScreensKt;
67

78
/**
@@ -14,7 +15,7 @@
1415
@Command(ExampleConstants.ID)
1516
public class ExampleCommand {
1617

17-
@Command
18+
@Handler
1819
private void main() {
1920
ScreensKt.openUI(ExampleConfig.INSTANCE);
2021
}

0 commit comments

Comments
 (0)