diff --git a/docs/velocity/dev/getting-started/api-basics.mdx b/docs/velocity/dev/getting-started/api-basics.mdx index 57ff15a8b..141ed978d 100644 --- a/docs/velocity/dev/getting-started/api-basics.mdx +++ b/docs/velocity/dev/getting-started/api-basics.mdx @@ -93,6 +93,8 @@ Dependencies on other plugins are also to be specified there, but we'll get to t ### A word of caution +:::caution + In Velocity, plugin loading is split into two steps: construction and initialization. The code in your plugin's constructor is part of the construction phase. There is very little you can do safely during construction, especially as the API does not specify which operations are safe to run during @@ -114,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