Bausystem geht™️

This commit is contained in:
2024-11-27 19:06:30 +01:00
parent 510aec048b
commit 313d63e99d
20 changed files with 184 additions and 40 deletions
@@ -19,8 +19,10 @@
package de.steamwar.core;
import org.bukkit.Material;
import org.bukkit.enchantments.Enchantment;
import org.bukkit.entity.EntityType;
import org.bukkit.inventory.InventoryView;
public class TrickyTrialsWrapper8 implements TrickyTrialsWrapper {
@Override
@@ -32,4 +34,14 @@ public class TrickyTrialsWrapper8 implements TrickyTrialsWrapper {
public Enchantment getUnbreakingEnchantment() {
return Enchantment.DURABILITY;
}
@Override
public Material getTurtleScute() {
return Material.STONE;
}
@Override
public String getInventoryTitle(InventoryView view) {
return view.getTitle();
}
}
@@ -43,6 +43,7 @@ import java.io.*;
import java.util.*;
import java.util.logging.Level;
import java.util.stream.Collectors;
import java.util.zip.GZIPInputStream;
public class WorldEditWrapper8 implements WorldEditWrapper.IWorldEditWrapper {
@@ -88,7 +89,7 @@ public class WorldEditWrapper8 implements WorldEditWrapper.IWorldEditWrapper {
WorldData world = new BukkitWorld(player.getWorld()).getWorldData();
Clipboard clipboard;
try {
clipboard = getClipboard(is, schemFormat);
clipboard = getClipboard(new GZIPInputStream(is), schemFormat);
} catch (IOException e) {
throw new RuntimeException(e);
}