There was an error while loading. Please reload this page.
2 parents a679cf4 + a445164 commit bb3ce26Copy full SHA for bb3ce26
1 file changed
content/docs/en/guides/plugin/creating-commands.mdx
@@ -35,7 +35,7 @@ public class MyPlugin extends JavaPlugin {
35
36
@Override
37
public void setup() {
38
- getServer().getCommandManager().registerCommand(new ExampleCommand());
+ this.getCommandRegistry().registerCommand(new ExampleCommand());
39
}
40
41
```
0 commit comments