You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-**description**: Sets the default central repository URL, from which plugins' dependencies declared using the [`libraries`](/paper/dev/plugin-yml#libraries) plugin.yml field are resolved. This is overridden by the [`PAPER_DEFAULT_CENTRAL_REPOSITORY`](#paper_default_central_repository) environment variable, if it is set.
251
+
252
+
:::caution
253
+
254
+
If you wish to configure this with Maven Central, use a mirror, as using Maven Central directly as a CDN is against the Maven Central Terms of Service, and you may hit rate limits.
255
+
256
+
By default, this uses Google's NA mirror of Maven Central. You may also use region-specific mirrors listed [here](https://storage-download.googleapis.com/maven-central/index.html).
257
+
258
+
:::
259
+
247
260
## List of environment variables
248
261
249
262
#### PAPER_VELOCITY_SECRET
250
263
251
264
-**default**: `unset`
252
265
-**description**: Overrides the [`proxies.velocity.secret`](/paper/reference/global-configuration#proxies_velocity_secret) global configuration option.
-**description**: Sets the default central repository URL, from which plugins' dependencies declared using the [`libraries`](/paper/dev/plugin-yml#libraries) plugin.yml field are resolved. This overrides the [`org.bukkit.plugin.java.LibraryLoader.centralURL`](#orgbukkitpluginjavalibraryloadercentralurl) system property, if it is set.
271
+
272
+
:::caution
273
+
274
+
If you wish to configure this with Maven Central, use a mirror, as using Maven Central directly as a CDN is against the Maven Central Terms of Service, and you may hit rate limits.
275
+
276
+
By default, this uses Google's NA mirror of Maven Central. You may also use region-specific mirrors listed [here](https://storage-download.googleapis.com/maven-central/index.html).
If you wish to resolve libraries from Maven Central, use a mirror, as using Maven Central directly as a CDN is against the Maven Central Terms of Service, and users of your plugin may hit rate limits.
163
+
164
+
You should use Paper's default mirror, configured by the [`PAPER_DEFAULT_CENTRAL_REPOSITORY`](/paper/reference/system-properties#paper_default_central_repository) environment variable and [`org.bukkit.plugin.java.LibraryLoader.centralURL`](/paper/reference/system-properties#orgbukkitpluginjavalibraryloadercentralurl) system property:
Copy file name to clipboardExpand all lines: src/content/docs/paper/dev/getting-started/plugin-yml.mdx
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -114,12 +114,6 @@ The prefix of the plugin. This is what will be displayed in the log instead of t
114
114
115
115
### libraries
116
116
117
-
:::caution
118
-
119
-
The use of this feature is *currently* against Maven Central's TOS. However, this feature is very likely to stay.
120
-
121
-
:::
122
-
123
117
This is a list of libraries that your plugin depends on. These libraries will be downloaded from the Maven Central repository and added to the classpath.
124
118
This removes the need to shade and relocate the libraries.
125
119
@@ -129,6 +123,12 @@ libraries:
129
123
- com.google.code.gson:gson:2.8.6
130
124
```
131
125
126
+
:::note
127
+
128
+
The central repository is configurable using the [`PAPER_DEFAULT_CENTRAL_REPOSITORY`](/paper/reference/system-properties#paper_default_central_repository) environment variable and [`org.bukkit.plugin.java.LibraryLoader.centralURL`](/paper/reference/system-properties#orgbukkitpluginjavalibraryloadercentralurl) system property.
129
+
130
+
:::
131
+
132
132
### permissions
133
133
134
134
This is a list of permissions that your plugin uses. This is useful for plugins that use permissions to restrict access to certain features.
0 commit comments