Skip to content

Commit bb3ce26

Browse files
authored
Merge pull request #180 from Koboo/fix_typo
chore: Fix wrong command registration docs #179
2 parents a679cf4 + a445164 commit bb3ce26

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

content/docs/en/guides/plugin/creating-commands.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public class MyPlugin extends JavaPlugin {
3535

3636
@Override
3737
public void setup() {
38-
getServer().getCommandManager().registerCommand(new ExampleCommand());
38+
this.getCommandRegistry().registerCommand(new ExampleCommand());
3939
}
4040
}
4141
```

0 commit comments

Comments
 (0)