Skip to content

Commit 9ce9dd9

Browse files
Update for ViaVersion v5.0 (#1)
Co-authored-by: MrMicky <[email protected]>
1 parent 1d09b0d commit 9ce9dd9

File tree

17 files changed

+78
-482
lines changed

17 files changed

+78
-482
lines changed

.github/workflows/build.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,16 @@ jobs:
1212

1313
strategy:
1414
matrix:
15-
java-version: [8, 11]
15+
java-version: [17, 21]
1616

1717
steps:
1818
- name: Checkout repository
19-
uses: actions/checkout@v2
19+
uses: actions/checkout@v4
2020

2121
- name: Setup JDK ${{ matrix.java-version }}
22-
uses: actions/setup-java@v2
22+
uses: actions/setup-java@v4
2323
with:
24-
distribution: 'adopt'
24+
distribution: 'temurin'
2525
java-version: ${{ matrix.java-version }}
2626

2727
- name: Build

README.md

+8-7
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[![Java CI](https://github.com/MrMicky-FR/ViaChatFixer/actions/workflows/build.yml/badge.svg)](https://github.com/MrMicky-FR/ViaChatFixer/actions/workflows/build.yml)
44

5-
ViaChatFixer is a Bukkit and Sponge plugin that allows 1.11+ players to have longer chat messages on 1.8-1.10 servers with ViaVersion
5+
ViaChatFixer is a Bukkit plugin that allows 1.11+ players to have longer chat messages on 1.8-1.10 servers with ViaVersion
66

77
In Minecraft 1.11, the maximum messages length has gone from 100 characters to 256 characters. So if your server is under 1.11, 1.11 and higher
88
players will have their chat messages cut at 100 characters.
@@ -15,21 +15,22 @@ You can download releases and find more information on [SpigotMC](https://www.sp
1515

1616
## Installation
1717

18-
Just put the ViaChatFixer jar in your plugins folder.
18+
Just put the ViaChatFixer jar in your `plugins` folder.
1919

20-
ViaChatFixer currently supports ViaVersion v4.0 or higher.
20+
ViaChatFixer currently supports ViaVersion v5.0 or higher, and requires Java 17.
2121

2222
All players online during a reload will not be able to have longer chat messages until they reconnect.
2323

2424
## Supported Platforms
2525

26-
ViaChatFixer can be installed on Bukkit/Spigot/Paper servers or on Sponge servers.
26+
ViaChatFixer can be installed on Bukkit, Spigot, or Paper servers.
2727

2828
If you are using a proxy, ViaVersion and ViaChatFixer must be installed on the backend servers.
2929

3030
### Versions compatibility
3131

3232
| ViaChatFixer | ViaVersion |
33-
| ------------ | ---------- |
34-
| v1.0.0 | v3.x |
35-
| v1.1.x | v4.x |
33+
|--------------|------------|
34+
| v1.0.0 | v3.x |
35+
| v1.1.0 | v4.x |
36+
| v1.2.x | v5.x |

bukkit/pom.xml

-39
This file was deleted.

common/pom.xml

-33
This file was deleted.

common/src/main/java/fr/mrmicky/viachatfixer/common/ViaChatFixerPlatform.java

-9
This file was deleted.

common/src/main/java/fr/mrmicky/viachatfixer/common/logger/JavaLoggerAdapter.java

-38
This file was deleted.

common/src/main/java/fr/mrmicky/viachatfixer/common/logger/LoggerAdapter.java

-14
This file was deleted.

pom.xml

+28-10
Original file line numberDiff line numberDiff line change
@@ -6,28 +6,46 @@
66

77
<groupId>fr.mrmicky</groupId>
88
<artifactId>viachatfixer</artifactId>
9-
<version>1.1.0</version>
10-
<packaging>pom</packaging>
9+
<version>1.2.0</version>
1110

1211
<name>ViaChatFixer</name>
1312

14-
<modules>
15-
<module>common</module>
16-
<module>bukkit</module>
17-
<module>sponge</module>
18-
<module>universal</module>
19-
</modules>
20-
2113
<properties>
2214
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
2315
</properties>
2416

17+
<dependencies>
18+
<dependency>
19+
<groupId>org.spigotmc</groupId>
20+
<artifactId>spigot-api</artifactId>
21+
<version>1.10.2-R0.1-SNAPSHOT</version>
22+
<scope>provided</scope>
23+
</dependency>
24+
<dependency>
25+
<groupId>com.viaversion</groupId>
26+
<artifactId>viaversion-common</artifactId>
27+
<version>5.0.0</version>
28+
<scope>provided</scope>
29+
</dependency>
30+
</dependencies>
31+
32+
<repositories>
33+
<repository>
34+
<id>spigotmc-repo</id>
35+
<url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
36+
</repository>
37+
<repository>
38+
<id>viaversion-repo</id>
39+
<url>https://repo.viaversion.com/</url>
40+
</repository>
41+
</repositories>
42+
2543
<build>
2644
<plugins>
2745
<plugin>
2846
<groupId>org.apache.maven.plugins</groupId>
2947
<artifactId>maven-compiler-plugin</artifactId>
30-
<version>3.8.1</version>
48+
<version>3.13.0</version>
3149
<configuration>
3250
<source>1.8</source>
3351
<target>1.8</target>

sponge/pom.xml

-57
This file was deleted.

sponge/src/main/java-templates/fr/mrmicky/viachatfixer/sponge/ViaChatFixerVersion.java

-10
This file was deleted.

sponge/src/main/java/fr/mrmicky/viachatfixer/sponge/SpongeLogger.java

-40
This file was deleted.

0 commit comments

Comments
 (0)