We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd1d557 commit c0d5d75Copy full SHA for c0d5d75
plugin/src/main/java/dev/lavalink/youtube/plugin/YoutubePluginLoader.java
@@ -37,11 +37,10 @@ public class YoutubePluginLoader implements AudioPlayerManagerConfiguration {
37
// This entire thing is a hack BTW. Designed to support Lavalink v3 and v4
38
// with a single plugin. Totally worth it!
39
public YoutubePluginLoader(final YoutubeConfig youtubeConfig,
40
- final ServerConfig serverConfig,
41
- final RateLimitConfig ratelimitConfig) {
+ final ServerConfig serverConfig) {
42
this.youtubeConfig = youtubeConfig;
43
this.serverConfig = serverConfig;
44
- this.ratelimitConfig = ratelimitConfig;
+ this.ratelimitConfig = serverConfig.getRatelimit();
45
46
final String providerName = isV4OrNewer()
47
? "ClientProviderV4"
0 commit comments