Skip to content

Commit

Permalink
refactor: include continuation of admonition within the box
Browse files Browse the repository at this point in the history
  • Loading branch information
Timongcraft committed Aug 17, 2024
1 parent cd9b658 commit e18f5d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/velocity/dev/getting-started/api-basics.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,6 @@ construction. Notably, you can't register an event listener in your constructor,
have a valid plugin registration, but Velocity can't register the plugin until the plugin has been
constructed, causing a "chicken or the egg" problem.
:::
To break this vicious cycle, you should always wait for initialization, which is indicated when
Velocity fires the <Javadoc name={"com.velocitypowered.api.event.proxy.ProxyInitializeEvent"} project={"velocity"}>`ProxyInitializeEvent`</Javadoc>.
We can do things on initialization by adding a listener for this event, as shown below.
Expand All @@ -118,6 +116,8 @@ public void onProxyInitialization(ProxyInitializeEvent event) {
}
```
:::
## Getting your plugin's directory

At some point you may need your plugin's directory. To do this, add
Expand Down

0 comments on commit e18f5d5

Please sign in to comment.