Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b24522acb5 | ||
|
|
7f869855c9 |
@@ -1,6 +1,6 @@
|
|||||||
MIT License
|
MIT License
|
||||||
|
|
||||||
Copyright (c) 2026 LF1
|
Copyright (c) 2026 LexianDEV
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
# RemotePackSync
|
# RemotePackSync
|
||||||
|
|
||||||
|
Created by **LexianDEV** · Official website: <https://lexian.dev>
|
||||||
|
|
||||||
RemotePackSync is a lightweight **Spigot 26.2** plugin that keeps Java Edition resource packs synchronized with a remotely hosted SHA-1 checksum and optionally serves a local Bedrock Edition pack to players connecting through **GeyserMC**. It uses only public Bukkit/Spigot and Geyser APIs, so it runs on **Spigot, Paper, Purpur, Bukkit-compatible servers, and current GeyserMC**.
|
RemotePackSync is a lightweight **Spigot 26.2** plugin that keeps Java Edition resource packs synchronized with a remotely hosted SHA-1 checksum and optionally serves a local Bedrock Edition pack to players connecting through **GeyserMC**. It uses only public Bukkit/Spigot and Geyser APIs, so it runs on **Spigot, Paper, Purpur, Bukkit-compatible servers, and current GeyserMC**.
|
||||||
|
|
||||||
No NMS, packet libraries, or server-fork-specific APIs are used.
|
No NMS, packet libraries, or server-fork-specific APIs are used.
|
||||||
|
|||||||
@@ -4,11 +4,12 @@
|
|||||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
<groupId>io.github.lf1</groupId>
|
<groupId>dev.lexian</groupId>
|
||||||
<artifactId>remotepacksync</artifactId>
|
<artifactId>remotepacksync</artifactId>
|
||||||
<version>1.0.0</version>
|
<version>v1.0.0</version>
|
||||||
<name>RemotePackSync</name>
|
<name>RemotePackSync</name>
|
||||||
<description>Synchronizes a server resource-pack SHA-1 from a remote URL.</description>
|
<description>Synchronizes a server resource-pack SHA-1 from a remote URL.</description>
|
||||||
|
<url>https://lexian.dev</url>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<!-- Minecraft/Spigot 26.2 requires Java 25 at runtime. -->
|
<!-- Minecraft/Spigot 26.2 requires Java 25 at runtime. -->
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
package io.github.lf1.remotepacksync;
|
package dev.lexian.remotepacksync;
|
||||||
|
|
||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
import org.bukkit.plugin.java.JavaPlugin;
|
import org.bukkit.plugin.java.JavaPlugin;
|
||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
package io.github.lf1.remotepacksync;
|
package dev.lexian.remotepacksync;
|
||||||
|
|
||||||
import org.bukkit.configuration.file.FileConfiguration;
|
import org.bukkit.configuration.file.FileConfiguration;
|
||||||
|
|
||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
package io.github.lf1.remotepacksync;
|
package dev.lexian.remotepacksync;
|
||||||
|
|
||||||
import org.geysermc.geyser.api.event.EventRegistrar;
|
import org.geysermc.geyser.api.event.EventRegistrar;
|
||||||
|
|
||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
package io.github.lf1.remotepacksync;
|
package dev.lexian.remotepacksync;
|
||||||
|
|
||||||
import org.bukkit.configuration.file.FileConfiguration;
|
import org.bukkit.configuration.file.FileConfiguration;
|
||||||
|
|
||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
package io.github.lf1.remotepacksync;
|
package dev.lexian.remotepacksync;
|
||||||
|
|
||||||
import org.bukkit.command.Command;
|
import org.bukkit.command.Command;
|
||||||
import org.bukkit.command.CommandExecutor;
|
import org.bukkit.command.CommandExecutor;
|
||||||
+2
-2
@@ -1,4 +1,4 @@
|
|||||||
package io.github.lf1.remotepacksync;
|
package dev.lexian.remotepacksync;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.net.URI;
|
import java.net.URI;
|
||||||
@@ -26,7 +26,7 @@ public final class RemoteSha1Fetcher {
|
|||||||
.GET()
|
.GET()
|
||||||
.timeout(REQUEST_TIMEOUT)
|
.timeout(REQUEST_TIMEOUT)
|
||||||
.header("Accept", "text/plain, text/*;q=0.9, */*;q=0.1")
|
.header("Accept", "text/plain, text/*;q=0.9, */*;q=0.1")
|
||||||
.header("User-Agent", "RemotePackSync/1.0")
|
.header("User-Agent", "RemotePackSync/v1.0.0")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
HttpResponse<byte[]> response = client.send(request, HttpResponse.BodyHandlers.ofByteArray());
|
HttpResponse<byte[]> response = client.send(request, HttpResponse.BodyHandlers.ofByteArray());
|
||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
package io.github.lf1.remotepacksync;
|
package dev.lexian.remotepacksync;
|
||||||
|
|
||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
@@ -1,9 +1,10 @@
|
|||||||
name: RemotePackSync
|
name: RemotePackSync
|
||||||
version: '1.0.0'
|
version: 'v1.0.0'
|
||||||
main: io.github.lf1.remotepacksync.RemotePackSyncPlugin
|
main: dev.lexian.remotepacksync.RemotePackSyncPlugin
|
||||||
api-version: '26.2'
|
api-version: '26.2'
|
||||||
description: Synchronizes a server resource-pack SHA-1 from a remote URL.
|
description: Synchronizes a server resource-pack SHA-1 from a remote URL.
|
||||||
author: LF1
|
author: LexianDEV
|
||||||
|
website: https://lexian.dev
|
||||||
softdepend: [Geyser-Spigot]
|
softdepend: [Geyser-Spigot]
|
||||||
commands:
|
commands:
|
||||||
remotepacksync:
|
remotepacksync:
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
package io.github.lf1.remotepacksync;
|
package dev.lexian.remotepacksync;
|
||||||
|
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
Reference in New Issue
Block a user