Skip to content

Commit 3ab62b2

Browse files
fix: Fixed classes in command API not being public (#398)
1 parent ae979da commit 3ab62b2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/paper/dev/api/commands.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ functions are loaded by the server before plugins are loaded. To make commands a
3131
datapacks, register them via the [PluginBootstrap](#pluginbootstrap).
3232

3333
```java
34-
class YourPluginClass extends JavaPlugin {
34+
public class YourPluginClass extends JavaPlugin {
3535

3636
@Override
3737
public void onEnable() {
@@ -70,7 +70,7 @@ The benefit of registering commands here is that they will be available to datap
7070
because the command registration happens early enough.
7171

7272
```java
73-
class YourPluginBootstrap implements PluginBootstrap {
73+
public class YourPluginBootstrap implements PluginBootstrap {
7474

7575
@Override
7676
public void bootstrap(BootstrapContext context) {

0 commit comments

Comments
 (0)