Restore RemotePackSync plugin identity
Build and publish release / Build and publish RemotePackSync (push) Successful in 51s
Build and publish release / Build and publish RemotePackSync (push) Successful in 51s
This commit is contained in:
+4
-4
@@ -1,4 +1,4 @@
|
||||
package dev.lexian.lexiandev;
|
||||
package dev.lexian.remotepacksync;
|
||||
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.plugin.java.JavaPlugin;
|
||||
@@ -102,7 +102,7 @@ public final class BedrockPackManager {
|
||||
}
|
||||
if (Bukkit.getPluginManager().getPlugin("Geyser-Spigot") == null) {
|
||||
plugin.getLogger().warning("bedrockResourcePack is configured, but Geyser-Spigot is not installed; "
|
||||
+ "the Bedrock pack will not be sent until Geyser is available and LexianDEV is reloaded.");
|
||||
+ "the Bedrock pack will not be sent until Geyser is available and RemotePackSync is reloaded.");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -215,8 +215,8 @@ public final class BedrockPackManager {
|
||||
String extension = sourceName.endsWith(".mcpack") ? ".mcpack" : ".zip";
|
||||
Path directory = plugin.getDataFolder().toPath().resolve("bedrock-managed");
|
||||
Files.createDirectories(directory);
|
||||
Path target = directory.resolve("LexianDEV-Bedrock" + extension);
|
||||
Path temporary = Files.createTempFile(directory, "LexianDEV-Bedrock-", extension);
|
||||
Path target = directory.resolve("RemotePackSync-Bedrock" + extension);
|
||||
Path temporary = Files.createTempFile(directory, "RemotePackSync-Bedrock-", extension);
|
||||
UUID cacheBustingUuid = UUID.nameUUIDFromBytes(sourceSha256);
|
||||
|
||||
boolean foundManifest = false;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package dev.lexian.lexiandev;
|
||||
package dev.lexian.remotepacksync;
|
||||
|
||||
import org.bukkit.configuration.file.FileConfiguration;
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package dev.lexian.lexiandev;
|
||||
package dev.lexian.remotepacksync;
|
||||
|
||||
import org.geysermc.geyser.api.event.EventRegistrar;
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package dev.lexian.lexiandev;
|
||||
package dev.lexian.remotepacksync;
|
||||
|
||||
import org.bukkit.configuration.file.FileConfiguration;
|
||||
|
||||
+7
-7
@@ -1,4 +1,4 @@
|
||||
package dev.lexian.lexiandev;
|
||||
package dev.lexian.remotepacksync;
|
||||
|
||||
import org.bukkit.command.Command;
|
||||
import org.bukkit.command.CommandExecutor;
|
||||
@@ -15,8 +15,8 @@ import java.util.Collections;
|
||||
import java.util.List;
|
||||
import java.util.Optional;
|
||||
|
||||
/** Entry point for LexianDEV. Uses only stable Bukkit/Spigot APIs. */
|
||||
public final class LexianDEVPlugin extends JavaPlugin implements Listener, CommandExecutor, TabCompleter {
|
||||
/** Entry point for RemotePackSync. Uses only stable Bukkit/Spigot APIs. */
|
||||
public final class RemotePackSyncPlugin extends JavaPlugin implements Listener, CommandExecutor, TabCompleter {
|
||||
private ResourcePackManager resourcePackManager;
|
||||
private BedrockPackManager bedrockPackManager;
|
||||
|
||||
@@ -30,7 +30,7 @@ public final class LexianDEVPlugin extends JavaPlugin implements Listener, Comma
|
||||
resourcePackManager = new ResourcePackManager(this);
|
||||
getServer().getPluginManager().registerEvents(this, this);
|
||||
|
||||
PluginCommand command = getCommand("lexiandev");
|
||||
PluginCommand command = getCommand("remotepacksync");
|
||||
if (command != null) {
|
||||
command.setExecutor(this);
|
||||
command.setTabCompleter(this);
|
||||
@@ -60,13 +60,13 @@ public final class LexianDEVPlugin extends JavaPlugin implements Listener, Comma
|
||||
sender.sendMessage("§eUsage: /" + label + " reload");
|
||||
return true;
|
||||
}
|
||||
if (!sender.hasPermission("lexiandev.reload")) {
|
||||
sender.sendMessage("§cYou do not have permission to reload LexianDEV.");
|
||||
if (!sender.hasPermission("remotepacksync.reload")) {
|
||||
sender.sendMessage("§cYou do not have permission to reload RemotePackSync.");
|
||||
return true;
|
||||
}
|
||||
|
||||
reloadPackConfiguration();
|
||||
sender.sendMessage("§aLexianDEV configuration reloaded.");
|
||||
sender.sendMessage("§aRemotePackSync configuration reloaded.");
|
||||
return true;
|
||||
}
|
||||
|
||||
+2
-2
@@ -1,4 +1,4 @@
|
||||
package dev.lexian.lexiandev;
|
||||
package dev.lexian.remotepacksync;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.net.URI;
|
||||
@@ -26,7 +26,7 @@ public final class RemoteSha1Fetcher {
|
||||
.GET()
|
||||
.timeout(REQUEST_TIMEOUT)
|
||||
.header("Accept", "text/plain, text/*;q=0.9, */*;q=0.1")
|
||||
.header("User-Agent", "LexianDEV/v1.0.0")
|
||||
.header("User-Agent", "RemotePackSync/v1.0.0")
|
||||
.build();
|
||||
|
||||
HttpResponse<byte[]> response = client.send(request, HttpResponse.BodyHandlers.ofByteArray());
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package dev.lexian.lexiandev;
|
||||
package dev.lexian.remotepacksync;
|
||||
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.entity.Player;
|
||||
Reference in New Issue
Block a user