Skip to content

Commit

Permalink
Merge pull request #2 from 4drian3d/update
Browse files Browse the repository at this point in the history
Update to ViaVersion 4 and added Maven Files
  • Loading branch information
linsaftw authored Jul 1, 2021
2 parents 6e1fd51 + 4b25829 commit 8cc73bc
Show file tree
Hide file tree
Showing 4 changed files with 83 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.project
.vscode
.settings
.factorypath
.classpath
/target
75 changes: 75 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>twolovers.viarewindpotions</groupId>
<artifactId>ViaPotions</artifactId>
<version>0.0.2</version>
<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
</properties>
<build>
<finalName>${project.artifactId}</finalName>
<sourceDirectory>${basedir}/src/</sourceDirectory>
<resources>
<resource>
<directory>src/resources</directory>
</resource>
</resources>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
</plugins>
</build>
<repositories>
<!-- Spigot -->
<repository>
<id>spigot-repo</id>
<url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
</repository>
<!-- ProtocolSupport -->
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
<!-- ViaVersion -->
<repository>
<id>viaversion-repo</id>
<url>https://repo.viaversion.com</url>
</repository>
<!-- ProtocolLib -->
<repository>
<id>dmulloy2-repo</id>
<url>https://repo.dmulloy2.net/repository/public/</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>spigot-api</artifactId>
<version>1.16.5-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.viaversion</groupId>
<artifactId>viaversion-api</artifactId>
<version>4.0.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.comphenix.protocol</groupId>
<artifactId>ProtocolLib</artifactId>
<version>4.6.0</version>
</dependency>
<dependency>
<groupId>com.github.ProtocolSupport</groupId>
<artifactId>ProtocolSupport</artifactId>
<version>eafe538e35</version>
</dependency>
</dependencies>
</project>
2 changes: 1 addition & 1 deletion src/plugin.yml → src/resources/plugin.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: ViaRewindPotions
version: 0.0.1
version: 0.0.2
description: Translates thrown potions for ProtocolSupport and ViaRewind
depend: [ProtocolLib]
softdepend:
Expand Down
2 changes: 1 addition & 1 deletion src/twolovers/viarewindpotions/utils/VersionUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import org.bukkit.plugin.PluginManager;
import protocolsupport.api.ProtocolSupportAPI;
import protocolsupport.api.ProtocolType;
import us.myles.ViaVersion.api.Via;
import com.viaversion.viaversion.api.Via;

public class VersionUtil {
private final Plugin protocolSupport;
Expand Down

0 comments on commit 8cc73bc

Please sign in to comment.