Skip to content

Commit 41e1e77

Browse files
committed
Update Velocity API to 3.3.0-SNAPSHOT
1 parent 7479cb8 commit 41e1e77

File tree

4 files changed

+10
-10
lines changed
  • commandapi-kotlin/commandapi-velocity-kotlin
  • commandapi-platforms/commandapi-velocity

4 files changed

+10
-10
lines changed

commandapi-kotlin/commandapi-velocity-kotlin/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
<dependency>
5555
<groupId>com.velocitypowered</groupId>
5656
<artifactId>velocity-api</artifactId>
57-
<version>3.1.1</version>
57+
<version>3.3.0-SNAPSHOT</version>
5858
<scope>provided</scope>
5959
</dependency>
6060

commandapi-platforms/commandapi-velocity/commandapi-velocity-core/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
<dependency>
4343
<groupId>com.velocitypowered</groupId>
4444
<artifactId>velocity-api</artifactId>
45-
<version>3.1.1</version>
45+
<version>3.3.0-SNAPSHOT</version>
4646
<scope>provided</scope>
4747
</dependency>
4848

commandapi-platforms/commandapi-velocity/commandapi-velocity-plugin/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<dependency>
2525
<groupId>com.velocitypowered</groupId>
2626
<artifactId>velocity-api</artifactId>
27-
<version>3.1.1</version>
27+
<version>3.3.0-SNAPSHOT</version>
2828
<scope>provided</scope>
2929
</dependency>
3030

commandapi-platforms/commandapi-velocity/commandapi-velocity-plugin/src/main/java/dev/jorel/commandapi/CommandAPIMain.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
import com.velocitypowered.api.plugin.Plugin;
99
import com.velocitypowered.api.plugin.annotation.DataDirectory;
1010
import com.velocitypowered.api.proxy.ProxyServer;
11-
import ninja.leaping.configurate.ConfigurationNode;
12-
import ninja.leaping.configurate.yaml.YAMLConfigurationLoader;
11+
import org.spongepowered.configurate.ConfigurationNode;
12+
import org.spongepowered.configurate.yaml.YamlConfigurationLoader;
1313

1414
import java.io.File;
1515
import java.io.IOException;
@@ -52,17 +52,17 @@ public CommandAPIMain(ProxyServer server, Logger logger, @DataDirectory Path dat
5252
// Load the file as a yaml node
5353
ConfigurationNode configYAML;
5454
try {
55-
configYAML = YAMLConfigurationLoader.builder().setPath(configFile).build().load();
55+
configYAML = YamlConfigurationLoader.builder().path(configFile).build().load();
5656
} catch (IOException e) {
5757
throw new RuntimeException(e);
5858
}
5959

6060
// Configure the CommandAPI
6161
CommandAPIVelocityConfig config = new CommandAPIVelocityConfig(server, this)
62-
.verboseOutput(configYAML.getNode("verbose-outputs").getBoolean())
63-
.silentLogs(configYAML.getNode("silent-logs").getBoolean())
64-
.missingExecutorImplementationMessage(configYAML.getNode("messages", "missing-executor-implementation").getString())
65-
.dispatcherFile(configYAML.getNode("create-dispatcher-json").getBoolean() ? new File(dataDirectory.toFile(), "command_registration.json") : null);
62+
.verboseOutput(configYAML.node("verbose-outputs").getBoolean())
63+
.silentLogs(configYAML.node("silent-logs").getBoolean())
64+
.missingExecutorImplementationMessage(configYAML.node("messages", "missing-executor-implementation").getString())
65+
.dispatcherFile(configYAML.node("create-dispatcher-json").getBoolean() ? new File(dataDirectory.toFile(), "command_registration.json") : null);
6666

6767
// Load
6868
CommandAPI.setLogger(CommandAPILogger.fromJavaLogger(logger));

0 commit comments

Comments
 (0)