@@ -30,9 +30,9 @@ public void setBiomeArea(World world, BlockVector3 position1, BlockVector3 posit
30
30
// This code would be called by the plugin in the main thread
31
31
public void call() {
32
32
// Here we set our position 1 and 2
33
- BlockVector3 position1 = BlockVector3 . at(300 ,- 64 ,300 );
34
- BlockVector3 position2 = BlockVector3 . at(600 ,128 ,600 );
35
- World bukkitWorld = Bukkit . geWorld (" world" );
33
+ BlockVector3 position1 = BlockVector3 . at(300 , - 64 , 300 );
34
+ BlockVector3 position2 = BlockVector3 . at(600 , 128 , 600 );
35
+ World bukkitWorld = Bukkit . getWorld (" world" );
36
36
setBiomeArea(bukkitWorld, position1, position2);
37
37
}
38
38
```
@@ -45,9 +45,9 @@ Now we run the code Async to let Fawe manage server resources:
45
45
// Now we wrap our code in a runnable with a functional interface and have it executed by Bukkit's scheduler system
46
46
Runnable executeCode = () - > {
47
47
// Here we set our position 1 and 2
48
- BlockVector3 position1 = BlockVector3 . at(300 ,- 64 ,300 );
49
- BlockVector3 position2 = BlockVector3 . at(600 ,128 ,600 );
50
- World bukkitWorld = Bukkit . geWorld (" world" );
48
+ BlockVector3 position1 = BlockVector3 . at(300 , - 64 , 300 );
49
+ BlockVector3 position2 = BlockVector3 . at(600 , 128 , 600 );
50
+ World bukkitWorld = Bukkit . getWorld (" world" );
51
51
setBiomeArea(bukkitWorld, position1, position2);
52
52
};
53
53
Bukkit . getScheduler(). runTaskAsynchronously(Bukkit . getPluginManager(). getPlugin(" YourPluginNameHere" ), executeCode);
0 commit comments