mirror of
https://github.com/WiIIiam278/HuskSync.git
synced 2025-12-26 18:19:10 +00:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
52ec138273 | ||
|
|
0f7a866652 | ||
|
|
eeb52ac41e |
@@ -9,7 +9,7 @@ dependencies {
|
|||||||
implementation 'net.kyori:adventure-platform-bukkit:4.3.3'
|
implementation 'net.kyori:adventure-platform-bukkit:4.3.3'
|
||||||
implementation 'dev.triumphteam:triumph-gui:3.1.10'
|
implementation 'dev.triumphteam:triumph-gui:3.1.10'
|
||||||
implementation 'space.arim.morepaperlib:morepaperlib:0.4.4'
|
implementation 'space.arim.morepaperlib:morepaperlib:0.4.4'
|
||||||
implementation 'de.tr7zw:item-nbt-api:2.13.1'
|
implementation 'de.tr7zw:item-nbt-api:2.13.2'
|
||||||
|
|
||||||
compileOnly 'org.spigotmc:spigot-api:1.17.1-R0.1-SNAPSHOT'
|
compileOnly 'org.spigotmc:spigot-api:1.17.1-R0.1-SNAPSHOT'
|
||||||
compileOnly 'com.github.retrooper.packetevents:spigot:2.3.0'
|
compileOnly 'com.github.retrooper.packetevents:spigot:2.3.0'
|
||||||
|
|||||||
@@ -424,19 +424,23 @@ public interface BukkitMapPersister {
|
|||||||
@NotNull
|
@NotNull
|
||||||
private MapData extractMapData() {
|
private MapData extractMapData() {
|
||||||
final List<MapBanner> banners = Lists.newArrayList();
|
final List<MapBanner> banners = Lists.newArrayList();
|
||||||
final String BANNER_PREFIX = "banner_";
|
try {
|
||||||
for (int i = 0; i < getCursors().size(); i++) {
|
final String BANNER_PREFIX = "banner_";
|
||||||
final MapCursor cursor = getCursors().getCursor(i);
|
for (int i = 0; i < getCursors().size(); i++) {
|
||||||
final String type = cursor.getType().name().toLowerCase(Locale.ENGLISH);
|
final MapCursor cursor = getCursors().getCursor(i);
|
||||||
if (type.startsWith(BANNER_PREFIX)) {
|
final String type = cursor.getType().name().toLowerCase(Locale.ENGLISH);
|
||||||
banners.add(new MapBanner(
|
if (type.startsWith(BANNER_PREFIX)) {
|
||||||
type.replaceAll(BANNER_PREFIX, ""),
|
banners.add(new MapBanner(
|
||||||
cursor.getCaption() == null ? "" : cursor.getCaption(),
|
type.replaceAll(BANNER_PREFIX, ""),
|
||||||
cursor.getX(),
|
cursor.getCaption() == null ? "" : cursor.getCaption(),
|
||||||
mapView.getWorld() != null ? mapView.getWorld().getSeaLevel() : 128,
|
cursor.getX(),
|
||||||
cursor.getY()
|
mapView.getWorld() != null ? mapView.getWorld().getSeaLevel() : 128,
|
||||||
));
|
cursor.getY()
|
||||||
|
));
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
} catch (Throwable ignored) {
|
||||||
}
|
}
|
||||||
return MapData.fromPixels(pixels, getDimension(), (byte) 2, banners, List.of());
|
return MapData.fromPixels(pixels, getDimension(), (byte) 2, banners, List.of());
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ org.gradle.jvmargs='-Dfile.encoding=UTF-8'
|
|||||||
org.gradle.daemon=true
|
org.gradle.daemon=true
|
||||||
javaVersion=17
|
javaVersion=17
|
||||||
|
|
||||||
plugin_version=3.6.7
|
plugin_version=3.6.8
|
||||||
plugin_archive=husksync
|
plugin_archive=husksync
|
||||||
plugin_description=A modern, cross-server player data synchronization system
|
plugin_description=A modern, cross-server player data synchronization system
|
||||||
|
|
||||||
|
|||||||
@@ -49,10 +49,6 @@ shadowJar {
|
|||||||
|
|
||||||
tasks {
|
tasks {
|
||||||
runServer {
|
runServer {
|
||||||
minecraftVersion('1.21')
|
minecraftVersion('1.21.1')
|
||||||
|
|
||||||
downloadPlugins {
|
|
||||||
url('https://download.luckperms.net/1549/bukkit/loader/LuckPerms-Bukkit-5.4.134.jar')
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -13,7 +13,7 @@ from tqdm import tqdm
|
|||||||
class Parameters:
|
class Parameters:
|
||||||
root_dir = './servers/'
|
root_dir = './servers/'
|
||||||
proxy_version = "1.21"
|
proxy_version = "1.21"
|
||||||
minecraft_version = '1.21'
|
minecraft_version = '1.21.1'
|
||||||
eula_agreement = 'true'
|
eula_agreement = 'true'
|
||||||
|
|
||||||
backend_names = ['alpha', 'beta']
|
backend_names = ['alpha', 'beta']
|
||||||
|
|||||||
Reference in New Issue
Block a user