File tree Expand file tree Collapse file tree
src/content/docs/velocity/dev/getting-started Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -25,19 +25,21 @@ and used a `@Plugin` annotation somewhere in your code.
2525## Example
2626This is an example ` velocity-plugin.json ` file:
2727
28- ``` json title=velocity-plugin.json
28+ ``` json title=velocity-plugin.json {" Required values:":2-4} {" The ID is required. Optional defaults to false:":11-15}
2929{
30- "id" : " example-plugin" , // required
30+
31+ "id" : " example-plugin" ,
32+ "main" : " com.example.testplugin.TestPluginMain" ,
3133 "name" : " Velocity Example Plugin" ,
3234 "version" : " 1.0.0" ,
3335 "description" : " An example plugin for showcasing the plugin json file." ,
34- "main" : " com.example.testplugin.TestPluginMain" , // required
3536 "url" : " https://github.com/PaperMC/docs" ,
3637 "authors" : [" Strokkur24" ],
3738 "dependencies" : [
39+
3840 {
39- "id" : " luckperms" , // required for dependencies
40- "optional" : true // defaults to false
41+ "id" : " luckperms" ,
42+ "optional" : true
4143 }
4244 ]
4345}
You can’t perform that action at this time.
0 commit comments