Skip to content

Commit

Permalink
Merge pull request #9 from 4drian3d/changes
Browse files Browse the repository at this point in the history
Small changes
  • Loading branch information
linsaftw authored Aug 17, 2021
2 parents 19e3235 + fb2ca4e commit e8bbb31
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 28 deletions.
18 changes: 3 additions & 15 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,30 +4,18 @@ on: [push, pull_request]

jobs:
build:

runs-on: ubuntu-latest

# ViaPotions requires Java 16 to compile.
# However, it works in Java 8 up to Java 16.
strategy:
matrix:
java: [16]

steps:
- name: Checkout Repository
uses: actions/checkout@v2

- name: Set up JDK ${{ matrix.java }}
- name: Set up JDK 16
uses: actions/setup-java@v2
with:
java-version: ${{ matrix.java }}
java-version: 16
distribution: 'adopt'

- name: Build with Maven
run: mvn -B package --file pom.xml

- name: Upload artifact
uses: actions/[email protected]
with:
name: ViaPotions
path: target/ViaPotions.jar

6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -44,19 +44,19 @@
<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>spigot-api</artifactId>
<version>1.16.5-R0.1-SNAPSHOT</version>
<version>1.17.1-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.viaversion</groupId>
<artifactId>viaversion-api</artifactId>
<version>4.0.0</version>
<version>4.0.1</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.comphenix.protocol</groupId>
<artifactId>ProtocolLib</artifactId>
<version>4.6.0</version>
<version>4.7.0</version>
</dependency>
</dependencies>
</project>
4 changes: 0 additions & 4 deletions src/dev/_2lstudios/viapotions/adapters/WorldEventAdapter.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,6 @@ public WorldEventAdapter(final Plugin plugin, final VersionUtil versionUtil) {
this.versionUtil = versionUtil;
}

@Override
public void onPacketReceiving(PacketEvent event) {
}

@Override
public void onPacketSending(PacketEvent event) {
final PacketContainer packet = event.getPacket();
Expand Down
3 changes: 1 addition & 2 deletions src/dev/_2lstudios/viapotions/utils/ConfigurationUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,4 @@ public YamlConfiguration getConfiguration(String filePath) {
return new YamlConfiguration();
}
}

}
}
1 change: 0 additions & 1 deletion src/dev/_2lstudios/viapotions/utils/PotionTranslator.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,4 @@ public PotionEffectType getPotionEffectType() {
public TranslationData[] getDatas() {
return datas;
}

}
1 change: 0 additions & 1 deletion src/dev/_2lstudios/viapotions/utils/SplashTranslator.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,4 @@ public int getRGB() {
public TranslationData[] getDatas() {
return datas;
}

}
1 change: 0 additions & 1 deletion src/dev/_2lstudios/viapotions/utils/TranslationData.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,4 @@ public int getLowestVersion() {
public int getHighestVersion() {
return highestVersion;
}

}
2 changes: 1 addition & 1 deletion src/resources/plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ api-version: 1.13
softdepend:
- "ViaRewind"
- "ViaRewind-Legacy-Support"
main: dev._2lstudios.viarewindpotions.Main
main: dev._2lstudios.viapotions.ViaPotions

0 comments on commit e8bbb31

Please sign in to comment.