Skip to content
This repository was archived by the owner on Dec 17, 2024. It is now read-only.

Commit 6ef6541

Browse files
committed
MavenLoaderAPI 1.2-SNAPSHOT
1 parent 9a00cea commit 6ef6541

File tree

4 files changed

+4
-14
lines changed

4 files changed

+4
-14
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Limit the speed at which players can switch between servers.
44
## Required
55
- Java 17+
66
- Velocity 3.3.0+
7-
- [Plugin|Lib] [MavenLoaderAPI 1.1-SNAPSHOT+](https://github.com/LevelTranic/MavenLoader)
7+
- [Plugin|Lib] [MavenLoaderAPI 1.2-SNAPSHOT+](https://github.com/LevelTranic/MavenLoader)
88

99
## Config
1010
```yaml

build.gradle

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ plugins {
55
}
66

77
group = 'one.tranic'
8-
version = '1.0-SNAPSHOT'
8+
version = '1.1-SNAPSHOT'
99

1010
repositories {
1111
mavenCentral()
@@ -32,7 +32,6 @@ dependencies {
3232
annotationProcessor("com.velocitypowered:velocity-api:3.3.0-SNAPSHOT")
3333
compileOnly("one.tranic:maven-loader-api:1.0.1")
3434
implementation("com.github.Carleslc.Simple-YAML:Simple-Yaml:1.8.4")
35-
implementation("com.github.Carleslc.Simple-YAML:Simple-Configuration:1.8.4")
3635
implementation("com.github.ben-manes.caffeine:caffeine:3.1.8")
3736
}
3837

src/main/java/one/tranic/ultraSpeedLimit/UltraSpeedLimit.java

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
import com.velocitypowered.api.util.GameProfile;
1616
import net.kyori.adventure.text.Component;
1717
import net.kyori.adventure.text.format.NamedTextColor;
18-
import one.tranic.mavenloader.api.MavenLibraryResolver;
1918
import org.slf4j.Logger;
2019

2120
import java.nio.file.Path;
@@ -42,16 +41,6 @@ public UltraSpeedLimit(ProxyServer server, Logger logger, Metrics.Factory metric
4241
public void onProxyInitialization(ProxyInitializeEvent event) {
4342
logger.info("Initializing UltraSpeedLimit");
4443
this.metrics = metricsFactory.make(this, 23413);
45-
try {
46-
MavenLibraryResolver loader = new MavenLibraryResolver();
47-
loader.addRepository("https://jitpack.io", "jitpack");
48-
loader.addDependency("com.github.Carleslc.Simple-YAML:Simple-Yaml:1.8.4");
49-
loader.addDependency("com.github.Carleslc.Simple-YAML:Simple-Configuration:1.8.4");
50-
loader.addDependency("com.github.ben-manes.caffeine:caffeine:3.1.8");
51-
} catch (Exception e) {
52-
throw new RuntimeException(e);
53-
}
54-
5544
try {
5645
Config config = new Config(dataDirectory);
5746
Cache<UUID, Integer> playerCache = Caffeine.newBuilder()

src/main/resources/maven.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
dependency:
2+
- com.github.ben-manes.caffeine:caffeine:3.1.8

0 commit comments

Comments
 (0)