Revisions for untitled paste

View the changes made to this paste.

unlisted ⁨1⁩ ⁨file⁩ 2022-03-02 23:25:13 UTC

java

@@ -0,0 +1,22 @@

+public class FAWE {
+
+    public static void save(WorldObject worldObject, String entry, Location topCorner, Location bottomCorner, String id) {
+
+        Bukkit.getScheduler().runTaskAsynchronously(worldObject.getMain(), new Runnable() {
+            public void run() {
+                WorldEdit.save(worldObject, entry, topCorner, bottomCorner, id);
+            }
+        });
+
+    }
+
+    public static void paste(WorldObject worldObject) {
+        Bukkit.getScheduler().runTaskAsynchronously(worldObject.getMain(), new Runnable() {
+            public void run() {
+                WorldEdit.paste(worldObject);
+            }
+        });
+    }
+
+
+}
\ No newline at end of file