Bumped to 1.21.1

This commit is contained in:
Stijn Bannink 2024-10-03 21:09:14 +02:00
parent b414f9775f
commit d28c9a5d6a
Signed by: SBDeveloper
GPG key ID: B730712F2C3A9D7A
4 changed files with 14 additions and 14 deletions

18
pom.xml
View file

@ -15,7 +15,7 @@
<properties> <properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties> </properties>
<url>https://mcthemeparks.eu</url> <url>https://mcthemeparks.com</url>
<pluginRepositories> <pluginRepositories>
<pluginRepository> <pluginRepository>
@ -37,9 +37,9 @@
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId> <artifactId>maven-compiler-plugin</artifactId>
<version>3.11.0</version> <version>3.13.0</version>
<configuration> <configuration>
<release>17</release> <release>21</release>
<compilerArgs> <compilerArgs>
<arg>-parameters</arg> <arg>-parameters</arg>
</compilerArgs> </compilerArgs>
@ -48,7 +48,7 @@
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId> <artifactId>maven-shade-plugin</artifactId>
<version>3.4.1</version> <version>3.6.0</version>
<executions> <executions>
<execution> <execution>
<phase>package</phase> <phase>package</phase>
@ -104,19 +104,19 @@
<dependency> <dependency>
<groupId>org.spigotmc</groupId> <groupId>org.spigotmc</groupId>
<artifactId>spigot-api</artifactId> <artifactId>spigot-api</artifactId>
<version>1.20.1-R0.1-SNAPSHOT</version> <version>1.21.1-R0.1-SNAPSHOT</version>
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.bukkit</groupId> <groupId>org.bukkit</groupId>
<artifactId>craftbukkit</artifactId> <artifactId>craftbukkit</artifactId>
<version>1.20.1-R0.1-SNAPSHOT</version> <version>1.21.1-R0.1-SNAPSHOT</version>
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.java-websocket</groupId> <groupId>org.java-websocket</groupId>
<artifactId>Java-WebSocket</artifactId> <artifactId>Java-WebSocket</artifactId>
<version>1.5.4</version> <version>1.5.7</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.mpatric</groupId> <groupId>com.mpatric</groupId>
@ -144,13 +144,13 @@
<dependency> <dependency>
<groupId>com.bergerkiller.bukkit</groupId> <groupId>com.bergerkiller.bukkit</groupId>
<artifactId>BKCommonLib</artifactId> <artifactId>BKCommonLib</artifactId>
<version>1.20.1-v2</version> <version>1.21.1-v1</version>
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.bergerkiller.bukkit</groupId> <groupId>com.bergerkiller.bukkit</groupId>
<artifactId>TrainCarts</artifactId> <artifactId>TrainCarts</artifactId>
<version>1.20.1-v2</version> <version>1.21.1-v1</version>
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>
</dependencies> </dependencies>

View file

@ -36,13 +36,13 @@ public final class MCTPAudio extends JavaPlugin {
instance = this; instance = this;
getConfig().addDefault("Regions.demosound", "https://www.mcthemeparks.eu/musicupload/downloads/Berlin/kaad.mp3"); getConfig().addDefault("Regions.demosound", "https://www.mcthemeparks.com/musicupload/downloads/Berlin/kaad.mp3");
getConfig().addDefault("HueRegions.demosound", "255_0_0_254"); getConfig().addDefault("HueRegions.demosound", "255_0_0_254");
getConfig().options().copyDefaults(true); getConfig().options().copyDefaults(true);
saveConfig(); saveConfig();
Bukkit.getLogger().info("[MCTPAudio] Connecting with socket..."); Bukkit.getLogger().info("[MCTPAudio] Connecting with socket...");
client = new Client("ws://116.203.197.161:25564"); client = new Client("ws://116.203.56.13:25564");
client.connect(); client.connect();
Bukkit.getLogger().info("[MCTPAudio] Loading commands and events..."); Bukkit.getLogger().info("[MCTPAudio] Loading commands and events...");

View file

@ -5,10 +5,10 @@ import java.io.IOException;
public class MainUtil { public class MainUtil {
public static void sendMessageDiscord(WebhookMessage.EmbedObject embed, String mention) throws IOException { public static void sendMessageDiscord(WebhookMessage.EmbedObject embed, String mention) throws IOException {
WebhookMessage webhookMessage = new WebhookMessage("https://discord.com/api/webhooks/706629612955762778/MztXWVWupAIoTIHwb0XK8ExfOz6nrygB_FEl9EpbFENGUCGobMib_5Apj2rnUSXuMlbR"); WebhookMessage webhookMessage = new WebhookMessage("https://discord.com/api/webhooks/706629612955762778/MztXWVWupAIoTIHwb0XK8ExfOz6nrygB_FEl9EpbFENGUCGobMib_5Apj2rnUSXuMlbR");
webhookMessage.setAvatarUrl("https://mcthemeparks.eu/musicupload/downloads/Designs/Logo2.png"); webhookMessage.setAvatarUrl("https://mcthemeparks.com/musicupload/downloads/Designs/Logo2.png");
webhookMessage.setUsername("McThemeParks Audio"); webhookMessage.setUsername("McThemeParks Audio");
embed.setFooter("© McThemeParks 2021/2022", "https://mcthemeparks.eu/musicupload/downloads/Designs/Logo2.png"); embed.setFooter("© McThemeParks 2021/2022", "https://mcthemeparks.com/musicupload/downloads/Designs/Logo2.png");
webhookMessage.addEmbed(embed); webhookMessage.addEmbed(embed);
if (mention != null) webhookMessage.setContent(mention); if (mention != null) webhookMessage.setContent(mention);

View file

@ -5,4 +5,4 @@ api-version: 1.19
depend: [ WorldGuard, Train_Carts ] depend: [ WorldGuard, Train_Carts ]
authors: [ SBDeveloper ] authors: [ SBDeveloper ]
description: The audio plugin of MCThemeParks! description: The audio plugin of MCThemeParks!
website: https://mcthemeparks.eu website: https://mcthemeparks.com